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

May 2025

S M T W T F S
    123
45678910
11121314151617
1819 202122 2324
25262728293031

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Sunday, May 25th, 2025 03:56 am
Powered by Dreamwidth Studios