News for hackers. Stuff that matters.
Re:How I became a better programmer (2017) by echelon on Tuesday March 24, 2020 @07:04PM (#22680011)
> If you learn to program in one language, it's easy to learn another, I assume that person doesn't know much about programming.

This is flat out wrong.

If you know Python, it'll be easier to learn Rust than having to learn Rust from zero. Engineering is about problem solving and formulating solutions with algorithms and data structures. If you don't know what those are yet, it'll take much longer to learn.

Learning one of anything makes learning the next one easier. Programming languages, spoken languages, musical instruments, sports cars, martial arts, sports, weapons, drawing, etc. Your brain builds a rich scaffold you can hang new concepts from.

Re:How I became a better programmer (2017) by MaxBarraclough on Wednesday March 25, 2020 @06:37AM (#22683348)
> If you know Python, it'll be easier to learn Rust than having to learn Rust from zero.

> Learning one of anything makes learning the next one easier

Agreed, but I put easy, not easier. I suspect we really agree on all points.

If you know C#, it's easy to learn Java, as most the concepts are shared, and even the syntax is very similar. When someone says If you learn to program in one language, it's easy to learn another, it betrays that they don't understand that some languages are similar, but some are very different and have unavoidable learning curves.

C++ is a good example. Learning C++ is not easy, no matter what your background knowledge of other concepts and languages. It's a huge language, in which nothing is simple. Even the build model is a minefield. Having a solid understanding of imperative programming and OOP (from knowing Java, say) is certainly an important head-start. I wouldn't recommend C++ as someone's first programming language. There's still an enormous amount to learn about C++ specifically, no matter your background knowledge.

Re:How I became a better programmer (2017) by ddek on Wednesday March 25, 2020 @03:43AM (#22682700)
It’s also worth noting that projects are rarely contained within the bounds of a programming language.

If you’re building a web app, what’re language you use will still come down to HTML/css. You’ll also probably be using SQL, which is also unlikely to change.

But there’s the other side to that. If you’re graphics programming, OpenGL provides the same features regardless of language. The OS APIs are broadly the same - the steps to set up a TCP listener don’t change with the language.

The APIs for all these may be subtlety different between languages, but not significantly. It’s a case of translation rather than relearning, and although I can’t speak for anyone else I find that translation quite painless.

Re:How I became a better programmer (2017) by fiddlerwoaroof on Wednesday March 25, 2020 @02:08AM (#22682345)
Learning Python before Haskell also made learning Haskell significantly harder for me, because I kept trying to write Python in Haskell
Re:How I became a better programmer (2017) by bcrosby95 on Tuesday March 24, 2020 @07:37PM (#22680236)
Sure, but it will still be a while before you aren't just writing Python in Rust.
Re:How I became a better programmer (2017) by jbeam on Tuesday March 24, 2020 @07:59PM (#22680413)
It’s still easier than if you had never previously written an if statement. If there weren’t a lot of differences between languages then we wouldn’t have so many languages, but that doesn’t mean that there are not a lot of concepts that are used widely across many languages.
Re:How I became a better programmer (2017) by jghn on Tuesday March 24, 2020 @07:41PM (#22680263)
However the more languages you know and the more they're spread across different paradigms the shallower the learning curve will be for any language one wants to pick up.
Re:How I became a better programmer (2017) by apotheon on Wednesday March 25, 2020 @12:13PM (#22685963)
Be fair to the original comment, which referenced people saying something about learning a language, and it making learning any others easy, not about learning many languages, and it making learning any others easier.
Re:How I became a better programmer (2017) by scabarott on Tuesday March 24, 2020 @09:21PM (#22681043)
Writing Python in Rust unlike say writing C++ in Rust, might actually be a desirable thing. Put it this way, It will be a while before you are writing Rust like Python.