Click here to Skip to main content
14,485,248 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: I was sent this, and... Pin
Joan M9-Jan-20 22:47
professionalJoan M9-Jan-20 22:47 
GeneralRe: I was sent this, and... Pin
Basildane10-Jan-20 1:44
MemberBasildane10-Jan-20 1:44 
QuestionHow much code is too much? Pin
honey the codewitch9-Jan-20 14:36
mvahoney the codewitch9-Jan-20 14:36 
AnswerRe: How much code is too much? Pin
John R. Shaw9-Jan-20 18:23
MemberJohn R. Shaw9-Jan-20 18:23 
GeneralRe: How much code is too much? Pin
honey the codewitch9-Jan-20 18:45
mvahoney the codewitch9-Jan-20 18:45 
GeneralRe: How much code is too much? Pin
Stefan_Lang10-Jan-20 1:48
mveStefan_Lang10-Jan-20 1:48 
GeneralRe: How much code is too much? Pin
honey the codewitch10-Jan-20 2:52
mvahoney the codewitch10-Jan-20 2:52 
GeneralRe: How much code is too much? Pin
John R. Shaw17-Jan-20 1:45
MemberJohn R. Shaw17-Jan-20 1:45 
I should have come back earlier - I am impressed. I am not knocking your generator; keep it up, because it looks good to me.

As an actual human being I would try to avoid something that looked like that (reformat the code at minimum). Because the first thing I would do with that code is reformat it into something that a human can read without counting braces (brackets or whatever). "Trust, but verify".

There was a time when that whole 'if' statement would be one step in a debugger. You had to stop and look at every variable to figure out why it passed or failed. That is why some modern compilers (VS) allow you to actually step through the individual sub-statements in the 'if' statements. Why that was the case has to do with the language itself, which I cannot explain at the moment.

I got carried away again. In theory, if not in practice, generated code should be more precise than what a human could create. In reality, a human that really knows the language can do better. But, in my experience, that is a very small subset of humans, so keep it up.
INTP
"Program testing can be used to show the presence of bugs, but never to show their absence." - Edsger Dijkstra
"I have never been lost, but I will admit to being confused for several weeks. " - Daniel Boone

GeneralRe: How much code is too much? Pin
honey the codewitch17-Jan-20 2:22
mvahoney the codewitch17-Jan-20 2:22 
AnswerRe: How much code is too much? Pin
Mark_Wallace9-Jan-20 20:33
MemberMark_Wallace9-Jan-20 20:33 
GeneralRe: How much code is too much? Pin
honey the codewitch9-Jan-20 21:10
mvahoney the codewitch9-Jan-20 21:10 
AnswerRe: How much code is too much? Pin
KarstenK9-Jan-20 20:38
mveKarstenK9-Jan-20 20:38 
GeneralRe: How much code is too much? Pin
honey the codewitch9-Jan-20 21:09
mvahoney the codewitch9-Jan-20 21:09 
AnswerRe: How much code is too much? Pin
Jon McKee9-Jan-20 20:44
professionalJon McKee9-Jan-20 20:44 
GeneralRe: How much code is too much? Pin
honey the codewitch9-Jan-20 21:08
mvahoney the codewitch9-Jan-20 21:08 
GeneralRe: How much code is too much? Pin
Jon McKee9-Jan-20 22:03
professionalJon McKee9-Jan-20 22:03 
GeneralRe: How much code is too much? Pin
honey the codewitch9-Jan-20 22:31
mvahoney the codewitch9-Jan-20 22:31 
GeneralRe: How much code is too much? Pin
Jon McKee9-Jan-20 23:18
professionalJon McKee9-Jan-20 23:18 
GeneralRe: How much code is too much? Pin
honey the codewitch9-Jan-20 23:22
mvahoney the codewitch9-Jan-20 23:22 
GeneralRe: How much code is too much? Pin
Jon McKee9-Jan-20 23:35
professionalJon McKee9-Jan-20 23:35 
GeneralRe: How much code is too much? Pin
honey the codewitch10-Jan-20 2:57
mvahoney the codewitch10-Jan-20 2:57 
GeneralRe: How much code is too much? Pin
Jon McKee10-Jan-20 1:00
professionalJon McKee10-Jan-20 1:00 
GeneralRe: How much code is too much? Pin
honey the codewitch10-Jan-20 2:55
mvahoney the codewitch10-Jan-20 2:55 
AnswerRe: How much code is too much? Pin
Daniel Pfeffer9-Jan-20 21:33
professionalDaniel Pfeffer9-Jan-20 21:33 
GeneralRe: How much code is too much? Pin
honey the codewitch9-Jan-20 21:39
mvahoney the codewitch9-Jan-20 21:39 

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.