aspose file tools*
The moose likes Cattle Drive and the fly likes Funny how being nitpicked .. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » This Site » Cattle Drive
Bookmark "Funny how being nitpicked .." Watch "Funny how being nitpicked .." New topic
Author

Funny how being nitpicked ..

Johannes de Jong
tumbleweed
Bartender

Joined: Jan 27, 2001
Posts: 5089
even changes the way I do my daily work on the IBM mainframe.
Example :
In the old days I would think nothing of coding this (in PL/1) :

Now I coded it like this :




the != is not correct PL/1 but I cant find the correct char here x'5F' in EBCDIC

Bruce Wingate
Ranch Hand

Joined: Feb 16, 2001
Posts: 32
PL/1 -- holy cow, old languages do never die!!
I'm still on the fence about not-logic. There are some instances where it is easier and makes sense, and others where it is just old habit.
We have some horrendous code that uses not-named variables with not logic

The genius who coded that was also not consistent with how he loaded the variable. So notFinished=False could mean it was finished or not finished, depending on his whims.
As per your code, I try to avoid null code blocks, and when I use them, I make sure to put a comment in saying that I know it is blank.
Bruce.
Daniel Olson
Ranch Hand

Joined: Jan 05, 2001
Posts: 81
I agree. It is sometimes clearer to use != than to always use ==. In natural language it would be possible to avoid using "not", but sometimes using it is the simplest way to say something.
Johannes de Jong
tumbleweed
Bartender

Joined: Jan 27, 2001
Posts: 5089
Yes I dont like null statements either but heck I was work on a thight schedule today, the code had to run before 17:00, else I had to wait another week to test it. Sort of snap shot moment of the PDS'd directories of our production libaries at 17:00.
As for the negative "! finished" it makes a "moerse" lot of sense to me. I suppose one can, or rather should, do something like this :

Am I getting the point Marilyn ???

[This message has been edited by Johannes de Jong (edited March 17, 2001).]
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Funny how being nitpicked ..