Click here to Skip to main content
15,885,032 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: Eschew obfuscation -- again Pin
MarkTJohnson6-Nov-20 0:53
professionalMarkTJohnson6-Nov-20 0:53 
GeneralRe: Eschew obfuscation -- again Pin
rjmoses6-Nov-20 3:27
professionalrjmoses6-Nov-20 3:27 
GeneralRe: Eschew obfuscation -- again Pin
honey the codewitch6-Nov-20 1:34
mvahoney the codewitch6-Nov-20 1:34 
GeneralRe: Eschew obfuscation -- again Pin
rjmoses6-Nov-20 3:25
professionalrjmoses6-Nov-20 3:25 
GeneralRe: Eschew obfuscation -- again Pin
  Forogar  6-Nov-20 5:12
professional  Forogar  6-Nov-20 5:12 
GeneralRe: Eschew obfuscation -- again Pin
DRHuff6-Nov-20 4:29
DRHuff6-Nov-20 4:29 
GeneralRe: Eschew obfuscation -- again Pin
Rick York6-Nov-20 5:56
mveRick York6-Nov-20 5:56 
GeneralRe: Eschew obfuscation -- again Pin
rjmoses6-Nov-20 23:50
professionalrjmoses6-Nov-20 23:50 
My preference is to look at a piece of code and understand the what's, why's, and how's very, very quickly.

Looking at the above LLVM code (and I see this coding style in a lot of other code nowadays) makes it very difficult to understand what is going on. Why did the author of this code feel it was necessary to write 4 lines of a function call that simply added one parameter based on the function name to another function call?

I can imagine situations where something like this might be appropriate for reliability, efficiency, clarity, etc. but in this case, these functions are called two times in the complete LLVM package. Maybe it would be appropriate if there where thousands of calls, but I don't see the need here.
GeneralRe: Eschew obfuscation -- again Pin
Greg Utas7-Nov-20 2:26
professionalGreg Utas7-Nov-20 2:26 
GeneralRe: Eschew obfuscation -- again Pin
rjmoses7-Nov-20 2:40
professionalrjmoses7-Nov-20 2:40 
GeneralSound of the Week Pin
Sander Rossel5-Nov-20 23:15
professionalSander Rossel5-Nov-20 23:15 
GeneralRe: Sound of the Week Pin
yacCarsten6-Nov-20 2:05
yacCarsten6-Nov-20 2:05 
GeneralRe: Sound of the Week Pin
David O'Neil6-Nov-20 7:00
professionalDavid O'Neil6-Nov-20 7:00 
GeneralRe: Sound of the Week Pin
Sander Rossel7-Nov-20 1:24
professionalSander Rossel7-Nov-20 1:24 
GeneralRe: Sound of the Week Pin
David O'Neil7-Nov-20 8:59
professionalDavid O'Neil7-Nov-20 8:59 
GeneralRe: Sound of the Week Pin
Sander Rossel7-Nov-20 12:17
professionalSander Rossel7-Nov-20 12:17 
GeneralRe: Sound of the Week Pin
David O'Neil7-Nov-20 15:08
professionalDavid O'Neil7-Nov-20 15:08 
GeneralRe: Sound of the Week Pin
Sander Rossel8-Nov-20 2:00
professionalSander Rossel8-Nov-20 2:00 
GeneralRe: Sound of the Week Pin
David O'Neil8-Nov-20 6:03
professionalDavid O'Neil8-Nov-20 6:03 
GeneralRe: Sound of the Week Pin
David O'Neil8-Nov-20 9:24
professionalDavid O'Neil8-Nov-20 9:24 
GeneralRe: Sound of the Week Pin
Sander Rossel8-Nov-20 9:53
professionalSander Rossel8-Nov-20 9:53 
GeneralRe: Sound of the Week Pin
David O'Neil8-Nov-20 10:02
professionalDavid O'Neil8-Nov-20 10:02 
GeneralWSO CCC OTD 2020-11-07 Pin
OriginalGriff5-Nov-20 21:36
mveOriginalGriff5-Nov-20 21:36 
GeneralRe: WSO CCC OTD 2020-11-07 Pin
yacCarsten5-Nov-20 22:39
yacCarsten5-Nov-20 22:39 
GeneralRe: WSO CCC OTD 2020-11-07 Pin
OriginalGriff5-Nov-20 23:11
mveOriginalGriff5-Nov-20 23: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.