3
I finally realized my "clever" one-liner JavaScript was the problem
For about 8 months I kept writing these super short arrow functions and ternary chains in my practice projects. I thought it looked smart and saved space. Then last Tuesday I tried to read one of my own scripts from 3 weeks ago and I had zero clue what it did. It took me 15 minutes just to untangle a single line. My friend glanced over and said "dude, this is why we name variables and use if statements." Now I write code for the next person, and honestly that person is often me. Anyone else have that moment where their own code became a mystery?
1 comments
Log in to join the discussion
Log In1 Comment
veramartin23d ago
The 5th time I rewrote my own ternary, did you finally delete it or just rename it?
10