PHP Web Host - Quality Web Hosting For All PHP Applications Sign up for PayPal and start accepting credit card payments instantly
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
Author Message
djmaze
Subject Matter Expert


Joined: May 15, 2004
Posts: 536
Location: http://tinyurl.com/2rxdv3

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

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: 4620

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

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!
View user's profile Send private message
djmaze
Subject Matter Expert


Joined: May 15, 2004
Posts: 536
Location: http://tinyurl.com/2rxdv3

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

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.
View user's profile Send private message Visit poster's website
Gremmie
Moderator


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

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

There are a lot of bad C++ programmers too. Oh the things I have seen... Smile
View user's profile Send private message
djmaze
Subject Matter Expert


Joined: May 15, 2004
Posts: 536
Location: http://tinyurl.com/2rxdv3

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

This was my cheerup in the past Wink
Only registered users can see links on this board!
Get registered or login to the forums!
View user's profile Send private message Visit poster's website
kguske
Site Admin


Joined: Jun 04, 2004
Posts: 4620

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

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.
View user's profile Send private message
montego
Site Admin


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

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

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....
View user's profile Send private message Visit poster's website
Gremmie
Moderator


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

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

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.
View user's profile Send private message
evaders99
Moderator


Joined: Apr 30, 2004
Posts: 2749

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

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.
View user's profile Send private message Visit poster's website
Donovan
Client


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

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

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: 14925
Location: Kansas

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

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 Visit poster's website AIM Address Yahoo Messenger
djmaze
Subject Matter Expert


Joined: May 15, 2004
Posts: 536
Location: http://tinyurl.com/2rxdv3

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

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";
View user's profile Send private message Visit poster's website
montego
Site Admin


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

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

Or, even better:

echo "" . _LANGUAGE_CONSTANT . "";

Uuugghhhh....
View user's profile Send private message Visit poster's website
Display posts from previous:       
Post new topic   Reply to topic

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
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2008 by Raven
Proud to be listed at Lobo Links Web Directory

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::

:: fisubice Theme Recoded To 100% W3C CSS & HTML 4.01 Transitional Compliance by Raven and 64bitguy ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum