Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Rants & Raves
Author Message
djmaze
Subject Matter Expert



Joined: May 15, 2004
Posts: 727
Location: http://tinyurl.com/5z8dmv

PostPosted: Sat Aug 04, 2007 7:40 am Reply with quote

This is spinning in my head for years and i need to get it out:

PHP coders suck!

They all think they are good and always ask stupid questions.
But somehow, at work, i always end-up fixing all that crap code loads of others have made.

People please: Programming is for the educated so stop designing commercial software if you know s**t about it.
That way i don't get the crap companies place on my plate when the previous "programmer" couldn't understand it anymore.
 
View user's profile Send private message Visit poster's website
kguske
Site Admin



Joined: Jun 04, 2004
Posts: 6437

PostPosted: Sat Aug 04, 2007 8:05 am Reply with quote

Ouch!

There are lots of issues here...

Are PHP developers worse that developers who use other languages?

The first reaction for many is that the language doesn't matter - poor developers are poor in any language. But PHP supports, if not encourages, poor code because it's too forgiving. You want to change a variable definition on the fly? No problem! Mix OO, structured and unstructured code in the same script? Go ahead! You don't need any discipline to make PHP scripts functional.

But as for fixing crap from other developers, that certainly isn't limited to PHP.

What can you do? Why not develop a guide for good code? Like "Elements of PHP Style"... Then, you could sell it on Packt Publishing!

_________________
I search, therefore I exist...
Only registered users can see links on this board! Get registered or login!
 
View user's profile Send private message
djmaze







PostPosted: Sat Aug 04, 2007 8:30 am Reply with quote

good idea kguske but why bother writing such guide if poor coders never read anyway?

Yes poor coders exist in any language, even C++, but as you said PHP invites you to do more damage then poor code.
 
Gremmie
Former Moderator in Good Standing



Joined: Apr 06, 2006
Posts: 2415
Location: Iowa, USA

PostPosted: Sat Aug 04, 2007 9:28 am Reply with quote

There are a lot of bad C++ programmers too. Oh the things I have seen... Smile

_________________
Only registered users can see links on this board! Get registered or login! - An Event Calendar for PHP-Nuke
Only registered users can see links on this board! Get registered or login! - A Google Maps Nuke Module 
View user's profile Send private message
djmaze







PostPosted: Sat Aug 04, 2007 9:37 am Reply with quote

This was my cheerup in the past Wink
http://worsethanfailure.com/
 
kguske







PostPosted: Sun Aug 05, 2007 8:58 am Reply with quote

If you have a guide, you can recommend it to the people before you get stuck with the mess they create. If they don't use it, you'll be justified in calling them out for it. If they do read it and don't follow it, they should be able to defend their position or be terminated... Basically, it takes away the excuses, and you could make some money in the process.
 
montego
Site Admin



Joined: Aug 29, 2004
Posts: 9457
Location: Arizona

PostPosted: Sun Aug 05, 2007 9:16 am Reply with quote

Well, I cannot comment on the professional coder part because I am not one of them (really??? lol). However, I cannot tell you how many times in my business that I just sit and shake my head at what "programmers" come up with in terms of user interface and overall system design. Really pretty pathetic much of the time now. No real business sense, just college degrees (at least those software vendors that I deal with). Software vendors are pulling less expensive labor straight out of college and assuming that a programmer is a "dime a dozen". Shameful....

_________________
Only registered users can see links on this board! Get registered or login!
Only registered users can see links on this board! Get registered or login! 
View user's profile Send private message Visit poster's website
Gremmie







PostPosted: Sun Aug 05, 2007 10:01 am Reply with quote

The biggest problem I have seen is getting too many young kids out of college to work on a project without a senior programmer or two to steer them, to teach them, etc. That is when you get the unworkable messy code.
 
evaders99
Former Moderator in Good Standing



Joined: Apr 30, 2004
Posts: 3221

PostPosted: Mon Aug 06, 2007 8:04 am Reply with quote

It's the way the world works. Its cheaper to hire young kids who will do the work for cheap. After a few years, you lay them off and hire some new kids. And thus is the cycle of CS majors. Wink

Plus with the internet, it is much easier for college kids to try and strike it rich. Look at Facebook and other social network sites. They're pretty much all started with a young crowd.

I'm not saying that lazy coding isn't bad... but for programmers today, society requires quick development and return. You want to get your product out before your competition. This isn't where you can spend tons of reviews on your code.
PHP makes it happen by providing a simple C-style syntax with many, many functions. Its allows very quick, very lazy development with really little pre-production. Even the developers have encouraged this by not focusing on OOP fully (until PHP 5). I think that's why it has taken off for the majority of web sites today.

Can we do better? Certainly.. I believe PHP 6 will enforce better coding. From what I've read, warnings will have to be dealt with and things like magic_quotes_gpc will no longer exist.

_________________
- Only registered users can see links on this board! Get registered or login! -

Need help? Only registered users can see links on this board! Get registered or login! 
View user's profile Send private message Visit poster's website
Donovan
Client



Joined: Oct 07, 2003
Posts: 735
Location: Ohio

PostPosted: Wed Aug 08, 2007 7:40 am Reply with quote

Well I just got a new job in the Dayton Ohio area. I start Tuesday at Wright State University supporting the Interdisciplinary Teaching Laboratory at the School of Medicine. They have a testing and grading application they built using PHP and MySQL. I will keep up the development of the project and also create another application to support some Team Learning initative.

I am by no means a professional PHP developer, but I try and follow good coding practices. I have asked advice from Kevin, Montego, Evaders, and Raven countless times and will continue to do so.

It seems some developers starting out may not ask for help, and end up with buggy code. Hopefully they don't put such stuff in production, but it happens.
 
View user's profile Send private message Visit poster's website ICQ Number
Raven
Site Admin/Owner



Joined: Aug 27, 2002
Posts: 17088

PostPosted: Thu Aug 09, 2007 11:08 pm Reply with quote

DJMaze wrote:
PHP coders suck!


That's the problem with DJM. He never says what's really on his mind! killing me ROTFL
 
View user's profile Send private message
djmaze







PostPosted: Fri Aug 10, 2007 11:43 am Reply with quote

Oh so true Raven. If i did the world would be better, but then we can't rant Smile

Would be fun to have a "post stupid code" forum.
Code:


echo "$registered_global_nonsanitized_ediot";
 
montego







PostPosted: Sat Aug 11, 2007 5:33 pm Reply with quote

Or, even better:

echo "" . _LANGUAGE_CONSTANT . "";

Uuugghhhh....
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Rants & Raves

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©