📢
25
c/coding-for-beginners•wadea53wadea53•1d ago

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 In
2 Comments
jamieperez
My friend did the same thing with CSS for six months.
4
skyler_kim
Yeah @jamieperez, I did that with JavaScript once.
0