7
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?
3 comments
Log in to join the discussion
Log In3 Comments
williamhenderson23d ago
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
danielm8023d ago
Burning a few weeks on naming conventions sounds like a great way to kill any beginner's interest in coding.
3
mason_reed4721d ago
Haha man, nothing says "I'm just winging it" like class names that look like prison IDs! At that point you're basically coding by hope and prayer.
1