25
I was writing the same code over and over for a month before I saw the problem
I was building a simple website for a local bakery and kept copying my code to make three different pages. After about four weeks, my friend looked at my project and said, 'You know you can use a function for that, right?' I had been typing out the same navigation bar HTML on every single page. I felt pretty silly. Has anyone else missed something basic like that for a long time?
3 comments
Log in to join the discussion
Log In3 Comments
jamieperez2mo ago
My friend did the same thing with CSS for six months.
4
the_robin2mo ago
Six months on just CSS sounds like a waste of time though. You can learn the basics in a few weeks and then you're just stuck making boxes pretty. How many layouts can you really build before you need actual logic from something like JavaScript?
3
skyler_kim2mo ago
Yeah @jamieperez, I did that with JavaScript once.
0