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?
2 comments
Log in to join the discussion
Log In2 Comments
jamieperez1d ago
My friend did the same thing with CSS for six months.
4
skyler_kim1d ago
Yeah @jamieperez, I did that with JavaScript once.
0