Ask HN: What is your best advice for a junior software developer?
341–350 of 460 posts
Re: Ask HN: What is your best advice for a junior software developer?
#342Earlier quoted context omitted.
That’s only true if the developer of the class module let the entire stack trace get through to the consumer. In C# it’s the difference between... try { .... }catch(Exception e) { //Do stuff throw new MyCustomException(“Something Bad happened”); } And try { .... }catch(Exception e) { //do stuff throw; }
In what case would you ever want the second example?
It's pretty frustrating when you're debugging someone else's code and their error handling just throws away all of the useful information and replaces it with a generic "Something broke" kind of message.
Re: Ask HN: What is your best advice for a junior software developer?
#343I advise junior developers that there are primarily two difference between a junior and senior developer: 1) A senior developer is unafraid of not knowing things. When we join a new team or company, we're as lost as any junior developer joining them team. We ask as many questions as necessary to get our work done effectively, without shame or fear of looking foolish for not knowing things already. We are good at sear…
I wrote up something about it a while back: http://zalberico.com/essay/2017/02/21/asking-questions.html
Re: Ask HN: What is your best advice for a junior software developer?
#344Re: Ask HN: What is your best advice for a junior software developer?
#345Re: Ask HN: What is your best advice for a junior software developer?
#346Earlier quoted context omitted.
I've gotten a lot of value from reading HN. I've also wasted a lot of time. It helps to develop a personal filter. Mine is * Avoid headlines that make me angry, unless the news is really important. The discussion is never worthwhile, don't even bother. * WSJ, Bloomberg, and WaPo won't let me read articles with w3m, so I skip the article. If the topic is tremendously interesting, I'll check the comments. * TED and nau…
"object orientation is a failed paradigm" uh... wtf?
Re: Ask HN: What is your best advice for a junior software developer?
#347Earlier quoted context omitted.
It isn't just a huge hint, most of the time it tells you exactly what the damn issue is. This discussion is blowing my mind. I am honestly speechless. IT GIVES YOU THE LINE NUMBER AND THE FUNCTION CALL AND THE REASON! Why would you ever even attempt to debug without parsing it?
Wait wait wait. Not so fast. i'm one of those programmers who read manuals and stack traces but I have to admit that I've seen my share of both manuals as well as stack traces that didn't make much sense.
Re: Ask HN: What is your best advice for a junior software developer?
#348Earlier quoted context omitted.
That’s only true if the developer of the class module let the entire stack trace get through to the consumer. In C# it’s the difference between... try { .... }catch(Exception e) { //Do stuff throw new MyCustomException(“Something Bad happened”); } And try { .... }catch(Exception e) { //do stuff throw; }
In what case would you ever want the second example?
Re: Ask HN: What is your best advice for a junior software developer?
#349Earlier quoted context omitted.
Wait wait wait. Not so fast. i'm one of those programmers who read manuals and stack traces but I have to admit that I've seen my share of both manuals as well as stack traces that didn't make much sense.
This is my experience with Clojure stack traces ~60-75% of the time. Perhaps it is a symptom of functional programming? A lot of function passing and anonymous functions make it difficult to generate a meaningful stack trace.
Re: Ask HN: What is your best advice for a junior software developer?
#350Read the error messages. Reread them. Extract every piece of information from them. Never close an error popup without having read and understood what it means. Always read stack traces when you're blessed enough to have them. 100% of the juniors (and an awful lot of seniors) I've ever trained simply ignore those and then come ask for help debugging. 99% of the time, the explanation for their problem is literally the…
Ok, I'm strictly a hobby developer so I don't really have co-workers to go ask for help. Do people really not read error messages? That boggles my mind. How would you ever figure out what went wrong? I mean, how could anyone ever learn to program well enough to get a job as a professional programmer without knowing to do that?