Just had a debate amongst the development team here about Java bracing styles.
Here we favour “Allman style” where the braces are on a line all on their own.
I generally feel that it enhances readability, but recognise that it’s mostly a personal preference and not something to have a fight over.
We were simply discussing people’s preference and other aspects of it when a contractor waded in to our discussion to explain why he preferred “K&R style“.
His argument was that you could fit more code on screen (a fact that you can’t disagree with) and he also didn’t like white space in files for the same reason.
He then showed us some code where there were no blank lines within any of the methods.
To me it looked like an unreadable blob of text.
In the past when I had seen code like that I had always assumed the coder didn’t care much about readability. I subsequently took a dim view of the general quality of their code.
I’d never heard anyone try to justify such messy difficult to read code before.
Ignoring the fact that he’s a contractor, does he have a point?