Ask HN: Which programming language are the easiest to debug?
I'm curious... what, in your opinion, are the easiest programming language to debug? When you start using a language, the importance of straightforward debugging is huge (in my opinion), but it's a topic that I haven't seen much discussion on.
This question has two sides; 1. Does the language itself promote code that is easy to reason about? 2. Does the language have great debugging tool(s)?
Feel free to share any insights you have about this topic. Real world experience with a language is preferred, but if you've heard good things about debugging in a language you've not used before, please share this too.
Of course this is a subjective topic, so there's no point in pointing out when someone is "wrong". Please bear this in mind.
Thank you.
8 comments
[ 3.1 ms ] story [ 38.1 ms ] threadRequest folks to answer that as well.
Let's take Clojure for example. That's a high level language by anyone's standards, and the code can be made easy to reason about. However, due to being built on top of the JVM means that when dealing with bugs a knowledge of the JVM (and Java if you're using Java libraries) is beneficial. Now that the high level view doesn't tell you the full picture, you're making the search for the bug quite a bit more involved, as not only do you need to understand the bug at the level which its occurring, you need to fix it at a level abstracted away from the one where the bug can be seen.
But by and large, yes, high level languages tend to be easier to debug due to smaller code bases.
Essentially that mimics the whole software development philosophy too: Higher level languages for higher level programs.