Guest askjames01 Posted April 25, 2006 Share Posted April 25, 2006 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? Quote Link to comment https://forums.phpfreaks.com/topic/8372-detinguishing-profesional-source-codes-for-php/ Share on other sites More sharing options...
ober Posted April 25, 2006 Share Posted April 25, 2006 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 Link to comment https://forums.phpfreaks.com/topic/8372-detinguishing-profesional-source-codes-for-php/#findComment-30587 Share on other sites More sharing options...
Guest askjames01 Posted April 25, 2006 Share Posted April 25, 2006 what do you mean by readable codes ober?is this mean simple logic codes and not complicated one? Quote Link to comment https://forums.phpfreaks.com/topic/8372-detinguishing-profesional-source-codes-for-php/#findComment-30591 Share on other sites More sharing options...
ober Posted April 25, 2006 Share Posted April 25, 2006 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. Quote Link to comment https://forums.phpfreaks.com/topic/8372-detinguishing-profesional-source-codes-for-php/#findComment-30596 Share on other sites More sharing options...
Guest askjames01 Posted April 25, 2006 Share Posted April 25, 2006 ah, i see.how about VERY LARGE PROJECT codes...any good suggestions? Quote Link to comment https://forums.phpfreaks.com/topic/8372-detinguishing-profesional-source-codes-for-php/#findComment-30605 Share on other sites More sharing options...
ober Posted April 25, 2006 Share Posted April 25, 2006 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. Quote Link to comment https://forums.phpfreaks.com/topic/8372-detinguishing-profesional-source-codes-for-php/#findComment-30607 Share on other sites More sharing options...
zq29 Posted April 25, 2006 Share Posted April 25, 2006 [!--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! Quote Link to comment https://forums.phpfreaks.com/topic/8372-detinguishing-profesional-source-codes-for-php/#findComment-30639 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.