Learn Ruby by playing a video game.
37 15 comments 11 Jul 2015 16:55 u/kitanata (..) in v/programmingComment on: (Python) Is there a better way to say dictionary_one[max(dictionary_one)]?
0 11 Jul 2015 16:40 u/kitanata in v/programmingComment on: Hey /v/programming - What's your favorite language to program in and why?
The indents can take a bit to get used to. I learned Python after programming in C++ for YEARS. Not having these friendly guys { } is real annoying at first. After a few weeks/months though you get used to the indentation and whitespace significance, and in my case, I actually started preferring it. Quick hint though: Make sure you are expanding your tab characters into spaces, and indenting at 4 spaces deep. Most editors and IDE's will let you type the TAB character, but will actually insert 4 spaces for you, if you set this in your settings. This can end up solving you a ton of headache with INDENT/OUTDENT errors.
Comment on: Hey /v/programming - What's your favorite language to program in and why?
Thats a great question. Python is a very powerful programming language. The idea that it is just a "scripting" language isn't entirely honest, and comes from ignorance. I often encounter this term when speaking to my fellow coders who have only worked on statically type language stacks for most (or all) of their career. It is often used in a derisive way. Like, oh, that langauge isn't a "real" language. It's just a "scripting" language. Sound familiar?
The truth is, there are a world of programming languages that are used outside of C++/Java/C#. Each of them have various features, or constructs that make them unique. There are pure functional languages like Haskell, Clojure, and Erlang. There are dynamically types languages like Python, Ruby, and Javascript. There are statically typed languages like Rust and C++. Each language might be better suited than another for certain tasks.
Python is heavily used in scientific simulations, mathematics, academia, the web, and game programming. At my current client, we're using it to write a cross-compiler toolchain to compile for specific embedded architectures on linux systems. At my last position we used Python to write deep learning algorithms to classify different student learner models. And prior to that I worked heavily with startups who were using Python to create websites like Reddit and Voat.co.
If you're interested in programming, or you are already a programmer but want to learn something other than Java or C++, then I can't recommend Python enough to you. It is a great programming language.
Comment on: Hey /v/programming - What's your favorite language to program in and why?
All about that Python. :D
What are you trying to accomplish with this code? This suggests to me that you are trying to get the item in the dict with the most items in it, but that is not what this code does.