Search found 1130 matches

by BDKR
Fri Nov 08, 2013 11:15 am
Forum: PHP - Frameworks
Topic: Which PHP framework is best for developing application..
Replies: 26
Views: 28669

Re: Which PHP framework is best for developing application..

Codeigniter! Least pretentious. Most flexible. Best performance (least over head), with the exception of Yii. OTOH, you could also write your own. Far easier then you might think. There are tons of components out there that would make the job quick too! I've used Rails, Sinatra, Symfony, CI, and Zen...
by BDKR
Fri Nov 08, 2013 10:46 am
Forum: PHP - Theory and Design
Topic: DB transactions discussion
Replies: 7
Views: 12829

Re: DB transactions discussion

Well why are you inserting rows just to delete them or roll them back, might as well use a temp table if I understand right. Or maybe even a sqllite in memory database that you delete after you're done. Or just don't use a database at all if you don't need persistence. :roll: Either you're not comp...
by BDKR
Wed Oct 30, 2013 3:22 pm
Forum: PHP - Theory and Design
Topic: DB transactions discussion
Replies: 7
Views: 12829

Re: DB transactions discussion

I get the impression that some programmers, especially those that are self-taught or learned on very simple websites, have very little understanding of what databases are capable of. This is very different from old school style of offloading complex operations to the database with features like tra...
by BDKR
Wed Oct 23, 2013 3:31 pm
Forum: PHP - Theory and Design
Topic: DB transactions discussion
Replies: 7
Views: 12829

DB transactions discussion

I've been shocked recently to encounter a bit of resistance to using database level transactions. You know... Begin, Rollback, Commit. Instead, I hear the bloke saying things like, "Since you already have the ID's, you could just delete the record". Now while that may sound simple enough, ...
by BDKR
Wed Oct 23, 2013 3:19 pm
Forum: PHP - Theory and Design
Topic: PHP Mysql best practise
Replies: 3
Views: 7541

Re: PHP Mysql best practise

I agree with Christopher. Knowing how the scan is done would be great.

That said, if you just want to allow the user to confirm that the entered information is correct, why can't you keep this in a session until he's finished confirming the entries?
by BDKR
Wed Oct 23, 2013 1:55 pm
Forum: PHP - Theory and Design
Topic: Why not learn OOP before Procedural?
Replies: 9
Views: 13975

Re: Why not learn OOP before Procedural?

I do believe that there is one big potential problem with focusing on OOP early. That is that it seems to encourage a view point that is purely OOP. By that I mean, there are no algorithmic or lower level considerations. Lego programming! :D A small example that I saw only yesterday is where the pro...
by BDKR
Sat Aug 07, 2010 12:44 am
Forum: PHP - Theory and Design
Topic: Tangra PHP framework
Replies: 10
Views: 4303

Re: Tangra PHP framework

Tangra framework is not intended for use on high load sites. It is more suitable for intranet or extranet environments where reliability, feature richness and usability are more important than serving 50 000+ hits per hour. Hmmmm.......... Is feature richness and usability not important in sites se...
by BDKR
Sat Aug 07, 2010 12:37 am
Forum: PHP - Code
Topic: Get value before and/or after "x" in a string?
Replies: 4
Views: 262

Re: Get value before and/or after "x" in a string?

You should use the example above. I was just bored and did it a different way. $str = '1440x900'; $pos = strpos($str, 'x'); $width = substr($str, 0, $pos); $height = substr($str, $pos+1);  You are right that he should use the example posted above, but it's good you posted this example as not all st...
by BDKR
Fri Aug 06, 2010 5:38 am
Forum: General Discussion
Topic: What makes a good programmer?
Replies: 4
Views: 845

Re: What makes a good programmer?

I think you're on the money Onion, but what I've found over 43 years is that you can only communicate with people that are open to communication . This guy is not open to communication when considering an issue or view point that differs from his. When an employer is not patient enough to listen and...
by BDKR
Fri Aug 06, 2010 1:24 am
Forum: General Discussion
Topic: What makes a good programmer?
Replies: 4
Views: 845

Re: What makes a good programmer?

Thanks pickle. Yeah, this guy was a bit of an arse. He has a worldview that is in incapable of realizing there are situations and circumstance that are different then his. Gave me 2 hours of training on an online project management system that wasn't the answer he thought it was, then immediately st...
by BDKR
Thu Aug 05, 2010 5:03 pm
Forum: PHP - Theory and Design
Topic: Object Oriented Blog System Class Structure
Replies: 58
Views: 19299

Re: Object Oriented Blog System Class Structure

There's a saying "thin controller fat model". You'll notice my controller I shared was only 3 lines. This is just a made up example but for all you know getting the title of the post took me 500,000 lines of code. If that were the case MVC did us a great justice by hiding that from the vi...
by BDKR
Thu Aug 05, 2010 8:45 am
Forum: General Discussion
Topic: What makes a good programmer?
Replies: 4
Views: 845

What makes a good programmer?

Having just got my arse chewed for not being fast enough, I just have to ask! In a nutshell, I've not worked for the past 10 years doing "yet another website" for Joe Blow or worked for some company that did so. I worked most of the time doing cool stuff that required out of the box thinki...
by BDKR
Fri Mar 05, 2010 3:12 pm
Forum: PHP - Theory and Design
Topic: Why to close a mysql connection?
Replies: 6
Views: 1603

Re: Why to close a mysql connection?

pytrin wrote:There is no "intelligence" or "figuring out things". When a script finishes executing, it releases all the resources it used.
And of course you're right. I was thinking of other phases of script execution.
by BDKR
Fri Mar 05, 2010 2:07 pm
Forum: PHP - Theory and Design
Topic: Why to close a mysql connection?
Replies: 6
Views: 1603

Re: Why to close a mysql connection?

The connection will close when the script ends. Sometimes, for a long running script it is better to close the connection after it is no longer needed to free up resources. For 99% of all cases you shouldn't need to close it manually Right on the money! In a system I recently developed t hat runs f...
by BDKR
Wed Feb 17, 2010 2:39 pm
Forum: PHP - Theory and Design
Topic: Asking for help - Timer question
Replies: 22
Views: 5958

Re: Asking for help - Timer question

While I did read a bit of this, I've kind of skipped to the end here so forgive me if I re-hash something. I don't see any reason why you couldn't run something like a scheduler that's always running and at certain intervals updates player information based on configuration data found either on file...