Earlier quoted context omitted.
If used correctly, «this should not happen» can be very useful, indicating e.g that the program is in some illegal state, as opposed to the input being incorrectly formatted.
Even if that’s the case, create a custom exception and embed in the custom exception object the actual exception.
Ask HN: What is your best advice for a junior software developer?
401–410 of 460 posts
Re: Ask HN: What is your best advice for a junior software developer?
#402Re: Ask HN: What is your best advice for a junior software developer?
#403Earlier quoted context omitted.
>Being valuable to the person who's employing you is what makes your progress in your career. More importantly learn how to be recognized as valuable. It's better to appear valuable without actually being valuable than being valuable but not recognized, and often you don't even have a good idea what's valuable in the bigger picture on your own so accepting others valuation can help you from being stuck in your bubble…
It looks like this comment is being downvoted because it appears to endorse being deceptive. I’d like to chime in and second the sentiment in slightly different terms: value is not inherently visible. You can waste a lot of time contributing significant invisible value to a company with no recognition or reward. On the other hand, you can provide a small amount of value and receive significant recognition just by mak…
OTOH maybe that's the way it should be - first you work your ass off and get real skills then you learn how to sell but have the skill to back it up.
Also a LOT of people fall in to the trap of thinking just because they perceive something as valuable that it's actually valuable to the employer - zealous juniors learning best practices without knowing how to put them in context wasting time and effort and getting frustrated for not getting recognized even though they "are right" .
Re: Ask HN: What is your best advice for a junior software developer?
#404Earlier quoted context omitted.
What about, log_panic("If we have somehow managed to hit this code path, this project if FUBAR. I would recommend giving up and starting over.")
That's annoying but fine as long as it's unique and you can grep it in the codebase.
Re: Ask HN: What is your best advice for a junior software developer?
#405Earlier 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?
Let's try that! I was trying to do some trivial task on a .gov website, but was greeted with the following, which I'm pasting here for your convenience. Could you spot the problem? Because their customer service can't. --- Error Page Exception SRVE0260E: The server cannot use the error page specified for your application to handle the Original Exception printed below. Original Exception: Error Message: javax.servlet.…
Re: Ask HN: What is your best advice for a junior software developer?
#406Never work unpaid overtime. Go the contract route early. Learn Python and SQL.
But not exclusively. Both are incredibly useful tools that will open a lot of door for you, but I personally wouldn't want either of these to be considered my bread and butter.
Re: Ask HN: What is your best advice for a junior software developer?
#407Earlier 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?
Let's try that! I was trying to do some trivial task on a .gov website, but was greeted with the following, which I'm pasting here for your convenience. Could you spot the problem? Because their customer service can't. --- Error Page Exception SRVE0260E: The server cannot use the error page specified for your application to handle the Original Exception printed below. Original Exception: Error Message: javax.servlet.…
The original site of the null ref error seems to be the DBAuthInsert method at com.icbc.licensing.clio.action.VerificationAction.DbAuthInsertandCount(VerificationAction.java:118) so maybe a getConnection is returning a null and not being checked, or some config variable is borked. Would start digging at line 118 to work out what variables are being dereferenced and where their values come from.
Re: Ask HN: What is your best advice for a junior software developer?
#408Re: Ask HN: What is your best advice for a junior software developer?
#409Re: Ask HN: What is your best advice for a junior software developer?
#410Read at least HackerNews and possibly some other tech news site regularly. And then make sure to not get too caught up in the hype for new stuff. As someone working in technology, you are going to be learning new stuff continually (or your usefulness is going to diminish over time). By keeping up to date with tech news, you get a lot of context for what people are using, what's coming down the pipe etc. You may end u…
> Read at least HackerNews and possibly some other tech news site regularly. And then make sure to not get too caught up in the hype for new stuff. Interesting because I advise the exact opposite: do not waste time reading HN, just find one thing that is interesting and master it. Then repeat. As much as I like HN there is a lot of noise here. Novice mind can easily fall into a trap looking for signal here.
Mastering something is expensive, one should have multiple good justifications for doing so.
Deep familiarity is what people usually need, beyond exposure, but below mastery/trial by fire.