V
7
c/coding-for-beginnershenryt18henryt181d agoMost Upvoted

Pro tip: stop naming your CSS classes 'box1' through 'box20' and expecting it to scale

I was helping a friend debug their personal site after they finished a 2 month JavaScript course and their entire layout broke because they had no structure, just 40 lines of 'float: left' and random class names, has anyone else seen beginners dig themselves into a hole with bad naming conventions?
2 comments

Log in to join the discussion

Log In
2 Comments
williamhenderson
Man I've seen this so many times now. It's like people just jump into coding without learning the basics of how to organize things. That 'float: left' approach is a dead giveaway they watched one tutorial and ran with it. Naming stuff 'box1' is fine for a quick test but it falls apart fast. Maybe courses need to spend more time on naming and structure before anything else.
5
danielm80
danielm801d ago
Burning a few weeks on naming conventions sounds like a great way to kill any beginner's interest in coding.
3