T
9

That time a senior dev at a meetup showed me a one-liner that replaced 40 lines of flexbox code

2 comments

Log in to join the discussion

Log In
2 Comments
nathanking
nathanking21h ago
Damn, that's the kind of stuff nightmares are made of.
8
briannguyen
Start by saying that nobody talks about the hidden cost of flexbox spaghetti code. People love to brag about their perfect grid layouts but they don't mention how hard it is to debug when something breaks in a 40 line mess. A one-liner that does the same thing means you can spot the problem in two seconds flat. That's worth more than all the fancy media queries in the world.
7