Remix.run Logo
▲ pjmlp 6 hours ago

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.

▲LeFantome 6 hours ago | parent | next [-]

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.

▲pjmlp 5 hours ago | parent [-]

There is this thing called static analysers, that while they are not perfect, are quite good guard rails into what to use in terms of best practices, regardless of the programming language.

Code quality would be much better in general if everyone actually used "clippy".

Which is anyway a moot point in the age of AI generated code.

▲kstrauser 6 hours ago | parent | prev [-]

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.

▲pjmlp 6 hours ago | parent [-]

I bet most folks using Python have no clue about how close it is to C++ and Common Lisp in terms of capabilities, across its language, standard library, runtime capabilites and C FFI.

They assume the myth that Python is a programming language for beginners and never do a deep dive into what is available.

Worse, due to lack of compatibility across releases, it is rather easy to have code break and be blissful unaware of what a specific point release has changed.

When I learnt Python, the current version was 1.6 and Zope was everywhere, I guess I know a thing or two about its evolution and related complexity.