Hacker News new | ask | show | jobs
by aengvs 4690 days ago
I think you're conflating "knowing" a language with knowing the syntax of a language.

It was an easy transition into C++ syntax from my usual C#/Java programming, but the transition into thinking like a C++ programmer was not a simple or easy one. Weeks (months?) later, I am still learning how to be a "good" C++ programmer.

I remember "learning" PHP when I was younger and could probably program quite a few things with it still but I am definitely not a PHP programmer. I have no idea what is considered good or bad practice in PHP land. I could solve a bunch of Project Euler problems in PHP but I could not write a secure PHP application for actual use.

The same goes for most languages I can think of. I've fiddled around with it, written a few small programs, gotten a feel for the standard library, but unless I use that language on a decent sized project I have nothing but a superficial understanding of it.

If you already know how to program, "learning" a new language is trivial, you can do it in a few days, sometimes even a few hours. Learning to write "good" code in that language is not something that is easy to pick up or something that is transfers between languages, even closely related languages like C and C++ or C# and Java.

1 comments

It's easy transiting from C++ to Java/C#, the the reverse transition is not as easy. I would say that the "mental toolbox" of a C++ programmer includes a lot of things that also belong in a Java programmer's "toolbox" (i.e. classes, inheritance, virtual functions), which helps someone who knows C++ pick up Java relatively easily. But there are important aspects of C++ that are NOT in the Java toolbox, i.e. manual memory management, pointers, templates (which are way different from generics in java, by the way), these make the reverse transition harder.