Click here to Skip to main content
15,920,801 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.

 
JokeRe: Maybe you guys can laugh at this... I still cannot. Pin
Richard C Bishop28-Jan-14 11:07
professionalRichard C Bishop28-Jan-14 11:07 
GeneralRe: Maybe you guys can laugh at this... I still cannot. Pin
Joe Woodbury28-Jan-14 12:00
professionalJoe Woodbury28-Jan-14 12:00 
GeneralRe: Maybe you guys can laugh at this... I still cannot. Pin
Dan Neely29-Jan-14 2:48
Dan Neely29-Jan-14 2:48 
GeneralRe: Maybe you guys can laugh at this... I still cannot. Pin
BrainiacV29-Jan-14 7:38
BrainiacV29-Jan-14 7:38 
GeneralRe: Maybe you guys can laugh at this... I still cannot. Pin
KP Lee29-Jan-14 10:24
KP Lee29-Jan-14 10:24 
GeneralRe: Maybe you guys can laugh at this... I still cannot. Pin
BrainiacV29-Jan-14 10:58
BrainiacV29-Jan-14 10:58 
GeneralRe: Maybe you guys can laugh at this... I still cannot. Pin
KP Lee29-Jan-14 13:32
KP Lee29-Jan-14 13:32 
GeneralRe: Maybe you guys can laugh at this... I still cannot. Pin
BrainiacV30-Jan-14 4:14
BrainiacV30-Jan-14 4:14 
KP Lee wrote:
So, how would you grade my coding?
My number 1 rule for grading code is..."Does it work?"

After that, I normally don't care how many clock cycles you are chewing up unless it makes the code unusable.

Readability only becomes an issue when you have to go into the code to fix it or make changes.

But let me relate another story where I had instructed one of my minions to make a minor change to a program and he complained that it would require duplicating this entire screen of code to insert a space in the output. "Unless you know a better way." which is what he used to say to his previous manager. Unfortunately, I did. It took a few minutes of playing in immediate mode, but I wrote an equivalent subroutine in only three lines of code. (which ended up being more robust than his POS) He came around and while he'd still try using that line on me, this time around he was asking for help instead of trying to avoid work.

But a classic case of code collapsing (as I call it) was when I was taking a class in PL/1 and the assignment was to detect the number of words on an 80 column line of text. Having just come from a life of GOTO programming. I wanted to embrace structured code and had elaborate code to deal with the special cases of words beginning the line and words at the end of the line. All the rest would be bounded by spaces. As I rolled the listing into a wide carriage typewriter to add comments to the code (otherwise I'd have to repunch the deck of cards and submit the deck to operations and wait whatever was the prevailing turnaround time) I reexamined my logic to explain what the code was doing and in doing so realized that I could have made the code vastly simpler if I had moved the supplied 80 column card image into a buffer with 82 characters with a space in the front and a space in the back. I added comments at the end of the listing stating that and I believe as a consquence I got a very good grade for my solution.
Psychosis at 10
Film at 11

Those who do not remember the past, are doomed to repeat it.
Those who do not remember the past, cannot build upon it.

GeneralRe: Maybe you guys can laugh at this... I still cannot. Pin
KP Lee30-Jan-14 9:46
KP Lee30-Jan-14 9:46 
GeneralRe: Maybe you guys can laugh at this... I still cannot. Pin
SoMad28-Jan-14 17:49
professionalSoMad28-Jan-14 17:49 
GeneralRe: Maybe you guys can laugh at this... I still cannot. Pin
sir_download_alot28-Jan-14 20:45
professionalsir_download_alot28-Jan-14 20:45 
GeneralRe: Maybe you guys can laugh at this... I still cannot. Pin
Herbie Mountjoy28-Jan-14 21:15
professionalHerbie Mountjoy28-Jan-14 21:15 
GeneralRe: Maybe you guys can laugh at this... I still cannot. Pin
glennPattonWork328-Jan-14 21:54
professionalglennPattonWork328-Jan-14 21:54 
GeneralRe: Maybe you guys can laugh at this... I still cannot. Pin
grralph129-Jan-14 2:14
grralph129-Jan-14 2:14 
GeneralRe: Maybe you guys can laugh at this... I still cannot. Pin
Dan Neely29-Jan-14 2:38
Dan Neely29-Jan-14 2:38 
GeneralRe: Maybe you guys can laugh at this... I still cannot. Pin
Alexander DiMauro29-Jan-14 3:32
Alexander DiMauro29-Jan-14 3:32 
GeneralRe: Maybe you guys can laugh at this... I still cannot. Pin
Sharon Freas29-Jan-14 3:49
Sharon Freas29-Jan-14 3:49 
Generalan honest comment Pin
etkid8429-Jan-14 5:04
etkid8429-Jan-14 5:04 
GeneralRe: an honest comment Pin
mgoad9929-Jan-14 5:12
mgoad9929-Jan-14 5:12 
GeneralRe: an honest comment Pin
etkid8429-Jan-14 5:17
etkid8429-Jan-14 5:17 
GeneralRe: Maybe you guys can laugh at this... I still cannot. Pin
RafagaX29-Jan-14 5:43
professionalRafagaX29-Jan-14 5:43 
GeneralRe: Maybe you guys can laugh at this... I still cannot. Pin
bkebamc29-Jan-14 6:00
bkebamc29-Jan-14 6:00 
GeneralRe: Maybe you guys can laugh at this... I still cannot. Pin
rjmoses29-Jan-14 6:02
professionalrjmoses29-Jan-14 6:02 
GeneralRe: Maybe you guys can laugh at this... I still cannot. Pin
jhfw5829-Jan-14 20:55
professionaljhfw5829-Jan-14 20:55 
GeneralRIP JewWario Pin
JMK8928-Jan-14 6:25
professionalJMK8928-Jan-14 6:25 

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.