News for hackers. Stuff that matters.
Re:Ask HN: What is your best advice for a junior software de... by eitland on Wednesday October 03, 2018 @12:19PM (#18131784)
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 de... by kickopotomus on Wednesday October 03, 2018 @01:16PM (#18132426)
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 de... by lmkg on Wednesday October 03, 2018 @02:05PM (#18132933)
Clojure's stack traces are an issue with Clojure specifically, and how it's hosted on top of the JVM. A lot of the stack trace you get is actually implementation details of the Java objects making up the Clojure runtime. In effect, the program that you get stack traces of is the Clojure interpreter rather than your Clojure program which is running inside that interpreter.
Re:Ask HN: What is your best advice for a junior software de... by vram22 on Wednesday October 03, 2018 @04:32PM (#18134574)
Why do they do this, though? Shouldn't they have realized from the start that such messages are not helpful, and should have given messages related to your Clojure program? (Or is there some difficult technical issue related to achieving this?)

Asking because reading about this issue in the past is one thing that has kept me from trying out Clojure.

Re:Ask HN: What is your best advice for a junior software de... by konamicode on Wednesday October 03, 2018 @04:21PM (#18134468)
I've heard similar things about Scala, though I haven't had a chance to confirm this for myself yet. Not 100% sure if this supports your hypothesis or not given that Scala is multiparadigm?
Re:Ask HN: What is your best advice for a junior software de... by projectileboy on Wednesday October 03, 2018 @03:54PM (#18134192)
Fortunately, I think 1.10 is going a long way towards fixing this.
Re:Ask HN: What is your best advice for a junior software de... by avhon1 on Wednesday October 03, 2018 @04:06PM (#18134327)
My experience in Racket has been the opposite. Especially with the aid of DrRacket's stepping debugger, reading stack traces and finding bugs is rather painless. (Figuring out the best way to fix bugs, however, is no easier than in any other language.)
Re:Ask HN: What is your best advice for a junior software de... by quaunaut on Wednesday October 03, 2018 @03:50PM (#18134137)
Functional programming not so much- languages like Elixir or JS used functionally don't have this problem generally.
Re:Ask HN: What is your best advice for a junior software de... by mercer on Sunday October 07, 2018 @09:00AM (#18160345)
Elixir has had difficult to parse error messages until relatively recently, but this has improved immensely (Dialyzer/Dialyxir in particular).
Re:Ask HN: What is your best advice for a junior software de... by quaunaut on Monday October 08, 2018 @01:37PM (#18169483)
In what way? I've been using Elixir since late 2015 and have rarely had issues.
Re:Ask HN: What is your best advice for a junior software de... by dave_sid on Thursday October 04, 2018 @03:53AM (#18137967)
Yeah I agree. The way this thread is going you would think that all errors are easy and all you have to do is what the computer tells you and you’re done. I wish I’d known it was all that simple!
Re:Ask HN: What is your best advice for a junior software de... by TimTheTinker on Wednesday October 03, 2018 @12:40PM (#18132022)
> stack traces that didn't make much sense.

Those can be especially prevalent in systems that utilize a lot of indirection.

Re:Ask HN: What is your best advice for a junior software de... by _mdpn on Wednesday October 03, 2018 @03:49PM (#18134126)
Especially when you end up in C++ template hell.
Re:Ask HN: What is your best advice for a junior software de... by NeoBasilisk on Wednesday October 03, 2018 @06:32PM (#18135371)
That kind of stuff permanently damaged my ability to enjoy using C++.
Re:Ask HN: What is your best advice for a junior software de... by samnardoni on Wednesday October 03, 2018 @05:07PM (#18134827)
Error in boost/bind.hpp:768
Re:Ask HN: What is your best advice for a junior software de... by dba7dba on Wednesday October 03, 2018 @12:41PM (#18132037)
That's exactly what I felt as I was spending time on MSDN/Microsoft support website, reading about weird errors messages on Windows 95/98/NT/XP in 1990s. Some generic desc about the Windows error messages and no resolution.
Re:Ask HN: What is your best advice for a junior software de... by tyrex2017 on Thursday October 04, 2018 @08:46AM (#18139364)
as in tensorflow stack traces