Hacker News new | ask | show | jobs
by eerimoq 2142 days ago
Of course the language can help the programmer to write better code. High level constructs and easily available libraries that are well tested and widely used helps a lot. However, the biggest problem is not the language, it's that the programmer simply writes faulty code.
1 comments

So you have two main solutions for this problem : have all programmers to never ever write faulty code, or design and use programming languages that are safer and less error prone.

One is impossible, while the other is already applied.

In my experience most bugs are due to misunderstanding requirements and simply writing faulty logic. Just a few bugs are related to the language itself.
In highr-level languages you can make a lot of faulty logic inexpressible in your code, which eliminates a ton of bugs.
That's pretty much what I wrote in the first post.