Want to read Slashdot from your mobile device? Point it at m.slashdot.org and keep reading!

 



Forgot your password?
typodupeerror
×

Comment Re:Sounds like a plan! (Score 1) 1067

Divide by investors, and then loop thru the investors and remove teh 250k (or whatever chunk) for each one, just like looping thru the records/rows returned by a db query. But, just like if your db query returns no results, doing something like

while ($row=$dbhandle->fetch_row()){ // call some function to transfer money from investment account // to investors' accounts
    xferMoney($amount,$srcAccount,$destAccount);
}

That xferMoney() function would never run, because there is no row to fetch from the db results.

(sorry, was fixing some old PHP code earlier today, so I'm still kinda in that mindset....)

Comment Re:Why PHP Won (Score 2) 281

Same way you do for just about any other language - don't trust any input given. Check it for type, check it for how it was delivered (POST vs GET vs reading from file/stdin/whatever), check it for a (sane) value, deal with unexpected or missing values in a sane way, etc. When using SQL stuff use PDO or mysqli class/functions to use prepared statements.

Comment Re:Generalisation (Score 1) 336

I think that what drives the "gotta get it done yesterday" attitude with the game market is either the marketing company who printed a deadline months ago (coming next june!) for desktop/console games, or in the mobile game market the need to be first to put it out there just in case some other group is working on a similar game or to crank out a different version of the same game (see the Angry Birds franchise)

Comment Re:The 90's all over again... (Score 1) 151

Heck, you need funding or a lot of free time (and money in the bank to pay your own personal bills) to just get something to the point you can show it to someone else to find out if it is worth continuing to make it good enough to seek funding to do the marketing, etc.

I had an idea based on a problem I saw here at work, and I know that a good solution would have kept me comfortable for a looong time. Unfortunately, I would need to take 6 months to a year to develop it well enough to even begin trying to sell, so I'd need enough $ to cover my paycheck, my health insurance, insurance for my wife and kids, etc. Sure, I got a skeleton of the idea working by staying up until 2 or 3 in the morning, but between working full time, teaching a couple of classes as adjunct, taking a class here and there, trying to be involved with my family, it just won't work.

So here I am 15 years later - my idea still has value, I've not seen a product to fix the issue, and I *still* can't do much of anything with it.

Oh well.

Slashdot Top Deals

There are no data that cannot be plotted on a straight line if the axis are chosen correctly.

Working...