logoalt Hacker News

JSR_FDEDyesterday at 7:05 AM2 repliesview on HN

Using the same length of related variable names is definitely a good thing.

Just lining things up neatly helps spot bugs.

It’s the one thing I don’t like about strict formatters, I can no longer use spaces to line things up.


Replies

craig552ukyesterday at 9:18 AM

I've never yet seen a linter option for assignment alignment, but would definitely use it if it were available

show 1 reply
skydhashyesterday at 11:15 AM

I know prettier can isolate a code section from changes by adding comments. And I think others can too.