I am a graphic designer and i have my own PSD designs, i have been finding programmers to slice them into Word press blogs etc. I have heard the phrase "clean coding" used a lot. For example, there are some PSD slicing service websites that claim they have "clean coding" etc. Can someone inform me on the definition of "clean coding"?
It means that it is simple, easily readable (and formatted nicely) and it is valid (X)HTML with the standards defined
Clean coding means no bit of unnecessary codings were part of the codes, and that they are coded the way it should be. eg. The professional way of coding the navigation links section is to use html listing then style it using CSS, instead of multiple div or span tags <ul id="navigation"> <li><a href="#">Link 1</a></li> <li><a href="#">Link 2</a></li> <li><a href="#">Link 3</a></li> <li><a href="#">Link 4</a></li> </ul> Code (markup): and that's one part of it only, basically a good xhtml/css coder also uses "CSS reset", and a single external CSS stylesheet that's to be used for all webpages using the same CSS styles.. then there's 'CSS Sprite' etc. I'm a xhtml/css coder btw, up for hire anytime if you need my service.
Clean coding also requires correct hierarchal structure apart of valid xHTML with external CSS file. List (<li>) and headline (<h1>,<h2>...) elements have to indicate what elements are within others so search engine spiders would understand how your website content is organized. Regards
Clean coding is basically what it comes out and says... it's clean and easy to read, more organized. It isn't essential or even necessary really. As long as it won't need to be edited by different coders in the future. If it falls under XHTML and is somewhat organized it is fine in my book. Others think differently though.
Clean Coding is Define as.. good Programming Structure for Make a Excellent and Error less Design of Website...