27 ms·
Why is it difficult for developers to learn another programming language? (2020)
- thrower123 5y agoLanguages are easy. Fuck the build tooling though; that's where all of the suck comes in these days. The way that every programming language has decided it needs to reimplement make, badly, several different times, is one of the worst things about programming.
- JrisMoore 5y agoI think it depends on the difficulty of the new language to learn. Right tutorials for you, joining programming communities and find learning partners, using helpful programming tools will solve many issues and encourage your interests to overcome all learning obstacles.
- jleyank 5y agoI would think that the specifics of the new language would (greatly) influence the difficulty. If the languages (known vs. new) are similar, it's typographical more than anything else. How to make a code block, end statements, indicate arrays and pointers, etc. There's a vocabulary to pick up, but it should be like learning a new similar romance language when you're fluent in another. However, if the language paradigm is different, such as vector vs. scalar or other significant differences then developers can end up wrestling the language rather than working with in. I would suspect, as it was in my case, that the more experience one has, the worse this conflict will be. I had a way of approaching and implementing code that was just not what the language wanted to see. It was rather frustrating falling into the write/tune rather than write-then-tune process. My only "solution" was to first write things the way I had internalized and then revise them into the appropriate form(s) for the new language. Once this was done, and I would say it was a 3-6 month process, then the "normal" learning process started. Syntax, grammar and vocabulary is an ongoing process but it's easier as language familiarity grew.
- cc101 5y agoI've been programming for 54 years. Languages come and go in a career. For me, each new language was an enthralling experience, an adventure. Mostly I think this was because each new language came with some valuable new insight in how to do my work. I don't know if that is true any more. I get the impression that there are too many new languages and paradigms. I suspect this is a confusing burden that detracts from the enjoyment. There doesn't seem to be a clear evolutionary path anymore. I imagine this weighs on a programmer's mind.
- beardyw 5y ago54 years. I can just match that if I count the very first time I wrote a line of code! I agree with all you say and my experience was the same. I think the current problem you describe is a disconnect between the means and the end. We lived through times when the end result was all anyone cared about. Now people have jobs where they don't really know what the end result is.
- FpUser 5y ago41-42 years here. My experience was right from the beginning in designing new products so for me programming languages were just tools. After a while it was not a problem for me to start a project in completely new language and get the shit done without much fuzz. Most of the general-purpose languages are more or less the same and so are the libraries. Some are great. Some are not that much. What I see now is that programmers are often concerned with not what they deliver but how – I’ll do anything as long as it is in A/B/C. Basically means substitute goals. I find it not very healthy. There are some exotic languages of course which could make my brain melt but since I do not need any for my projects/products I would not care.
- BurningFrog 5y agoYeah, your second language can be a real struggle. But after the 5th there aren't many big mysteries. Languages have also gotten a lot better over the decades.
- deleted 5y ago[deleted]
- baby 5y agoAnecdotal, but I've been learning a lot of different languages over the years, the language itself is probably less than half what makes it difficult to learn. The real difficulty comes when there's no good resource to learn the language, a poorly documented ecosystem, and a lack of good libraries (and worse, a bad standard library). For example, languages like Rust are complex and hard to learn, yet many people get into Rust because it's easy to setup (rustup), easy to run or test (cargo, vscode), easy to compose (crates, stdlib), and easy to learn (so many online resources). On the other hand I've been learning OCaml and suffering. I would advise anyone who wants to have real world impact in a low-level language to give a shot to OCaml, because there are just soooo many ways to influence the language. If you write a library it will be used, there's so many opportunities for creating learning resources or improving the tooling, it's uncharted territory for the most part and it's probably the functional language that has the most chance of having a real-world story.
- irrational 5y ago> yet many people get into Rust because it's easy to setup (rustup), easy to run or test (cargo, vscode), easy to compose (crates, stdlib), and easy to learn (so many online resources). All those things apply to Python too (not that I've learned Python ;-) There must be more than just these reasons why people learn Rust instead of Python.
- Gigachad 5y agoMore people would be getting in to Python every day than Rust. Python is what the universities teach now so you have thousands trying python for the first time probably daily.
- baby 5y agoAre there more people learning Rust than Python? I still felt like Python was sort of an ubiquitous language, a shared scripting language at the very least. I'd say Python lacks a good out-of-the-box experience compared to Rust. You can't really use Python like Rust without figuring out how to install a project's dependencies, how to manage different versions of Python (which is even more of a nightmare if Python comes pre-installed with your OS), and Python's documentation kind-of-sucks in comparison to languages like Golang and Rust I find.
- wanderer_ 5y agoJust the other day I was working out a Java numerical-operation logic error and decided to type it out in a simple online Python shell. Unfortunately, I had forgotten that the ints and doubles I was working with in Java didn't exist the same way in python. And then I spent a few minutes trying to remember how to import the math module... Suffice it to say that I have been away from Python too long, now it's like learning a new language all over again.
- tester756 5y ago>Why is it difficult for developers to learn another programming language? I started with C++/PHP/JS and then I started doing C# + meanwhile some Lua I cannot use anything that has not as good IDE as at least Visual Studio I struggle to overcome the lack of reliable IDE
- dmd 5y agoI started with C64 Basic and then GW-Basic, so /any/ IDE is better than editing via line numbers.
- wanderer_ 5y agoLOL, did anyone else ever make programs in TI BASIC on a TI calculator?
- brimble 5y agoI did. So I could slyly cheat on high school chemistry & physics exams :-) I wrote little programs to work problems for me and print all the "show your work" bits. I did it all on the device itself, since I didn't have the right cable or whatever to copy things onto it.
- wanderer_ 5y agoAnd why not? It's not even cheating in my book - if I can understand the process well enough to write a program for it, then I shouldn't have to do tedious and repetitive work. One time, the teacher was giving out a piece of candy for every Pythagorean triple that we could name. A little brute-force program written in a couple of minutes had me with a small handful, and eventually a ban from participating :)
- bfung 5y agoI empathize with this, as this was true the first several years in my career. Self-doubt then crept in: if I rely on the IDE as a crutch, do I really know the programming language and tools that well? Then I put myself through the grinder and learned how to program without anything but vim/notepad and command line. Yes, it’s hard work, but now, I can use ANY editor to learn any programming language ecosystem. Try it, you’ll understand a lot more than what’s inside the IDE box.
- herdcall 5y agoI'm not sure if it is "difficult," I've always found it pretty straightforward. Sure, there will be differences, like types in Python vs. say Go, but we learn to switch context pretty comfortably over time (like we switch from English to say Spanish and back). I think the bigger challenge is to write idiomatically: e.g., if you're coming from Java, your Python code may not be "Pythonic" and a class-for-everything mindset won't quite work in Go.
- brimble 5y agoThe language is rarely a hurdle. The (almost always bad and broken) tools, the (often misleading, as far as best-practices go, or muddled with old versions and outdated advice) documentation, and learning the culture and ecosystem ("Oh no, no-one uses that built in function since it's bad for reasons X and Y, use this 3rd party FOSS library entirely supported by one guy living in a cabin in Wyoming instead") are what make it difficult. The language itself is often no trouble at all. It's all the stuff around it that ends up eating shitloads of time.
- grumpyprole 5y agoYes when people talk about "languages" they really mean ecosystem.
- ecf 5y agoAn example of this for me is Kotlin and the JVM. Kotlin is great! I enjoy it a lot and am having a fun time ramping up for my new role. But the entire Java ecosystem is a dumpster fire, and I abhor Gradle/Maven/Intellij. It would take me an entire weekend to try to configure Sublime Text or another lightweight plain-text editor to work with Gradle to even build the project, let alone any language server features like code suggestions and debugging.
- prepend 5y agoYou’re the first person I’ve ever heard to hate IntelliJ. I really like it as an editor and would use it if it was free (instead I use VSCode). What do you dislike about IntelliJ?
- clearcoat 5y agoIntelliJ Community Edition is free. I don't use the paid version so I'm not sure what I'm missing.
- eddieh 5y agoI hate IntelliJ too. I don’t like any IDE for that matter. Emacs is muscle memory and nothing can emulate how it works properly. Emacs is so much more than it’s keybinding, yet that’s the only thing IDE/text editors attempt to emulate—and they never even get that right.
- xiphias2 5y agoI just learned a new programming language yesterday in an hour: Svelte. It's just a tiny superset of JS/HTML/CSS, but I learned it and have already produced working web application faster than with Vue / React, and it's a perfect hobby language for me to play with, and a perfect example of why new languages can still give something extra in return. I just link to the tutorial, because it's so well done: https://svelte.dev/tutorial/basics https://svelte.dev/tutorial/basics
- stolenmerch 5y agoInteresting. I don't think I've ever considered Svelte a "language" in the sense it's being used in this article. More like a compiler or maybe framework written in Typescript, which is a superset of JavaScript. I only say this because I'm not sure I'd experience the same cross-language interference with syntax and semantics described here. Not an expert, but isn't it just compiled HTML/CSS/JS with some custom components and templates?
- xiphias2 5y agoSure, of course there's much less change, but it's a very deliberate choice of the developer. It was much harder to keep the changes minimal than to write a new much more complex language (like Elm). Coffeescript was a similar great improvement JS that felt so natural that ES6 took a lot of the great parts of it. C++ is treated as a separate language from C, but it just started as C with objects.
- thepasswordis 5y agoI think a lot of programmers these days just get too sucked into the tooling for their specific language. This is of course especially bad in JavaScript land. I’ve met many JavaScript programmers who are just good at gluing together various JavaScript libraries, but aren’t really proficient generally. For example: you might be really good with redux, which is its own confusing stringy disaster, but not really understand the fundamentals that make it function. It makes me happy to find out that colleges mostly teach python now, although I don’t agree with the MO now being that everything lives in a venv. In my opinion, open up IDLE and get to work. Virtual environments just add another level of confusion! GO, and C, and also JavaScript are all great too of course and I use most them in a given week. I think if you focus on programming, and look at tooling as just extra convenience, then you won’t have problems learning new languages. (Except objective C, which objectively sucks.)
- spacedcowboy 5y ago> Except objective C, which objectively sucks Objective-C is my preferred language. - It has the complexity/expressiveness balance correct, it's not the 'point a warhead at your head' of C++, neither is it the primitive belt-and-braces approach of C. - It has a relaxed memory-allocation model with ARC that I very rarely have to worry about, and when I do, it's fairly obvious what to do. Generally just call [object-class new] and forget about it. - It's binary compatible with C and C++, so if I really need the speed of either of those two, I just drop into them instead for the small amount of code I need, or use a library. - It's named-parameters to methods make it easy to understand what a method in a class will do - though it's sometimes carried to extremes I agree. - It has a really nice standard library that comes with it, and the framework/bundle idea makes packaging things up really easy - In the debugger, I can always call a long stream of nested method-calls and get back the expected result, because message-calls are not function-calls. - No dependencies are needed for any produced code (well, you need the system frameworks, but that's like saying libc.so is a dependency). You don't have to worry about whether you have PHP v5,6,7,... or Python 2.x vs 3.x. Just run the app. All that for some [...] syntax. Except that a lot of that isn't even necessary any more with the '.' property-like syntax. No, it's not memory-safe - and that would be nice, but you'd give up the ability to just drop into C/C++, which is too high a cost IMHO. It's just a shame ~Apple~ Lattner decided he wanted to do his own language instead of continuing to improve ObjC.
- vgel 5y agoI think it's easy for an expert to pick up the shallow aspects of a programming language. For example, I've been using Python for many years, but just the other day started designing a card game using Squib (https://squib.readthedocs.io/en/v0.18.0/index.html https://squib.readthedocs.io/en/v0.18.0/index.html), which uses Ruby. I've written some passable Ruby, but I feel it's very Pythonic Ruby (maybe with some Rust mixed in). I'll need to do some dives reading through the stdlib docs to discover the little tricks and cool methods that make using a language really fun and different. I've also heard good things about why's guide, which I haven't read. (Also haven't touched metaprogramming yet, which I hear is very interesting in Ruby).
- deleted 5y ago[deleted]
- xwowsersx 5y agoI find that outside of a handful of more difficult languages, it's rarely the language itself that makes becoming proficient in a new one difficult. More often, it's simply not having any reason or enough motivation to continue using the new language consistently. If you're a language enthusiast and just like to pick up new languages, it can sometimes be difficult to keep up enough consistency to really gain proficiency. One way to deal with this is to set a goal to complete a project - can be something small like a little script or command line tool, but if learning the languages depends on you continuing to be maximally motivated without any concrete goals in mind, it's gonna be hard to get past the initial learning curve.
- tus666 5y agoThe only language I found hard to learn was Erlang. And I have learned other functional languages before. It has a runtime environment that is conceptually too different from most other languages.
- spaetzleesser 5y agoI think there are different levels of "learning" or "knowing" a language. I can write some code in almost any language within a few hours but it will basically be C/C++/C# code with a different syntax. This level works for a lot of purposes. But really understanding a language and its ecosystem can take many years (with C++ several lifetimes. I wonder if anybody really understands C++). I used to be really excited about learning new languages but nowadays I try to keep it small, focus on a few and get really good at them. Constantly switching languages feels shallow.
- epolanski 5y agoI have attempted learning and writing multiple languages in my career. I don't know if I have been successful, I can read and write and even criticize code in those languages but I have noticed a huge inertia. I just don't want to write stuff that it is not JS/TS. I am so proficient in it, that any perceived advantage of other languages I have used (haskell's safety and purity, lisp's repl, C's performance) has a cost too high for me to make it a pleasant experience. Also, having invested so much energy to master TS and its tools puts me off from embracing the same journey in other languages. I noticed I have the same issue with online games. League? Counter Strike? I'm in. But my will to go through "noob phase" in any other game is an experience I have no interest for.
- exdsq 5y agoThat’s a good thing in it’s own way. Being a specialist can be lucrative and offer job security. I wish I could do that but I chase the shiny thing too much :)
- eddieh 5y agoIs this true? I’ve always found it incredibly easy to learn new programming languages. I also assumed it was easy for everyone else.
- mbrodersen 5y agoSame for me. Until I learned Haskell. If you don’t know Haskell I highly recommend learning it. Even if you choose never to use it in production. It will make you a better programmer in any language and will make it super easy to learn Idris/Agda/LEAN/Coq etc.
- xedrac 5y ago> Learning a language is difficult when there is little to no mapping with previous languages When I was first exposed to Scheme and Haskell, I wondered how anyone could be productive in such useless languages. Ironically, they ended up having a huge impact on my programming style and approach to software design. But I'll be the first to admit that learning Haskell was rather difficult. Or perhaps more accurately, learning the functional paradigm was rather difficult as someone who grew up using OO almost exclusively.
- softfalcon 5y agoI am quite fluent in 5 programming languages. By this, I mean I've used them for years in a professional setting to ship real products. No dabbling, actual, deliberate time spent maintaining code in these languages over more than a decade of coding. You get attached to the ecosystem around your code, not the code itself. You don't actually like JS for JS sake. You like it cause of Node.js, React, Vue, Electron, etc. You don't actually like C#. You like it cause of .NET, Entity Framework, Unity3D, etc. You don't actually like C++. You like GNU, Qt, Boost, Unreal Engine, the WinAPI, ObjectiveC, Cocoa, etc. These are just some examples. If you're finding you dislike something, stop whining, stop comparing, and emulate. Do EVERYTHING the exact same way all your colleagues who like it do. You'll hate it. Wait 6 months, your brain will "get it" eventually and all the sudden now you like 2 things. Ignore the distaste, the distaste is usually just your brain trying to force you back into your comfort zone. Comfort zones are too cozy, being always cozy will make you a bad programmer.
- RangerScience 5y ago> who like it do Snark/not-snark: what about those languages where the fans still don't like the tooking? (looking at you, pip)
- anothernewdude 5y agoWhat on earth is wrong with pip? I've used it in some of the most constrained environments possible, and it has been fine except for one small window where trusted-host wasn't possible.
- RangerScience 5y agoI think I remember there being a lot of hubbub over the pip/venv standard setup, which is (part of?) what prompted conda. I also seem to remember more than a few attempts to make a new Python dependency manager over the last 5-10 years.
- adgjlsfhk1 5y agohave you ever tried installing tensorflow with gpu support? to be more explicit, pip does a really bad job with versioning binary dependencies.
- vincentmarle 5y agoEvery year I try to pick up a new technology/language to learn (this year it’s Flutter/Dart) and create a project to get the hang of it. The language itself is never the hard part.
- AnimalMuppet 5y ago> A technical recruiter, having discovered that that the ways of Unix hackers were strange to him, sought an audience with Master Foo to learn more about the Way. Master Foo met the recruiter in the HR offices of a large firm. > The recruiter said, “I have observed that Unix hackers scowl or become annoyed when I ask them how many years of experience they have in a new programming language. Why is this so?” > Master Foo stood, and began to pace across the office floor. The recruiter was puzzled, and asked “What are you doing?” > “I am learning to walk,” replied Master Foo. > “I saw you walk through that door” the recruiter exclaimed, “and you are not stumbling over your own feet. Obviously you already know how to walk.” > “Yes, but this floor is new to me.” replied Master Foo. > Upon hearing this, the recruiter was enlightened. (From http://www.catb.org/~esr/writings/unix-koans/recruiter.html http://www.catb.org/~esr/writings/unix-koans/recruiter.html) That is, once you know how to program, a new language is like a new floor. Yes, it's different, but you know how to walk. But of course, this koan overstates things. You can go from C++ to C# or golang or maybe Rust that way, but you probably can't go from C++ to Haskell that way.
- mbrodersen 5y agoCorrect. That’s why learning Haskell is super useful. Even if you decide never to use it for production work. It will expand and enhance your understanding of what programming is.
- astrange 5y agoHaskell is an example of actually different semantics, but in the end what non-strictness mainly gets you is space leaks and the mistaken concept that Haskell programs are bug-free because it has ADTs[1]. I think I'd recommend learning Mercury. Unification is cooler than even lazy evaluation. [1] recent example: https://www.costarastrology.com/why-haskell/ https://www.costarastrology.com/why-haskell/
- mbrodersen 5y agoEh? I found it quite easy to learn new programming languages. The only exception being Haskell.
- hoosieree 5y ago> Learning a language is difficult when there is little to no mapping with previous languages. Then they go on to describe a developer who experienced shock when transitioning between C++ and TypeScript. How is this a shock? These are just 2 different dialects of Algol. Programmers should expand their window of tolerance more by learning languages which are _actually_ different from each other. Such as: assembly, forth, lisp, apl, sql, smalltalk A few commenters here mentioned picking up new languages was easy, "except for Haskell". Well, that's probably because all the other languages you picked up were Algol dialects. Learning another language in the same paradigm is like a native English speaker learning a new accent.
- captaincaveman 5y agoI'd argue Prolog is harder, maybe not to grok the basic premise, but to actually write some software with!
- hoosieree 5y agoTotally agree. I should have included it in my list!
- kjeetgill 5y ago> A good programmer uses the right language for the task. Agreed! > A good language is one that doesn't need a community and a beast of an editor just to code something that compiles and runs. Hmm. [citation needed]. I'd argue the exact opposite. A robust ecosystem and community around a language are a substantial part of its value proposition. Naturally, the language's PL details are what seed and fuel its ecosystem, so I'm not claiming semantics, syntax, and zeitgeist are irrelevant. See every "worse is better language": C, Python, Java, Javascript, English against whatever ML, Haskell, Esperanto, Lojban, etc.
- laurencerowe 5y agoWith a few exceptions large numbers of languages are more similar than different. When working on something in a new or unfamiliar language I usually find my difficulty is less the language itself than the (much larger) ecosystem around it. Usually it's the build and dependency management systems which end up being the biggest blocker. For newer languages lack of a mature third party library ecosystem. Rust is an interesting example here. The borrow checker was a completely new concept to me and is definitely a challenge. But the build system is far easier to work with than the many alternatives for C/C++ so I end up having an easier time writing Rust than C or C++ despite my previous college experience with those.
- pjmlp 5y agoC and C++ build systems are only a challenge for IDE haters. File new project, add files into project, add missing dependencies via NuGET/vcpkg/conan, done.
- jillesvangurp 5y agoLearning the language is usually the easy part. It's learning the libraries, tools, and idioms that takes a bit more time. It's not that hard but a lot of people resist changes. Also, it takes time to get up to speed which means you are temporarily a bit unproductive. It does not combine well with a job where you are supposed to deliver stuff. I tend to have a few languages that I favor and a few more where I can wing it if needed. Very helpful when consulting. I would never use ruby, python, javascript, php, scala, etc. on my own projects but I have consulted on projects using each of those and managed to add some value.
- Fire-Dragon-DoL 5y agoUsed to take me months, takes me days now. What's driving the assumption that it's hard?
- stingraycharles 5y agoI’d argue that learning the syntax is not the same as learning the language, which is utterly impossible to do in a few days. Right now I’m dabbling with Go, and trying to figure out whether or not I should use a Context to propagate my log instance. These are design choices, trade-offs, that you can only fully make once you’re properly familiar with the language’s idiomatic approach to solving problems. Otherwise you’re just shipping poor quality code.
- xxs 5y ago>which is utterly impossible to do in a few days Totally disagree. The main principles are quite the same - most of the stuff is either a datastructure (that you already know how it works/performs/complexity) or it translates to an OS call. Now, there are frameworks with their own caveats. In the end all languages must end up in machine code one way or another. There are not many ways to make the latter work in an efficient manner, so you get a pretty decent expectation what it should be happening. On top of that most of the frameworks and languages do have source code that can be checked too. Logging in most languages is per class/namespace/package and tends to be a static one (static in Java/C#/C version).
- stingraycharles 5y agoYou’re focusing on the low level when you’re saying that everything ends up in the same system call. I’m talking about the way you solve problems, picking the right abstractions, and using the correct idioms. If you’re claiming someone is perfectly able to learn all this in a few days of time, then what makes the difference between that person and someone with a few months of experience? What about a year or two?
- 5y ago
- davidkuennen 5y agoLearning new programming languages has always been a peace of cake to me. For me programming is more about understanding how programs work generally. The language is just how you tell the machine.
- meerita 5y agoAs a former designer, current product manager, I've gave a chance to Ruby and failed, but Javascript was easier for me. The barrier for me is architecture more than syntax. That's where i fail mostly.
- xxs 5y agoNo idea where the idea learning a new programming language is difficult has come from. The article starts with stackoverflow.com case study which alone is good enough to disregard it. I have been programming since quite young age, used more than 15+ different languages (Basic, Aseembly, Pacal, Delphi, DOS .bat, Javascript, Word Basic, Java, C#, C, shell script, EL, xslt, SQL, etc., and I can 'read' quite a few more). This is the 1st time I have heard learning a new language is 'hard'. Most of my team uses at least 3 languages and most of folks have learned at least 2 on the job. That being said - one of the languages would be primary but learning few to a level to be able to do your job in a decent fashion is just 'normal'. The only hard thing I'd consider is switching to a pure functional language (for whatever reason) - the paradigm is very different. Other than that, most languages are pretty much the same - for quite a few I tend to have an idea what they machine code should compile to as well. Learning APIs/libraries is another matter but it's not difficult, either. Besides, the determined Real Programmer can write Fortran programs in any language.
- zaphirplane 5y agoLearning a Language is in addition to knowing the language features, the bigger ramp is the std library and the ecosystem of libraries/frameworks
- tialaramex 5y agoBut for languages that aren't written by lunatics even the standard library will have considerable consistency in how it does things, and a modern development environment can smooth over the difference, if I can't remember whether this language's vector container calls it "push()" or "push_back()" that's probably offered as an auto-completion when I hesitate. In a language like C# you already know the language's designers love Title-Case and didn't want you to know anything about data structures so no surprise it's just named Add() This is less true for something like PHP that was just cobbled together from whatever was to hand with no aesthetic or design principle but that's a rare case, I actually can't think of any other widely used language that exhibits this behaviour. I would guess I was maybe 80-90% productive in C# after only a few months with it, because of existing familiarity with a bunch of semi-colon languages including Java. Certainly enough to keep up with people who'd used it for years but for whom programming isn't a passion.
- snorremd 5y agoI think people get stuck in their language of choice's patterns and idioms and learn to think in those patterns. Transitioning to a programming language in a different paradigm all together, like going from C# to Lisp, or something similar hurts because they try to understand that new language in terms of their knowledge of the existing language. If all you know is OOP, dependency injection and inversion of control patters, interfaces, and the like then functional languages oriented around functions as first class constructs, often immutable data processing, and a focus on pure functions is not going to make sense to you. It takes time to "unlearn" previous idioms and grok the culture and idioms of a new language. I also think a lot of people are closed off to new ways of doing things. If you switch to a different language and framework and then immediately search for a library that allows you to do things the same way as in your old language then you're not really embracing that new language and should just stick to your old language.
- cersa8 5y agoAs has been said, the tooling, libraries and documentation makes a big part of a language being easy to learn. I run a small SaaS like service and consolidated all code into a single language: Typescript. I believe this has given me a lot of headroom to focus on the business side. Is Node.js the best tool for the job? Perhaps not, but having a single language across front and backend certainly makes up for it.
- ArcMex 5y agoI find learning and applying difficult. I usually prefer to learn all the fundamentals I need to solve my problem and then apply. So learning another language is relatively easy.
- rawoke083600 5y agoIs it though ? Not trying to sound smart, but what I found in 20+ years of programming is: Learning new paradigms are harder than learning a new language. Example (functional vs OOP) YouTube is a great resource to give you "overview". Notice I didn't say do a youtube course (although if that is your jam go for it). I found the YouTube "programming tutorials" is a great way to just start filling in the "outer leaves of the knowledge tree" for a particular language/paradigm/framework. I've also over the years, "conditioned myself", by telling myself learning a new lang/paradigm is not "hard" it's just "pain in the arse / time-consuming", but not "hard". YMMV
- amelius 5y agoLearning the ecosystem is the hard part.
- Trucont 5y agoI agree. I would guess it's pretty difficult to learn all of the idioms, tooling, community, etc of the first language for most programmers as well? It can be easy to forget your struggles with something when, years later, you've become comfortable with it.
- tonyedgecombe 5y agoIt's not really hard though, just time consuming. And somewhat frustrating if you think it will be obsolete in a couple of years.
- saiya-jin 5y agoExactly, its not about languages as much, but how whole ecosystem works. Do you have some sort of VM? What libraries allow you to do? How does build works? What to expect from memory management? What kind of servers / clusters do you deploy to? And so on. Learning language to OK level isn't usually that hard. The rest of which makes an effective developer able to deliver useful products is another story.
- DonHopkins 5y agoI've certainly encountered a sub-culture of mono-linguistic programmers not WANTING to learn another programming language, because they think they already know the One True Programming Language and want to stick with it forever, and for everyone else to use it too. And I think that correlates with learning a terrible first language that's unnecessarily complex and badly designed (like Perl), and assuming all languages are as difficult to learn as their first and only one was, so they stick with their first and only language that traumatized them by requiring such a huge investment of time and energy to learn that they're afraid to learn any others. Back in the 80's and 90's, people who started by dabbling around with shell scripting and then discovered Perl (which proudly touted its similarity to shell scripting as a "feature" instead of a "liability") tended to think that Perl was incredibly powerful just because it had hash tables and regular expressions, which the shell didn't support at the time (and was a major source of frustration). And they ascribed the power to Perl itself, instead of hash tables and regexps, because C doesn't have hash tables and regexps built in, so it's "hard" to do what they do in Perl, and they assumed it was something special about Perl itself, not just its hash tables and regular expressions that are totally independent of the language, which other languages like Python and JavaScript and even C++ finally now have (which all eventually became much more popular than Perl). Finally there are enough popular languages with hash tables and regular expressions and all kinds of other data structures and libraries that Perl doesn't seem like such a unique special magical language any more. But for many programmers decades ago, Perl was a mono-linguistic dead-end black hole that made them afraid of learning any other language for quite a long time, and they'd fervently evangelize Perl as the solution to every problem, without recognizing how badly designed and hard to learn and maintain it was (while celebrating and cultivating its write-only aspect and fetishizing its arcane line-noise syntax and TMTOWTDI-oriented programming in the name of job security), and without bothering to learn any other more powerful, better designed languages like Lisp or Python or even Java or C++ to compare it with. I think that effect of ascribing all that magical power to the surface features of the first language you learn instead of realizing that it's just the abstract data structures and libraries is still common with newbie programmers, but just not as intense and pathological as it was with Perl back in its heyday in the 90's. Now we have cross-language data description languages like (dare I say) XML and JSON, so it doesn't matter so much what language you write stuff in, and they can all interoperate easily, and you can mix and match the languages that support the libraries you need, so professional programmers should be comfortable writing in several languages (and data formats) at once, including non-programming languages like JSON, XML, HTML, CSS, YAML, etc. The mono-linguistic mindset is a huge liability these days.
- nickd2001 5y agoSeems to me most difficulty occurs context switching when languages are similar in many ways yet completely different in others e:g Java, C++, Go, C# . Trying to work in multiples of those in that same job can be hard. Doing one of those, combined with Python for example, is easier as the brain can switch between 2 distinct modes. Although even there, one can start writing in the wrong style by mistake. Doing e:g Smalltalk on the side I don't see as a problem as it looks so different that the brain switches into another "special mode".
- jiggawatts 5y agoSpeaking of learning many languages, something I noticed is that once you know 20+ languages, you can learn to recognise "accents" that programmers have, especially programmers that know only one or two and pick up one additional language. There was one moment where I was standing across the room from a colleague, and just from the syntax highlighting colour scheme combined with the blockiness of the code I could tell they were writing PowerShell with a "VB script accent". Upon closer inspection the script totally looked like someone thinking through the problem "in VB" and then translating that statement by statement to PowerShell. I've seen people try and shoehorn LISP into vanilla Java, which is just hilarious. The most common example where it causes a real issue is people writing SQL with a "procedural style". This kills the database server and makes the DBA cry. Another striking example is this example of JavaScript written with the accent of a mathematician: https://raw.githubusercontent.com/enkimute/ganja.js/627711f9a8a84d131083adc32883073b52c86445/ganja.js https://raw.githubusercontent.com/enkimute/ganja.js/627711f9...
- DonHopkins 5y agoClassic Java teaches you to stutter and repeat yourself again and again.
- jiggawatts 5y agoLots of languages have that problem. Both C++ and Rust makes you repeat the same identifier/literal over and over unnecessarily. The C++ language at least has an excuse: it was designed in an era where separate compilation was critical because of limited memory. Compilers were expected to work with just hundreds of kilobytes of RAM! But Rust has no such excuse, as it was designed in an era where 100% of its user were on 64-bit platforms.
- tialaramex 5y agoWhat examples are you thinking of where Rust makes you "repeat the same identifier/literal over and over unnecessarily" ?
- beltsazar 5y agoIt all depends on how different the new language from the languages you already know. Easy: To learn a language with the same paradigm as a language you know, e.g. JS -> Python (both are procedural and dynamic); Java -> C# (both are procedural and static) Medium: To go from dynamic to static typing, e.g. Python (dynamic) -> Java (static) Hard: A new language that requires learning many new concepts unfamiliar to you before, e.g. Java/C# (with GC) -> Rust (no GC, borrow checker, RAII); Java (eager, OOP) -> Haskell (lazy, functional) Super hard: A new language that hardly has anything in common with languages you know, e.g. SQL (query language) -> Rust (systems programming language); Python (procedural, functional) -> Prolog (logic)
- dsq 5y agoIs it really? I've always felt the opposite, that as time goes by each new language becones easier to learn. I started with C, which was really a challenge. But since then it's been a whole new one every 2-4 years.
- yosef123 5y agoIt isn't necessarily difficult, but one of the aspects that makes it challenging is the lack of resources to learn a new language from the POINT OF VIEW of a programmer. When learning a new language I don't need to go through all the basics again like, if statements, loop types or variables, it just makes learning tedious, and I can't just skip that part, or I might miss out on nuances of the language. Again, tedious, not difficult.
- danbmil99 5y agoHuh? I've always thought otherwise. The one that did burn me was learning JavaScript after python. Uncanny valley: there are idioms that are close but not exactly the same between the two languages. It was easier for me to move from c++ to python then from python to JavaScript.
- 21723 5y agoI don't think it is. Or, it doesn't have to be. Learning new languages isn't that bad. It's learning whole new tech stacks, that often don't add all that much, that is the painful part. This is doubled by the general shallowness of private-sector work (read: bureaucratic nonsense we are forced to do, on the behalf of very rich people who despise us, because we have failed thus far to forcefully remove them) because there is a very low embarrassment threshold. Just not knowing something can lead a boss or (gag) product manager to "flip the switch" on you, and now you're seen as a non-serious player. Every technical change threates to shuffle the perceived "performance" ordering on the team. The bosses aren't going to invest in your learning, or even let you invest your own working time into it--you're expected to throw down extra hours and weekends into picking up the new tech stack. Learning new languages isn't hard. It's fun, actually. Learning a bunch of libraries that were invented three years ago, under adverse political circumstances, is considerably less fun.
- torginus 5y agoI think the languages and their frameworks are kind of inseparable. I'm pretty sure that language designers constantly flip back and forth between implementing a feature in a library and making it part of the language. For example: C's malloc vs C++ new And due to these interactions, languages that look superficially similar can end up feeling very different, like C# and Java seem pretty similar but having programmed in both of them, the subtle differences and their network effects cause the code to look very distinct. Differences can exist within a single language, like for C++, C-with-classes, std heavy C++ and Qt-flavored C++ feel like different languages.
- tialaramex 5y agoC's malloc and C++ new are pretty different. malloc is a typically C very low level allocator feature, actually it's barely even a whole feature, it's just the memory allocation step when you're presumably going to want to put something in this expanse of emptiness. Or maybe being C you will forget to do so and then be astonished it's nonsense. new is a C++ operator that either does the allocation and calls a constructor for one or more objects to fill that newly allocated space or it runs constructors on memory you already got from somewhere else (this use of the same operator is called "placement new" because C++ cannot get enough overloading) It is very strange to assume allocation in your operators, no other examples beyond C++ come to mind, but most of new's work is running constructors, which don't exist in C.
- mettamage 5y agoThis topic raises a few good points. From now on, I'll talk about (programming) language ecosystems instead of programming languages. Learning a new language ecosystem or a new paradigm takes some time. Though, I've also noticed, the more ecosystems you know, the easier it becomes! E.g. learning your second web framework. Routes are now called actions. Whatever you wrote in a route is now called a controller. A controller calls different things that has different layers of abstractions, most have to do with business logic. You can take a guess which language ecosystems I'm talking about. Of course, the experience is subjective and people were also using controllers in my former language ecosystem, but I never truly got to that point.
- nikanj 5y agoLanguages are easy. It's the incredible rube goldberg machinery surrounding compilers, build pipelines and tooling that's hard to learn.
- DonHopkins 5y agoThere's learning another programming language, and then there's learning to program. Teach Yourself Programming in Ten Years, by Peter Norvig. https://norvig.com/21-days.html https://norvig.com/21-days.html
- dathinab 5y agoIt's not. At least not if the developers didn't live in a bubble only caring for and looking at one language for most of their carrier.
- bregma 5y agoLearning another language, or learning to program in another language, is not difficult. Joining a new cargo cult can be difficult. There is spectrum of software developers out there ranging from some know and understand programming through some who know a programming language to some who know an application.
- orionblastar 5y agoI know the computer science theories that make it easy to pick up a new language by reading a book on the new language. I'm currently learning Dart Flutter because it is like C syntax with JavaScript. I know 38 programming languages since 1986. Most of them are obsolite.
- laserbeam 5y ago"we found 276 instances of interference that occurred due to faulty assumptions originating from knowledge about a different language" Saying learning a new programming language is hard because of that is like saying that English is hard to learn specifically because some verbs have exceptions for past tenses. I see no reason why that would be a predictor for how learning English is hard in general. Same can be said for programming languages, I see no reason why how someone deals with peculiarities of a language says anything about that language being hard to learn, in general.
- sinuhe69 5y agoBecause I (like many I guess) learned imperative and OO programming languages first, I found it particularly difficult to learn functional languages, for example F#. Switching between the 2 paradigms is harder than I anticipated. Although I can do that, I always found myself coming up with something suboptimal in the first attempts. Not to mention the differences/similarities between the syntaxes of the different languages. Doing exercises on Exercism, it has surprised me again and again that other had came up with almost totally different solutions! It was never a problem with other imperative languages but functional languages is a liege of it own. It makes me wonder if I should learn it or come back to the imperative world at all because switching seems detrimental to the learning process. Maybe others here on HN can give some tips how one can manage this process better. Thanks
- anta40 5y agoLearning programming languages, as long as it's on the same paradigm is not complicated, e.g moving from Java to C#/Kotlin. But if the paradigm is very different, say from Java to Haskell, OK this is pretty tough.
- horns4lyfe 5y agoIt’s not?
- dkersten 5y agoHuh? It’s not difficult to learn other programming languages. I would consider myself proficient in Clojure, Python, C99, C++17, Java, Javascript/Typescript, Bash, SQL and Solidity. I can get by in Lua and once upon a time I was good at Visual Basic. I’ve also written a bunch of PIC24 assembly and a little bit of Rust. I’ve tinkered with Factor and Forth. The latest language I learned was solidity and I was yo and running in under a day with a few more days learning about the different smart contract techniques and the standards that exist. The language itself was super easy to pick up. I plan on learning Idris when I get the time for side project aiming I can think of one that would suit.