Reputation
30,580
Next tag badge:
117/100 score
18/20 answers
Badges
4 58 112
Newest
 Good Answer
Impact
~961k people reached

Jul
27
awarded  Good Answer
Jul
23
comment Why does convention say DB table names should be singular but RESTful resources plural?
@user61852 There are people who may use it by convention. But it is by no means a broadly followed industry convention as presented in this question in the way, say, that camelCase or MarkDown is.
Jul
23
comment Why does convention say DB table names should be singular but RESTful resources plural?
There is no such established convention. I've always used plural table names. users, accounts, etc, since they are holding more than one of that thing.
Jul
15
comment One table for all transaction VS. Table for each user
If you go with one table per user, what happens when you need to calculate the sum of transactions for all users across a particular date range?
Jul
8
comment Obstacle bypass in 2d environment
Is this a homework question... or for an actual robot without knowledge of what is ahead? If the latter, have it follow along the obstruction until its movement towards the target is no longer obstructed.
Jul
2
comment Would it be possible to create a language similar to Ruby/Python with static typing that had the speed/memory usage of a compiled C program?
There's no reason it wouldn't be possible. For example, look at Apple's Swift, which is a higher level language that compiles to native code.
Jul
2
comment When should mixed PHP/JS snippets be refactored into a separate JS file?
That is pretty painful to look at. Its probably easier for the author of the code to maintain because he wrote it.
Jun
27
comment Updating a video's view count. Should this happen client-side or server-side?
What you are describing seems sensible. Update it on the server each time the client presses play.
Jun
27
comment Eclipse plugins - safe to install?
Generally, sure. I've installed a bunch without problem. Though I've only ever installed the ones available through their built "install new software" system.
Jun
26
comment Sharing functionality between platforms and languages
How complex are the graphics? On the Web side you'll probably want to look at WebGL, not canvas. But that would still be a re-write.
Jun
25
comment BCMath vs MySQL: performance
I'd use MySQL. I'd be very surprised if returning all the necessary rows to perform your calculations within PHP would be faster than having MySQL handle it. But like virtually every other optimization question posted here, there's only one way to know for sure and that's to try both.
Jun
25
comment BCMath vs MySQL: performance
Sounds like your actual question is BCMath vs your ORM, not MySQL.
Jun
23
comment Is serving a single document from a server to a browser slower than serving multiple documents?
base64 will increase the size of your images significantly. Also by using separate css and js files, they can be cached between pages by the browser, reducing the transfer size.
Jun
17
comment Making a safe PHP login system
You don't want to save the user id hash on the client. Save it as part of a session variable as I described in the other question. You only need to store a unique and random session id on the client. From that you can retrieve the session information from your database.
Jun
17
comment The correct way to use Sessions (PHP)?
What exactly is your concern with it?
Jun
17
answered The correct way to use Sessions (PHP)?
Jun
8
comment NoSQL or MySQL?
To paraphrase Mr. Myagi, either MySQL do or NoSQL do... but sit in the middle of road by using both... squashed like grape.
Jun
4
revised Is there a way to develop desktop software using PHP?
Edited to update for 2015
Jun
3
comment Why would I need node.js to run a javascript library?
It looks like it uses npm to install dependencies, but to be sure you should ask the author of that package directly.
May
22
comment DLL or web service for common functions?
A web service could be many thousands of times slower for just 'internal math calculations' than a local DLL. I think you need to look at the specific bits of functionality in question rather than a one-size-fits-all approach.