I have been thinking about applying more design concepts to code for the bonuses that come with them.
I have already started enforcing with vertical rhythm (see other post) and it feels great.
Today, I decided to play with the optimal amount of characters per line.
// TODO: Tangent while writing, we should try out dynamic word wrap?
The concept is take the typographic design rule of optimal amount of characters per line (65 chars at 16pt font) and apply it to code. My interpretation has been to fork from absolute 80 character limit and move to a relative 65 character limit.
I wrote up a quick Sublime plugin, optimize-lines, which "works" but doesn't highlight past characters which defeats the purpose.
After realizing it was unfeasible to go straight to a proof of concept, I went into pixlr and started playing around:
Highlighted sections:
Variable ruler:
Variable continuous ruler:
Colored ruler:
Colored continuous ruler:
I am not in awe of the results and feel there is a better solution but don't know the representation of it yet.