Click here to Skip to main content
15,885,309 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: WSO CCC OTD 2023-01-31 - We have a winner! Pin
pkfox31-Jan-23 4:30
professionalpkfox31-Jan-23 4:30 
GeneralRe: WSO CCC OTD 2023-01-31 - We have a winner! Pin
OriginalGriff31-Jan-23 4:45
mveOriginalGriff31-Jan-23 4:45 
GeneralRe: WSO CCC OTD 2023-01-31 - We have a winner! Pin
pkfox31-Jan-23 6:40
professionalpkfox31-Jan-23 6:40 
Generalworldle374 - you can do it Pin
jmaida30-Jan-23 16:38
jmaida30-Jan-23 16:38 
GeneralRe: worldle374 - you can do it Pin
ChandraRam30-Jan-23 21:27
ChandraRam30-Jan-23 21:27 
GeneralRe: worldle374 - you can do it Pin
jmaida31-Jan-23 13:02
jmaida31-Jan-23 13:02 
Generalcode review Pin
Super Lloyd30-Jan-23 14:43
Super Lloyd30-Jan-23 14:43 
GeneralRe: code review PinPopular
trønderen30-Jan-23 15:54
trønderen30-Jan-23 15:54 
Super Lloyd wrote:
Anyway, someone was updating my code
One of my earlier co-workers discovered that my code contained a '#define ever ;;' so that I could write an infinite loop as 'for (ever) { ...'. A few years earlier, I was working in a CHILL environment; in CHILL 'DO FOR EVER' is a part of the base language.

This construction made my coworker so upset that he not only changed it where he had discovered it; he searched through the entire code base of the company for other uses, and found a good handful; I had been programming with 'for (ever) {' for a couple of years by then (in embedded software, infinite loops are commonplace), changing every one of them to 'while (0) {', adding an angry commit comment that requested everybody to refrain from making such 'jokes' in our program code - we are a serious company!

Then he brought it up at the scrum, to make sure that everybody would know that in our company, we do not code that way.

I asked if we could make it slightly less cryptic by using 'while (true) {', but this fellow would not under any circumstances accept that. According to him, there is one, single way of coding an infinite loop, that is immediately recognized by every programmer in the world, and that is 'while (0)'. So he would not tolerate anything else.

He certainly had no formal authority, completing his degree about three years earlier, having worked in the company for half a year, I was 25 years his senior. I didn't have to accept his dictate. But he had an unbearable arrogance and self confidence that I didn't care to fight against, so I just nodded "OK!".

At least that episode gave me a story to tell - this is certainly not the first time Smile | :)
GeneralRe: code review PinPopular
Super Lloyd30-Jan-23 16:52
Super Lloyd30-Jan-23 16:52 
GeneralRe: code review Pin
jmaida30-Jan-23 17:57
jmaida30-Jan-23 17:57 
GeneralRe: code review Pin
Super Lloyd30-Jan-23 20:02
Super Lloyd30-Jan-23 20:02 
JokeRe: code review Pin
Daniel Pfeffer30-Jan-23 21:28
professionalDaniel Pfeffer30-Jan-23 21:28 
GeneralRe: code review Pin
jmaida31-Jan-23 12:40
jmaida31-Jan-23 12:40 
GeneralRe: code review Pin
jmaida31-Jan-23 14:09
jmaida31-Jan-23 14:09 
GeneralRe: code review Pin
trønderen30-Jan-23 20:24
trønderen30-Jan-23 20:24 
GeneralRe: code review Pin
Richard MacCutchan30-Jan-23 21:59
mveRichard MacCutchan30-Jan-23 21:59 
GeneralRe: code review Pin
GuyThiebaut31-Jan-23 0:12
professionalGuyThiebaut31-Jan-23 0:12 
GeneralRe: code review Pin
Super Lloyd31-Jan-23 0:50
Super Lloyd31-Jan-23 0:50 
GeneralRe: code review Pin
trønderen31-Jan-23 0:57
trønderen31-Jan-23 0:57 
GeneralRe: code review Pin
Mircea Neacsu31-Jan-23 2:01
Mircea Neacsu31-Jan-23 2:01 
GeneralRe: code review Pin
trønderen31-Jan-23 13:39
trønderen31-Jan-23 13:39 
GeneralRe: code review Pin
Mircea Neacsu31-Jan-23 13:46
Mircea Neacsu31-Jan-23 13:46 
GeneralRe: code review Pin
obermd31-Jan-23 4:08
obermd31-Jan-23 4:08 
GeneralRe: code review Pin
trønderen31-Jan-23 14:26
trønderen31-Jan-23 14:26 
GeneralRe: code review Pin
Daniel Pfeffer31-Jan-23 6:11
professionalDaniel Pfeffer31-Jan-23 6:11 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.