“It’s just easier to type” and other lies you believe

You are viewing a single thread.
View all comments View context
0 points

I’ve already felt like I should choose shorter names in a (shitty) project where the customer asked us to use an auto-formatter and a max line-width of 120 characters.

Because ultimately, I choose expressive variable names for readability. But an auto-formatter gladly fucks up your readability, breaking your line at some random ass point, unless your line does not need to be broken up.

And so you start negotiating whether you really need certain information in a variable name for the price of badly broken lines.

permalink
report
parent
reply
0 points

120 characters is quite much, though.

permalink
report
parent
reply
0 points

Yeah, I meant it as an example, where I was still granted relatively luxurious conditions, but even those already caused me to compromise on variable names.

I’d say, 95% of my lines of code do fit into 120 characters easily. It’s those 5% that pained me.

permalink
report
parent
reply

Programmer Humor

!programmer_humor@programming.dev

Create post

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

  • Keep content in english
  • No advertisements
  • Posts must be related to programming or programmer topics

Community stats

  • 7K

    Monthly active users

  • 730

    Posts

  • 11K

    Comments