logoalt Hacker News

pjmlp • today at 4:08 PM • 2 replies • view on HN

I know C++ since 1993, naturally don't know everything about the language.

I also don't know everything about Java, .NET, Python, JavaScript, SQL, HTML, CSS, and yet work gets done.

To use other languages as example, I bet most folks would fail a pub quiz based on the latest version of those languages, now with about 20 to 40 years history as well.


Replies

LeFantome • today at 4:29 PM

Very true of course, but there is a difference.

For what HTML and CSS get used for, the consequences of not knowing everything are fairly low. If it does what you want, it does what you want. Things could maybe be better but they are probably also fine.

SQL is mostly the same though perhaps the performance implications of not knowing it well are higher.

For .NET, Java, and Python things are not much different. If they do what you want, there is probably not much risk that they are doing things you don’t.

JavaScript and, even more dramatically, C++ are quite different. They may be doing what you do not want, or it may be easy for others to make your code do things you do not want. Not understanding the nuance or idiosyncrasies in those languages can do a lot of damage.

Complexity has another angle. If I am working with other people’s Python code, the chance that I will not understand it is low. If I do come across a new feature in .NET or Java, I will spot it right away and will probably be able to research it, learn it, and move on very quickly. Same with HTML and CSS. .NET and CSS are great examples of languages with quite a bit of complexity but where the burden of that complexity is reasonable when maintaining code.

But again, JavaScript and C++ are not that way. C++ code using features I am not familiar with can be a massive burden to unpack and understand. I may not even realize at first that something I do not understand is in play. And, as above, I may not actually understand it as well as I think I do. And that lack of understanding may have surprising consequences.

To your point, A LOT of work still gets done. But perhaps less re-work (so more work) and less risk is possible.

➕ show 1 reply
kstrauser • today at 4:15 PM

That’s true on the face of it, but not knowing all of C++ vs Python is like not knowing all of Russian vs Toki Pona. Yes, it’s possible to study both languages and still miss portions. Getting to 80% fluency on one is vastly harder and more complicated than with the other.

➕ show 1 reply