Will anyone convince me that hard line wrapping is a defensible default in code editors?
5
1kṀ1568
Jan 27
20%
chance

The hard vs. soft line wrapping debate seems like the most one-sided code styling debate I've ever come across.

Hard wrapping wastes screen space, breaks searches, breaks character counts, makes it easy to accidentally miss spaces, breaks copy-pasting into other programs, risks display errors in whitespace-sensitive programs, cannot account for tab-based indentation properly, and does not follow the general convention that line breaks should occur at semantically meaningful points in the code.

I have searched the internet high and low, and have yet to see a coherent argument in favor of hard wrapping that doesn't rely on some form of either "I use a poorly-designed editor that cannot soft wrap" or "I don't understand that I can make exceptions for the rare cases where hard wrapping is necessary. (e.g. ASCII art.)"

And yet, hard wrapping remains common. Prettier for example actually mandates hard wrapping, with no option to turn it off. The most straightforward explanation of course is that everyone involved with Prettier is a dogmatic cultist with an allergy to facts and logic... but there is always the minuscule chance that I am overlooking something.

In order for this market to resolve YES, you don't have to convince me that hard wrapping is better, just that the people who try to enforce it on others are not totally insane. (Starting probability should probably be around 10%, but I won't bet myself since it's subjective.) It must be about the general case, not one particular idiosyncratic editor or language.

There will be no AI clarifications added to this market's description.

Get
Ṁ1,000
to start trading!
© Manifold Markets, Inc.TermsPrivacy