+ 2
What's the best way to code clean codes. I want my foundation to be strong in content and presentation. I'm learning on my own.
Mostly CSS3 I need some advice guys. In my area there are no people who do IT I'm just on my own.
1 Odpowiedź
+ 1
Hi Malan Kudakwashe Kapishe! In order to write clean code you should:
#Make code readable for other people
#Use meaningful names for variables, functions and methods
#Let one function or method perform only one task
#Stay consistent (follow same set of rules and develop your style)
#Review and change your code regularly
This is the answer to the first question. However if you wanted info about clean code in CSS3:
Avoid global and element selectors
Omit overly specific selectors
Use semantic class names
Don’t tie CSS too closely to markup structure