₦airaland Forum

Welcome, Guest: RegisterLoginWith GoogleTrendingRecentNew

Stats: 3,330,575 members, 8,446,099 topics. Date: Thursday, 16 July 2026 at 06:32 AM

Toggle theme

Seunthomas's Posts

Nairaland ForumSeunthomas's ProfileSeunthomas's Posts

1 2 3 4 5 6 7 8 ... 31 32 33 34 35 36 (of 36 pages)

ProgrammingRe: Anybody Here Know How One Can Password/encrypt Sqlite Database in C++? by seunthomas: 8:31am On Jun 14, 2015
Steps:
a. Open the sqlite database file in read lock mode as a temporary file(e.g appdb.db.tmp) .
b. Modify the data in the database.
c. With the file handle you have opened, encrypt the file.
d. Write the encypted file to app.db and delete app.db.tmp.
ProgrammingRe: Try This Algorithm Question. by seunthomas: 8:05am On Jun 14, 2015
Did you read the article? Because sounds like an algorithm is an equation(or process of solving a problem).
ProgrammingRe: Jumia Item Grabber by seunthomas: 7:58am On Jun 14, 2015
Contact me for a software that does this. Price is 20k though. The software will scrape both sites and present you with a csv/sql file you can import into your database.
ProgrammingRe: Best Server Side Language Your Opinion by seunthomas: 7:56am On Jun 14, 2015
Anyone looking for benchmarks. Just google it. LOL
ProgrammingRe: Best Server Side Language Your Opinion by seunthomas: 7:56am On Jun 14, 2015
micodon:
Exactly my point. so you have to look at the points in my first post.

You cant just say one language is more performant than the other, when it comes to web app dev.

a lot are involved. E.g, 1000 comcurrent users calling a php script hosted behind nginx will recieve better perfomance than one served by apache.

In conclusion, i totally disagree with ur idea that jsp will outperform php everytime
I dont need to provide benchmarks. No point reinventing the wheel. Others have done that many times. The only languages that can compete with Java like i mentioned earlier are .Net Languages. The challenges in performance are not just in the interpretation/compilation, they also include memory management(many languages cant use the available memory on the machine efficiently, if you run a php script and a java file, check your process monitor,php will definately use more memory than Java for a single thread and for each new thread php will create another process which is very very poor design while Java or the other languages i discussed would still stay in 1 thread except explictly required to fork another process). As for facebook implementation, i used in 2012 to see how good it was. Really no much difference from the original language in terms of performance. Its only more scalable(works across multiple machines easier).
ProgrammingRe: Best Server Side Language Your Opinion by seunthomas: 4:43pm On Jun 12, 2015
micodon:
It actually depends on your code and implementation.

1. Java is more resource-hungry. Running a Jsp app on 512mb of RAM might be less efficient than running the same app ported to PHP on the same amount of RAM.

2. PHP out of the box is interpreted. means that every time a request is made to your script, it is read, interpreted line by line and executed. JVM compiles ur jsp code to bytecode. Here, Jsp beats PHP on suitable systems.

Facebook though, created Hipop for PHP, that transpiles Php code to c++. We all know that C++ is the beast of programming when it comes to performance.

Yet again, Facebook created HHVM. it has a JIT compiler that compiles php code to Intermediate bytecode. making it even better than Hipop for PHP. Here again, PHP plus HHVM should be on par with or even outperform jsp...its my thought though, which is based on benchmarks that show that HHVM outperforms NodeJs in cases.


3. A bad programmer writing JSP code will never write a more efficient app than a good PHP dev.


So, you see....there are many factors that you should consider before saying that one language outperforms the other
Facebook is doing the extra work on php because they had no choice. The original Facebook core is written purely in php.
ProgrammingRe: Best Server Side Language Your Opinion by seunthomas: 4:42pm On Jun 12, 2015
@micodon PHP no matter the level of optimization cant outperform Java. Java has a lot of neat features that makes it very powerful and really faster. The only languages that can outperform Java are the .Net languages,C/C++, Assembly as well as some other languages. To emphasize this well, even the Java bytecode is further optimized during runtime. I know many languages and if am looking for application speed and dont mind spending time on a project, i will always go for Java else i go closer to the hardware with c.
ProgrammingRe: I Need HELP With This Python Problem by seunthomas: 7:38am On Jun 12, 2015
ignore first posting this is correct:
greetings = "HEELO GOOGLE"
numOfChars = greetings.split()
for char in numOfChars:
print greetings
ProgrammingRe: I Need HELP With This Python Problem by seunthomas: 7:36am On Jun 12, 2015
greetings = "HEELO GOOGLE"
numOfChars = len(greetings) # numOfChars = the number of characters in greetings

for char in numOfChars:
print greetings # output greetings till i equals numOfChars
ProgrammingRe: Try This Algorithm Question. by seunthomas: 7:34am On Jun 12, 2015
OP. You just posted crap. What you have is an algorithm. I think what you mean is an implementation for that algorithm. If you need the implementation, what Language do you want it in??
ProgrammingRe: Why Are The Nairaland Programmers Still Using Html 4 Coding...... by seunthomas: 7:31am On Jun 12, 2015
nairaland is probably built on top a cms framework. Also they probably use a CDN and minimize their code for speed.
ProgrammingRe: Best Server Side Language Your Opinion by seunthomas: 7:58pm On Jun 11, 2015
@larisoft If you think on performance. Java cant compare to PHP. Java outperforms PHP well.
ProgrammingRe: Dear Programmer In Nigeria: How Much Is Your Salary? by seunthomas: 9:31am On Jun 11, 2015
There is no such thing as average salary. It all depends on your skillset. Someone like me would command as much as 1 million in some companies and other companies may offer 300-400k so it depends on your skillset and the company hiring you.
ProgrammingRe: 13 & 15 Years From Nigeria Built Mobile Web Browsing Alternative To Google Chrom by seunthomas: 9:27am On Jun 11, 2015
What i think they probably did is customize a android webview which is a part of the SDK that allows you render html. They did not write the browser from scratch. Not sure they can have the resources to do that. But even with that i laud their efforts and passion.
ProgrammingRe: Programmers' and Engineers' Analysis Of Apple by seunthomas: 7:07pm On Jun 10, 2015
@AAinEqGuinea You say OS X is reliable. I dont think you use a MAC. I have been using one for more than 3 years now and its not even Reli(not to talk of --able).
ProgrammingRe: Challenge! You Cant View This Page Source Code! by seunthomas: 7:05pm On Jun 10, 2015
Its simple again. You cant view source for an image. The developer did not gray out anything.
ProgrammingRe: Help Needed On Complier by seunthomas: 7:03pm On Jun 10, 2015
What platform are your working on windows,linux or os X? If you are on os x or linux most likely you already have a c compiler. But for windows you need to download Cygwin (https://cygwin.com/) or Mingw(http://www.mingw.org/).
Tech JobsNeed Python Web Developers(preferrably Flask) by seunthomas(op): 10:33am On Jun 10, 2015
If you got experience using python flask, kindly contact me for a small project. Need to complete it fast.
ProgrammingRe: Is Anybody In Nigeria Actually Learning Swift? (apples New Programming Language) by seunthomas: 11:49pm On Jun 09, 2015
Word of advice. Wait a year before jumping on the bad wagon. My experience with new languages is they are merely experiments in developer adoption. If swift does not get adopted by the community apple may probably yank it off and stop the project. So be a little patient.
ProgrammingRe: Let's Code by seunthomas: 11:47pm On Jun 09, 2015
Best of luck guys. Dont fall along the way though. Many fall and give up. Words advice from a pro, NEVER EVER GIVE UP.
ProgrammingRe: Want To Build An Ads Server by seunthomas: 11:45pm On Jun 09, 2015
You can start with openx(or what ever name they call it now). But building a real ad server is a complex thing. Its a real time system and would require you to learn a lot along the way.
ProgrammingRe: Help Needed On Complier by seunthomas: 11:44pm On Jun 09, 2015
If you want to work cross platform use GCC. If you want to stick to windows use Visual Studio or Borland.
ProgrammingRe: Best Server Side Language Your Opinion by seunthomas: 10:12pm On Jun 09, 2015
Irrelevant question. It depends on your skill set and what you want to achieve.
ProgrammingRe: Difference Between Java And Javascript by seunthomas: 10:11pm On Jun 09, 2015
Very funny, you cant compare a Ferrari to a 1980 model Volkswagen bettle. Javascript is a very primitive language does not have the muscle of what Java can do. Even though we have frameworks like nodejs coming with async programming it still cant compete with Java. Java was from ground up well thought of. The only language that can compare with Java would be C# and the newer languages springing up right now like Go,Dart.
Tech JobsRe: Need A Very Good Python Programmer To Work With by seunthomas: 10:08pm On Jun 09, 2015
Add me on skype:hackiprog
ProgrammingRe: Challenge! You Cant View This Page Source Code! by seunthomas: 10:07pm On Jun 09, 2015
LOL. its not so difficult, what they did is regenerate an image every few secounds. The page itself is an image. If you examing the code using developer console, you will see that the server is just spitting out jpeg file. Basically your page is just generating an image.
ProgrammingRe: Programmers' and Engineers' Analysis Of Apple by seunthomas: 10:03pm On Jun 09, 2015
Personally i think apple will soon start to go under. Right now they are leaders when it comes to product launch but apple is losing the most important attribute that made it relevant which is innovation. I use almost all their products and lets face it, they are not superior to android or windows in anyway. Apple just as a way about selling premium stuff. Their product design is world class but thats all apple is good at right now. Designing great looking products. Sorry to say if Jonny Ive leaves then they are finished.
ProgrammingRe: Please I Need Someone That Can Help Set Up A Short Code SMS Service For An Event by seunthomas: 9:57pm On Jun 09, 2015
add me on skype:hackiprog
Technology MarketRe: . by seunthomas: 12:57pm On Mar 23, 2015
Upload pictures.
Technology MarketRe: US Used Apple Macbook Pro For Sale by seunthomas: 3:19pm On Oct 07, 2014
This is a very old mac(2008). Serious buyer offering you 80K for it.
Technology MarketRe: Toks MAC Pro-book (never Used In Nija) by seunthomas: 3:45pm On Sep 19, 2014
What year is this mac?

1 2 3 4 5 6 7 8 ... 31 32 33 34 35 36 (of 36 pages)