News for hackers. Stuff that matters.
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.