Click here to Skip to main content
15,905,967 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: It's the fault of that lot in the forums I tell you. Pin
Kevin Marois17-May-18 6:21
professionalKevin Marois17-May-18 6:21 
GeneralRe: It's the fault of that lot in the forums I tell you. Pin
PIEBALDconsult17-May-18 6:32
mvePIEBALDconsult17-May-18 6:32 
GeneralRe: It's the fault of that lot in the forums I tell you. Pin
lopatir17-May-18 6:46
lopatir17-May-18 6:46 
GeneralRe: It's the fault of that lot in the forums I tell you. Pin
Richard Deeming17-May-18 7:08
mveRichard Deeming17-May-18 7:08 
GeneralRe: It's the fault of that lot in the forums I tell you. Pin
PIEBALDconsult17-May-18 8:45
mvePIEBALDconsult17-May-18 8:45 
GeneralRe: It's the fault of that lot in the forums I tell you. Pin
Marc Clifton17-May-18 8:53
mvaMarc Clifton17-May-18 8:53 
GeneralRe: It's the fault of that lot in the forums I tell you. Pin
Kornfeld Eliyahu Peter17-May-18 6:55
professionalKornfeld Eliyahu Peter17-May-18 6:55 
GeneralRe: It's the fault of that lot in the forums I tell you. Pin
Marc Clifton17-May-18 8:50
mvaMarc Clifton17-May-18 8:50 
The amusing thing is that that looks quite like one of my wrong versions of FizzBuzz when I wrote this. It's actually surprising the number of code examples I found on the web that didn't implement this very simple algorithm correctly.

So...

Pete O'Hanlon wrote:
So the question is, is this useful?


Absolutely. The whole idea is that even with what looks like the second simplest of algorithms (Hello World) being the simplest) it's easy to get it wrong, and you need to know how to debug it when thinking about even something so simple actually fails.

Pete O'Hanlon wrote:
Is it only a minority that don't know how to debug or is this a wider issue that needs to be taught?


I had a couple debugging session last week with a coworker, granted, a junior dev. What was interesting was that he was looking for the problem in all the wrong places. Before starting a debug session, one needs to ask "what exactly am I looking for and what are my initial guesses at where I might find it?" The "what" is not "where is it crashing" -- the exception tells you that, but the "why is it crashing and what are reasons I can come up with where I can go look?"

So often, I see people trying to understand why the line of code is failing or throwing an exception, not realizing that the line of code is working with data that some other function incorrectly created somewhere else in the process, that probably isn't even part of the function with the failing line.

Pete O'Hanlon wrote:
If it's a minority of developers, then am I wasting my time here?


No, it's the majority. But you're still wasting your time because the majority doesn't even have the awareness that they're approach to debugging is totally wrong. That's what needs to be corrected, and that's where I'd start. With the article title "You do NOT know how to debug!" Big Grin | :-D
Latest Article - Building a Prototype Web-Based Diagramming Tool with SVG and Javascript

Learning to code with python is like learning to swim with those little arm floaties. It gives you undeserved confidence and will eventually drown you. - DangerBunny

Artificial intelligence is the only remedy for natural stupidity. - CDP1802

GeneralRe: It's the fault of that lot in the forums I tell you. Pin
Rick York17-May-18 10:10
mveRick York17-May-18 10:10 
GeneralRe: It's the fault of that lot in the forums I tell you. Pin
SkysTheLimit17-May-18 8:58
SkysTheLimit17-May-18 8:58 
GeneralRe: It's the fault of that lot in the forums I tell you. Pin
BillWoodruff17-May-18 11:13
professionalBillWoodruff17-May-18 11:13 
GeneralRe: It's the fault of that lot in the forums I tell you. Pin
englebart18-May-18 2:17
professionalenglebart18-May-18 2:17 
GeneralRe: It's the fault of that lot in the forums I tell you. Pin
Gerry Schmitz18-May-18 7:53
mveGerry Schmitz18-May-18 7:53 
GeneralThought of the Day Pin
OriginalGriff17-May-18 4:51
mveOriginalGriff17-May-18 4:51 
QuestionRe: Thought of the Day Pin
megaadam17-May-18 5:09
professionalmegaadam17-May-18 5:09 
GeneralRe: Thought of the Day Pin
Ravi Bhavnani17-May-18 5:36
professionalRavi Bhavnani17-May-18 5:36 
GeneralRe: Thought of the Day Pin
Daniel Pfeffer17-May-18 5:41
professionalDaniel Pfeffer17-May-18 5:41 
GeneralRe: Thought of the Day Pin
W Balboos, GHB17-May-18 6:14
W Balboos, GHB17-May-18 6:14 
GeneralRe: Thought of the Day Pin
lopatir17-May-18 6:35
lopatir17-May-18 6:35 
GeneralRe: Thought of the Day Pin
Gary Wheeler17-May-18 6:47
Gary Wheeler17-May-18 6:47 
GeneralRe: Thought of the Day Pin
PIEBALDconsult17-May-18 12:37
mvePIEBALDconsult17-May-18 12:37 
GeneralBrowser tabs Pin
Marc Clifton17-May-18 3:15
mvaMarc Clifton17-May-18 3:15 
GeneralRe: Browser tabs PinPopular
User 742933817-May-18 3:21
professionalUser 742933817-May-18 3:21 
GeneralRe: Browser tabs Pin
Marc Clifton17-May-18 3:25
mvaMarc Clifton17-May-18 3:25 
GeneralRe: Browser tabs Pin
Phil J Pearson17-May-18 3:30
Phil J Pearson17-May-18 3:30 

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.