javascript - What constitutes as good code in web development? -
first off, i'm beginner in front end coding. i'm trying learn i'm having trouble trying figure out "good code" is. looking how change color of specific element , came across advice use !important. later came across answers stated !important dangerous thing use because of how overrides things. explanation makes sense realized had no clue things watch out when coding in html/css/javascript. long story short, there way tell if code bad when works?
by way, i'm thinking of guidelines, how can use space/time efficiency judge if code bad in object-oriented programming. it's not criteria if code isn't efficient, don't consider code "good".
as beginner, i'd recommend validate everything. there many tools out there. example: when write html, validate proper html validator (example: http://validator.w3.org/). same goes css (http://jigsaw.w3.org/css-validator/), & js (http://jslint.com/).
secondly, i'd recommend ask opinion other developers on stack overflow - code review.
last not least, validate using page speed performance tools (https://developers.google.com/speed/pagespeed/insights/, http://www.webpagetest.org/, etc)
i can guarantee learn lot during whole process.
ps: forgot, take @ frontend handbook. nice one! clear confusion.
Comments
Post a Comment