FRIHOST • FORUMS • SEARCH • FAQ • TOS • BLOGS • COMPETITIONS
You are invited to Log in or Register a free Frihost Account!

How to write good code




If you ever wondered how to write good code - the answer is here. ( found in this discussion thread on Quroa: "What are some bad habits that self-taught programmers develop?" )




3 blog comments below

funny but true
standready on Fri Jan 06, 2017 4:55 pm
You got them right.
jestoy0514 on Fri Jan 06, 2017 6:36 pm
Disclaimer: I'm not an expert or professional, I just love programming.


There is a difference between coding and creating an application.
IMO writing code is the easy part.

a project needs structure, analysis, planning and (very import) a scope.

you basically start out with information gathering, cost/benefit analysis, planning etc..


after the project has been accepted you move on my creating a layout, this could be a set of nsd diagrams or UML diagrams.
At this stage your still working hard on flowcharts, I like to use activity diagrams, data flow diagrams and control flow diagrams.

At this stage you may have spent a decent amount of time on the project without writing a single line of code.

oh, if the application uses a database, your normalization is also done a this stage. I like to get this over as soon as possible.

Once you've created a basic layout you can start to create your basic building blocks ( or application framework )

once your codebase is ready you hit the details of the program.


one of the most important if not thι most important aspect of programming is ( and always has been ) analysis. which most self tought programmers skip because want to learn how to write code.

I started out the same way once and after 3 years of writing messy code I took up a programmer/analyst course evening class ( 3 years, 3 evenings a week ) it changed my life.


- instead of wanting to learn how to code you want to learn how to build applications ( projects )
- never skip analysis. like building a house... first the blueprint then the bricks. a contractor doesn't start by laying bricks the way he feels they should be placed and basically 'wing' the build.
Marcuzzo on Fri Jan 13, 2017 1:07 pm



FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.