It's not a secret anymore!
The moose likes Cattle Drive and the fly likes Funny how being nitpicked .. Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » This Site » Cattle Drive
Reply 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).]
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Funny how being nitpicked ..
 
Similar Threads
Got it!!!!!!!
10th Nov Riddle
shailesh sonavadekar crosses the 1000 posts milestone
WHY WOMEN LIKES TO SHOW THEIR FLASH UNLIKE MEN.
What is your opinion on Eric the Half-a-Bee?