Checkstyle

Started by
14 comments, last by Sik_the_hedgehog 9 years, 8 months ago

I'm sure these classes still stress heavily commenting your code as well.

Advertisement

They still teach programming in programming classes? No one programs anymore. You just download, install, configure, and wire up technology stacks using other people's libraries. If you're "writing" your own code it is obvious you didn't research the problem well enough.

biggrin.png

I think, therefore I am. I think? - "George Carlin"
My Website: Indie Game Programming

My Twitter: https://twitter.com/indieprogram

My Book: http://amzn.com/1305076532

laugh.png "The best way to get a bad law repealed is to enforce it strictly"
Demonstrating that the rules are broken by creating unreadable code that passes the readability guidelines seems a fair demonstration!


As for line lengths, while you can rotate monitors by 90° without too much effort these days, most guys I know work on an unrotated 16:10 or 16:9 monitor, so long lines are actually not that bad.

90º monitors / 9:16 aspect FTW!! I use a 1920*1080 and a 1440*2560.
Also, when using a 16:9 aspect, I always split the IDE down the middle so I can see two files at the same time cool.png

No need to strictly stick to the traditional 80 characters (as derived from when we coded via terminals), but it's still a good idea to resort to line-breaks after some point.

I tend to compromise; I keep my comments wrapped at 80, and I try to keep long expressions wrapped, but I will not break things in awkward places, like splitting six parameters into one parameter per line if their names and types are too long.


What on earth is wrong with soft-wrapped lines?

Having an identifier or typename wrap mid-token is jarring for me.


Having an identifier or typename wrap mid-token is jarring for me.

I don't think I've ever seen an editor that wraps mid-token. Even word processors only do that for a very well-defined set of legally hyphenated words...

Tristam MacDonald. Ex-BigTech Software Engineer. Future farmer. [https://trist.am]

They still teach programming in programming classes? No one programs anymore. You just download, install, configure, and wire up technology stacks using other people's libraries. If you're "writing" your own code it is obvious you didn't research the problem well enough.

biggrin.png

I wish it was that easy ._.'

Don't pay much attention to "the hedgehog" in my nick, it's just because "Sik" was already taken =/ By the way, Sik is pronounced like seek, not like sick.

This topic is closed to new replies.

Advertisement