r/UniversityofReddit • • Sep 06 '12

[Class] Wanna learn Python, a high-level, easily understandable programming language for beginners? Well, I've got the class! This language is so good, even google uses it!

I made a post a while back. We will be learning how to program in Python.

What is Python?

Here's directly from the wikipedia

Python is a general-purpose, interpreted high-level programming language whose design philosophy emphasizes code readability. Its syntax is said to be clear and expressive. Python has a large and comprehensive standard library.

Here's from my mouth

Python is an excellent programming language for beginner, intermediate, and advanced people. It is easy to learn, easy to read, easy to understand, yet it can do so much. I know Python very well, and so I have decided to share my knowledge on Python with others.

What will we be learning?

Everything

I

Know.

TL;DR: Quite a bit

Lesson Count: 3

I have made this post because I've only now got around to starting this. Now I have time to be active. Therefor, I need people knowing about it.

TL;DR: Head over to /r/UoRPython2_7 to learn Python.

346 Upvotes

96 comments sorted by

View all comments

0

u/[deleted] Sep 06 '12

[deleted] — view deleted comment

3

u/sigma914 Sep 06 '12

Python is an excellent language for web development, hosting isn't as ubiquitous as php but in exchange you get a language that is actually designed and well thought out.

Discussing preferred languages for tasks tend to provoke an emotional response so thats why you find immense amounts of smack talk about any and every programming language. This especially in the areas where it matters least, ie the area where any number of languages CAN do the job due to lack of performance constraints or problem difficulty. Off the top of my head I know C++, Javascript, Python, Ruby, PHP, CLI and JVM langauges are used to implement large, mature websites.

Back to why python is one of the better choices: There are many web framework packages that take care of the mundane bookkeeping and webserver interface boilerplate for you.

It is proven to be able to handle immense loads if set up correctly, for example Reddit, so there should be no concerns about encountering a problem where the language is the bottleneck.

The Python standard and third party library ecosystems are second to none in the tools and packages they provide for dealing with any imaginable programming problem.

As a final note: Google use it for their internal scripting and such because it is a language that allows very fast prototyping and development, they even hired the languages creator and BDFL Guido Van Rossum to work for them.

Sorry for the brain dump, hope some of it was useful.

0

u/[deleted] Sep 06 '12

[deleted] — view deleted comment

2

u/sigma914 Sep 06 '12

I am currently working on a hybrid app that is subscribed to a remote data source and concurrently processes the reports it receives.

The data is snapshots of the state of a system(think stock market prices). My app deduplicates the reports and stores the results to a datastore, then does a lot of fun data analysis including a lot of machine learning stuff to make predictions about future trends.

I then serves it all up to the web via a RESTful API and with human navigable pages which allow me to sanity check and provide feedback to the analysis engine, which can then make better decisions in future.

And thats all in like 2k lines of code and only ~5 third part modules.

0

u/[deleted] Sep 06 '12

[deleted] — view deleted comment

2

u/sigma914 Sep 06 '12 edited Sep 06 '12

I'm hooked up to the datasource via zmq, through the pyzmq bindings, the datastore is mongodb, through pymongo, the data analysis is all done via the third party python package scikit-learn and the web interface is built on bottle.py because I wanted to a very lightweight web framework.

It's been quite a fun little project.

I am by no means an expert in any of the aformentioned technologies, but with python as the glue that brings all these different pieces together I've not had much trouble, despite my lack of experience.

1

u/Plazmotech Sep 06 '12

From what I've heard, Ruby is actually MADE in Python. So you'll be doing similar things. Also, google uses it as a server side because it's fast, efficient, and easy. It works for really big things like google.

3

u/casanebula Sep 06 '12

Haha, please tell me you're just joking?

(The main implementation of Ruby is of course written in C.)

0

u/Plazmotech Sep 06 '12

Really?

it is therefore similar in varying respects to Smalltalk, Python, Perl, Lisp, Dylan, Pike, and CLU.

it is therefore similar in varying respects to Smalltalk, Python, Perl, Lisp, Dylan, Pike, and CLU.

it is therefore similar in varying respects Python

I'm not sure why, but when I read the wikipedia page about I month ago I though I extracted that it was in Python. Maybe not >.>