coding peeve

Monday, May 30th, 2011 03:22 am[personal profile] darkoshi
darkoshi: (Default)
My company is working with another company to get one of their large COBOL applications translated into java. The other company doesn't think that including white-space in the code for legibility is important. Apparently the people on my side don't think it's that important either, as we surely could have requested it be done anyway, and how difficult could it be to add spaces and line-breaks?

So a lot of the translated code that we're getting looks like this:

if(someThing.doThis()||someThing.doThat().doThis()||someOtherThing.doSomeOtherThing()==ITSALONGLONGLONGLINE||xyz++==ITSAREALLYREALLYLONGLINE){
  thatThing.memberVar=ladiDah.isANiceDay();
  thatThing.memberVar2=ladiDah.dahdahdah;
}

This peeves me.

A lot of our programmers are new to Java. So when they start working on the code and updating it, they will likely mimic the above formatting, possibly not even realizing that it's possible or preferable to put in whitespace and linebreaks.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting

June 2025

S M T W T F S
1234567
8910 1112 1314
15161718192021
222324 25 262728
2930     

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Friday, June 27th, 2025 08:22 am
Powered by Dreamwidth Studios