r/CoderRadio • u/cajuntechie • Jan 13 '15
Why Chris should consider learning Python
I listened to CR-136 today and was a little disappointed that Chris decided not to seriously consider Python as the language he will learn during his 'coding journey'. While Ruby, Go, and Rust, are all very capable languages, I think Chris should seriously take a second look at Python.
First, Python has an amazing community. There's virtually never a question you can ask that someone isn't going to give you a good, solid, answer and they will often include code examples to show you how to do it or at least get you started.
Second, the Python community is huge. While this can also be said about the Ruby community, I've never felt that that community was as well-rounded and mature as the Python one. Community goes a long way.
Third, Python has a 'battaries included' approach to life. Whatever you want to do, Python likely has a module that will allow you to do it simply, elegantly, and reliably. Because of this, you end up writing a lot less code than you would in other languages and the code you do write is often higer quality since you're usually just hooking into well defined functions instead of navigating through tons of your own code.
Lastly, I feel that learning Ruby when most of what Chris wants to do is system admin type things (with the occassional web thing) is like deciding to learn PHP for that task. Python just 'feels' like a bit better fit for shell stuff while, IMHO, Ruby has always felt a bit 'cludgy' in that space.
I know Chris mentioned that one of the reasons he discounted Python was that he wasn't passionate about it. I'd say this should be more of a practical matter than a passion one. He's not wanting to become a pro developer or even necessairly release code to others. He just wants to create some tools for his own use and maybe share it with others a bit later. Why not get a solid language under his belt then, once he has the basics of writing good code down, include Ruby or Go or Rust later? Why make it harder to learn to code instead of starting at a dead easy point then building on it?
In the end, I'm glad Chris is learning to code at all. It's a skill everyone can benefit from. I just wanted to be 'that guy' who came to the defense of an awesome language.
1
u/lykwydchykyn Jan 13 '15
The best language to learn is one you can apply as quickly as possible.
I think Chris could probably find applications for Ruby, especially since he's a sysadmin guy (thinking Chef, e.g.).
I think Python would be a great choice too, because it's broadly applicable.
I think he'd struggle to find practical application for Go or Rust without a lot of additional learning.
I do Python coding primarily now, and have done PHP in the past; but the first language that really got me turned on to programming was called TADS. It's a language designed solely for writing text adventures (like Zork). It's useless apart from that; BUT, I was able to create something with it that motivated me to learn and improve. I learned the basics of desigining a program and working with an OOP language. It made moving on to more general purpose languages much easier.
Point being, you don't have to choose the end-all-be-all programming language as your first language; it's more important to choose one you can use for something quickly to keep you motivated.