Live data from Hacker News

Ask HN: Ruby, Python, or JavaScript for teenager?

news.ycombinator.com

31–40 of 50 posts

Re: Ask HN: Ruby, Python, or JavaScript for teenager?

#31
post #28

Earlier quoted context omitted.

> but then someone asks: Python 2 or Python 3? And then you say: It is 2017. Python 3.

Sure, but a lot of useful machine learning libs are still dependent on 2

> a lot of useful machine learning libs are still dependent on 2

If they are a beginner, they would probably start with scikit-learn, which works on Py3.

As does TensorFlow. As does Theano. Etc.

Re: Ask HN: Ruby, Python, or JavaScript for teenager?

#33

Earlier quoted context omitted.

Which Python?

> Which Python? You mean Python 2 or Python 3? If you are a beginner and just starting - Python 3, without a doubt. (Well, even if you aren't a beginner you should use (or switch to) Python 3)

That "Which Python?" is an important question and that the existence of two versions of Python can make finding correct information harder is one of the reasons I am not wild about recommending Python to beginners -- particularly those who are going to be learning on their own.

Re: Ask HN: Ruby, Python, or JavaScript for teenager?

#34

I have 3 languages that I would and do recommend for any new programmer: - Python, because it looks like pseudocode and it's hard to fuck up as a beginner. Plus, if you're trying to do something real/effectful (rather than write implementations of algorithms) imperative code matches your intuition. - Haskell, because it looks like maths and it's hard to fuck up as a beginner. It's really easy to convert any maths stu…

Haskell has a steep learning curve. This is not a bad thing: it means that you climb so much higher in the early days of learning if you are successful. You learn more.

But! It also means that it is harder to climb that hill and you might just slide down. You need good support.

Re: Ask HN: Ruby, Python, or JavaScript for teenager?

#35
post #9

Python, because it's the rare combination of "wildly popular" and "keeps you out of trouble". Ruby has always had a one-framework-town kind of feel to it, with Rails being the one thing people automatically associate with the language. Javascript has the popularity, on the other hand, but it's a minefield in so many ways. The browser is not fun to work with for anything serious, and code written in node bitrots very…

OP, if you are looking for specific recommendations, this book is free and good: http://openbookproject.net/thinkcs/python/english3e/

If you want to learn web programming, follow it up with this one that is also free: http://chimera.labs.oreilly.com/books/1234000000754/index.ht...

Re: Ask HN: Ruby, Python, or JavaScript for teenager?

#36
I would say he or she should pick up whatever the people close to them use, because that's who they're going to turn to for help first. Yeah, there's a lot of online resources for just about every language and platform out there, so you've got plenty of people in the world who have blogged about X or asked questions about Y on stackoverflow, but ultimately its hard to beat sitting there with someone who walks you through the rough parts like stack traces that are absolutely shit and don't point to the root of the problem in that one out-of-the-way class method, or can point you in a more productive direction when you decide to rewrite a framework you didn't know existed.

Of course, some people learn things better the hard way, but that's what I wish I'd had...

Re: Ask HN: Ruby, Python, or JavaScript for teenager?

#37

Ruby, specifically Ruby on Rails. There are alot of plugins and resources to quickly setup a website. Ruby does have a learning curve, but activerecord, devise, carrierwave, and Rails' industry support really help you use alot of different technologies quickly.

As a person who loves Ruby, I would 100% avoid rails at every juncture.

If you want to write business software or "get things done", rails can help you to do things in the rails way.

However, I dont think its good to have a very VERY large set of conventions; you spend most of your time learning those and dont really spend your time solving problems in a way that teaches you about how to think about computing.

Re: Ask HN: Ruby, Python, or JavaScript for teenager?

#38

Earlier quoted context omitted.

> Which Python? You mean Python 2 or Python 3? If you are a beginner and just starting - Python 3, without a doubt. (Well, even if you aren't a beginner you should use (or switch to) Python 3)

That "Which Python?" is an important question and that the existence of two versions of Python can make finding correct information harder is one of the reasons I am not wild about recommending Python to beginners -- particularly those who are going to be learning on their own.

I think your making an overly big deal about this. Never really had an issue with this doing simple python stuff.

Re: Ask HN: Ruby, Python, or JavaScript for teenager?

#39
post #9

Python, because it's the rare combination of "wildly popular" and "keeps you out of trouble". Ruby has always had a one-framework-town kind of feel to it, with Rails being the one thing people automatically associate with the language. Javascript has the popularity, on the other hand, but it's a minefield in so many ways. The browser is not fun to work with for anything serious, and code written in node bitrots very…

[deleted]

Re: Ask HN: Ruby, Python, or JavaScript for teenager?

#40
Each of those languages has its downside:

* Ruby and its clones are declining as their signature frameworks (Rails, Grails, etc) are replaced by newer ones like Node, Go Http, etc

* Python has the version 2 or 3 problem for now

* Javascript is too complicated

I think in 20 years time when the dynamic language fad has well passed, like the 4GL fad before it, there'll only be 2 dynamic languages left in the market, just as the 4GL's dwindled to only Visual Basic and perhaps Delphi.

They'll be Python 3 and Javascript, so choose one of those.

Post reply on HN