Jump to content

Detinguishing profesional source codes for PHP?


Guest askjames01

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?






Link to comment
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.
Link to comment
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.
Link to comment
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.
Link to comment
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!
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

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.