Eps 8: Clean Up Your Code – Talking HTML

Talking HTML - Un pódcast de Tom Norman

Categorías:

Welcome to Talking HTML, an audio/video internet thing for web developers who are just starting out.
Write clean code

* Indentation

* make sure it’s consistent
* ensures readability of the code, maps out what you are doing and what element is nested where


* Make sure you’re naming your id’s and classes consistently

* they need to make sense and not just be garbled dumpster fires


* Make sure your code writing program uses colors for different styles of code

* elements, attributes, php vs html vs javascript

* will help to identify individual aspects of code faster




* Don’t be afraid to use the enter button

* space between content sections can help keep your code sorted


* Use multiple CSS documents when creating responsive designs

* ex – 1 style sheet for cell phones, 1 style sheet for tablets, 1 style sheet for large screens and then 1 style sheet for regular sized screens


* make sure all of your files are sorted and named properly

* no empty folders
* folders need to have an index.html page
* files need to be named appropriately

* your portfolio page shouldn’t be called “job stuff”

* leads to messy url’s and takes longer to find if you forget what you named things






* Use comments to specify code snippets and entire sections of your code

* commenting on your code can help you remember what your code does when looking at it. More importantly it helps others figure out what you’re doing if you pass a project on
* ex – comment what is navigation, sidebar, body, footer, special content
* comment on what code actually does



You can always use programs after the fact to take the spacing out of the CSS style sheets
 
Please go to iTunes and Stitcher and rate the show! Ratings get listeners!!
http://www.Webdevpod.com for all the content and links
@TNPWDesign
@tommnorman
DreamHost promo code – tnpw
 

Visit the podcast's native language site