Jump to content

Archived

This topic is now archived and is closed to further replies.

Guest askjames01

Detinguishing profesional source codes for PHP?

Recommended Posts

Guest askjames01
Just curious to know if the source codes was written by an expert programmers or not?

How do you distinguish codes written by professional programmers?

Or what should a programmer do, to make his codes look more professional?






Share this post


Link to post
Share on other sites
Comments, spacing, indents, and readable code. Variables should be descriptive and defined if they're meaning is not readily apparent. Classes should be well documented and snippets should explain complex loops and calls.

Share this post


Link to post
Share on other sites
Guest askjames01
what do you mean by readable codes ober?
is this mean simple logic codes and not complicated one?

Share this post


Link to post
Share on other sites
No, I mean proper spacing, good variable names, using switches instead of multiple nested ifs.... you can tell when someone doesn't know the language because they use very long methods to accomplish something.

Share this post


Link to post
Share on other sites
Guest askjames01
ah, i see.

how about VERY LARGE PROJECT codes...

any good suggestions?

Share this post


Link to post
Share on other sites
I'm not sure what you mean. The same practices should be true for small and large projects. The only thing I would suggest for bigger projects (and something I should be doing at work) is to create an external document that describes your application.

Share this post


Link to post
Share on other sites
[!--quoteo(post=368478:date=Apr 25 2006, 04:05 PM:name=ober)--][div class=\'quotetop\']QUOTE(ober @ Apr 25 2006, 04:05 PM) [snapback]368478[/snapback][/div][div class=\'quotemain\'][!--quotec--]
Comments, spacing, indents, and readable code. Variables should be descriptive and defined if they're meaning is not readily apparent. Classes should be well documented and snippets should explain complex loops and calls.
[/quote]
I'd pretty much agree with that - It really does annoy me when people don't follow those very simple concepts, especially the indents, without them it makes code a lot more difficult to read!

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.