Our great sponsors
-
software-development
Notes and articles on software development. All content is original. Most of the content reflects the way that our current software team operates.
-
SurveyJS
Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.
>I don't know of an interface other than email that doesn't wrap them.
Here are some common examples:
1. GitHub's single commit view word-wraps at monitor width, not at a reasonable line length:
https://github.com/matklad/repros/commit/9351f5c91bd1d80dbcc...
The result is completely unreadable.
2. `git log` in a full-screen terminal wraps at window width, not at a readable length.
3. In VS Code in Magit, lines are not wrapped at all by default. It is possible to enable wrapping, but then they are wrapped at the screen edge, not at a readable line length. I _think_ VS Code actually has a setting to visually wrap at column, but I wasn't able to make that work.
Additionally, if you look at that commit message, you'll see that, to properly soft-wrap it, you'll need a markdown parser to recognize an indented bullet list. VS Code actually wraps that list correctly, but I expect very few other tools to do that.
There’s another way that feels totally unnatural at first, but puts the subject (the most important part) of the commit message first. It makes the commit about the change and the code, rather than the author. This is how we do it in all of our projects. I fought it at first, but I was wrong and it’s a lot better.
Example:
EntityStore build method records the specifier argument when given
Article about it: https://github.com/aaronjensen/software-development/blob/mas...
> 80 should be fine for most single lines of good code in most languages.
C++ with even a modest template will flow over 80 without much effort.
I'm now using the condensed width font Iosevka font [1] with 160 chars as my max width in clang-format and indents at 1.
After a few days of using it, I'm converted. It was a bit odd looking at first, but I guess that's brain plasticity at work.
1. https://github.com/be5invis/Iosevka/releases