4 ms·
> I don’t know whether this is just due to first-mover advantage or not but it also looks like more projects use spaces over tabs. So what’s the point of going
by deafpolygon 2y ago
> I don’t know whether this is just due to first-mover advantage or not but it also looks like more projects use spaces over tabs. So what’s the point of going against the tide where there does not seem to be a very powerful advantage anyway?
Sure, now. But, there was a time when I was a young man in college (circa 1997) where professors and the industry would push Tabs as a standard. Shortly after, the tides changed and we were all using spaces.
> Stop hard-wrapping and just use soft-wrapping
Who cares about grep? I mean, aside from the OP and probably many on here. Wrapping is a task that should be left up to the viewing device/software. It can be made to be responsive, which hard-wrapping cannot be.
> newline
This really should be a solved issue by now. Both as users and by software.
- kugurerdem 2y ago> Shortly after, the tides changed and we were all using spaces. Very interesting. Thanks for sharing this information! What do you think might have caused this though? > Who cares about grep? I do care. I find it much easier to work with a codebase that has logs and error messages that can be easily searched. Similarly, working on a blog with searchable text makes more sense to me. Before switching to soft-wrapping, I used hard-wrapping, and sometimes I would notice a typo or an issue in one of the essays. When I tried to quickly search for a nearby word, it wouldn’t find it because the text had been hard-wrapped. I think it also makes it far easier for outsiders to navigate a repo which they are not familiar with. About the newline, I agree.
- SoftTalker 2y ago> What do you think might have caused this though? The rise in web-browser-based code editors, where tab moves to the next field on the form instead of inserting a literal \t character.
- samatman 2y agogrep -C 5 does the trick quite nicely I find. rg accepts the same flag.