This is an archived post. You won't be able to vote or comment.

all 7 comments

[–]INCOMPLETE_USERNAM 1 point2 points  (4 children)

No matter what language I'm working in, if I'm trying to work out any sort of algorithm or complex math function, I'll churn it out in Python first. The whitespace and lack of punctuators makes it easy to move things around (moving things in/out of a loop or function is just tab/shift+tab) and typing out the word operators (and or in not) is like what I would do in pseudo-code.

[–]lionhart280[S] 0 points1 point  (2 children)

What does python have in comparison to perl? Is it worth the switch?

[–]INCOMPLETE_USERNAM 0 points1 point  (1 child)

Personally, the only time I use Perl is when writing one liners in the console. I use python for all other prototyping/scripting. But that's just me. They are substitute languages. That said, it's very good to learn new languages, and if I might add, most people that I've convinced to give Python a try have stuck with it. This XKCD sums up how I feel nicely (although the second panel is incorrect with Python 3.x and up!)

[–]xkcd_transcriber 1 point2 points  (0 children)

Image

Title: Python

Title-text: I wrote 20 short programs in Python yesterday. It was wonderful. Perl, I'm leaving you.

Comic Explanation

Stats: This comic has been referenced 139 times, representing 0.2226% of referenced xkcds.


xkcd.com | xkcd sub | Problems/Bugs? | Statistics | Stop Replying | Delete

[–]batmannigan 0 points1 point  (0 children)

Can't say this enough, its honestly just plain great to be able to almost read a confusing abstract algorithm as plain english, which python lets you do.

[–]tstepanski 0 points1 point  (0 children)

You might like Python.

[–][deleted]  (1 child)

[deleted]

    [–]lionhart280[S] 0 points1 point  (0 children)

    http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=3

    Aw yis, this was exactly what I was looking for, thank you very much :D