Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

The asinine argument at the heart of that rant is that we should format our code so it's more greppable. Let's not consider making a better/semantic grep that can match code. Let's all instead insert strategic line breaks in our code so that the current grep sort of works on it.


Semantic line wrap serves the same purpose, and can be done at any line width when viewing.

Even the simplest improvement in line wrapping of maintaining the leading indent is pretty much enough. Once I started using Atom and then VS Code, which both do this, I pretty much stopped worrying about line length except when it was semantically confusing (like many arguments to a function where I use newlines to separate the top-level arguments from the expressions).




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: