Click here to Skip to main content
14,539,516 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: CCC- 1/10/20 Pin
pkfox10-Jan-20 5:38
professionalpkfox10-Jan-20 5:38 
GeneralRe: CCC- 1/10/20 Pin
OriginalGriff10-Jan-20 5:47
mveOriginalGriff10-Jan-20 5:47 
GeneralI was sent this, and... Pin
OriginalGriff9-Jan-20 20:57
mveOriginalGriff9-Jan-20 20:57 
GeneralRe: I was sent this, and... Pin
musefan9-Jan-20 21:44
Membermusefan9-Jan-20 21:44 
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 
Quote:
People say size doesn't matter these days
They are wrong and always have been. Just because people have large disk drives and mass amounts of memory does not mean that lean and mean is not preferable to bloat code.
I have seen code that only took 100k to do the same thing that someone did in over 1000K. Just remember Complex is easy, but simple is hard. Beautiful code is simple and easy to understand, but is often hard to create.

On a C compiler that does not do optimization "i = ++n" is much more efficient than "i = n++". On a C++ compiler that does optimization (when dealing with classes) the difference in efficiency is much worse (n++ is a very bad habit to fall into).

The goal of code generation should be concise efficient code.

Sorry, I think a got off subject. Just keep in mind that even generated code should be reviewed.
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 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 
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 

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.