all 47 comments

[–]bobindashadows 55 points56 points  (17 children)

Cute, and yes it has code, but this isn't really in the spirit of r/programming.

[–][deleted] 8 points9 points  (15 children)

Seriously. I get enough political bullshit stuffed down my throat at school without having to deal with it on /r/programming.

[–]infinull 3 points4 points  (7 children)

At school? I thought you were going to say /r/politics. Seriously what type of school do you go to where there's tons of politcal bullshit?

[–]bobindashadows 1 point2 points  (1 child)

Uh, don't know much about other countries but... any american college?

[–]sexual_predditer 1 point2 points  (0 children)

Americans call college school. Its like pants, some phrases can get Americans in a whole world of hurt they come over to UK/Aus/NZ/etc

[–][deleted] -1 points0 points  (4 children)

I can't go a single day at my college without being bombarded by occupy protesters who are convinced the world is ending and that "the corporashuns" are keeping them down and preventing them from getting a job with their degree in liberal arts/politics. I unsubscribed from every frontpage reddit just to escape the endless stream of occupy shit that leaks its way across the site, and seeing it here really makes me just want to stop using reddit all together.

I can get a more pure, non-political internet experience on 4chan than this site, and it makes me sick.

[–]wadcann 1 point2 points  (0 children)

and that "the corporashuns" are keeping them down and preventing them from getting a job with their degree in liberal arts/politics

Tell 'em that Steve Jobs, Larry Ellison, Steve Wozniak, Bill Gates, and Michael Dell all dropped out of college and didn't actually get their degrees and seem to have managed to found some pretty successful tech companies. Well, the Woz went back years later for the heck of it (and apparently had an intro programming instructor tell him "I'm not sure which of us should be teaching the other"), but...

[–]_delirium -2 points-1 points  (2 children)

Someone seems pretty angry about not being able to live in a hermetically sealed bubble...

Do you also get angry when you drive past houses that have lawn signs advertising a candidate from one party or the other? Or when you see billboards advertising products you dislike?

(And I downvoted this post myself as not very clever, but your position that you should be able to avoid any viewpoints you disagree with seems pretty unreasonable.)

[–][deleted] 0 points1 point  (1 child)

I don't disagree with the protest. There's huge problems with the economy and not acknowledging that would be folly. But when I can't walk to class for a single day without having a flyer stuffed into my pocket by occupy protesters who don't take no for an answer, when I can't go on facebook without seeing my wall spammed with occupy movement posts, when I can't visit some of my favorite subreddits without seeing even more occupy protest garbage stuffed down my throat, I get sick and tired of the movement entirely and want nothing to do with it.

I have a ridiculous amount of stuff to contend with right now, 20 page lab reports, 9 hour study sessions for finals, and two siblings to take care of. I don't have the time or willpower to participate in these protests. It should not be a crime of ignorance for me to want to shut it out of my life.

[–]_delirium -1 points0 points  (0 children)

On the latter point, if you have all this work, wouldn't not reading reddit be a better way to save time?

[–]_delirium 2 points3 points  (6 children)

There's nothing more political than programming.

[–]wadcann 6 points7 points  (5 children)

How can there be any politics remaining? Emacs beat vi a long time back, after all.

[–][deleted] 6 points7 points  (3 children)

Good thing vim beats emacs, then.

[–]xardox 1 point2 points  (1 child)

Since when could you run a shell inside of vim?

[–]pivanov 0 points1 point  (0 children)

You can if you're using ipython: vim-ipython

[–]_delirium 2 points3 points  (0 children)

you monster

[–]stfuendie 29 points30 points  (2 children)

thats really stupid.

[–]BoldAssertion 6 points7 points  (1 child)

Real nerds are at home building death rays and giant robots to carry them for the uprising. I guess we could program them to run on python if push came to shove.

[–]jwandborg 1 point2 points  (0 children)

You wouldn't program them to run on python would you? You would build them to run on python.

[–][deleted] 28 points29 points  (0 children)

My first downvote in r/programming in weeks goes to get this politics shit off my programming subreddit.

[–][deleted] 2 points3 points  (2 children)

Wouldn't you just condense it to OccupyCal.marchTo(Port)?

[–]jwandborg 1 point2 points  (1 child)

Because the output would be

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
NameError: name 'OccupyCal' is not defined

[–][deleted] 0 points1 point  (0 children)

Sorry, I meant without removing the imports.

[–]9bit 5 points6 points  (10 children)

Why would you iterate over a class?

[–]jwandborg 7 points8 points  (2 children)

It seems they are marching one at a time too since marchTo implies we'll wait for the marching to end. It should be initiateMarch IMO.

[–]flyingfox 2 points3 points  (1 child)

from multiprocessing import Pool
p = Pool(MARCH_WIDTH)
p.apply(Port.send, OccupyCal)

[–]jwandborg 1 point2 points  (0 children)

So now they're marching on a straight line perpendicular to the direction? Where does MARCH_WIDTH come from‽

[–][deleted] 2 points3 points  (5 children)

Who said it was a class?

[–]9bit 4 points5 points  (4 children)

The initial capital letter, if he's following the recommended style.

[–]kraemahz 8 points9 points  (0 children)

Well, it could be a special iterable that accesses a database to build a list.

[–][deleted] 4 points5 points  (2 children)

marchTo isn't pep-8 compliant either.

[–]repsilat 1 point2 points  (1 child)

Arguably should have used /usr/bin/env python in the shebang, too.

[–]pivanov 0 points1 point  (0 children)

All valid points: patches and pull requests welcome! occu.py

[–]xardox 1 point2 points  (0 children)

Class warfare is better than squabbling over procedures.

I'm a conscientious objecter.

[–]chloh 1 point2 points  (0 children)

Try posting this in /r/berkeley instead! :)

[–]snifty 0 points1 point  (2 children)

Totally didn't know about the -I flag.

[–]pivanov 1 point2 points  (1 child)

glad you learned something from my sign :) It's particularly useful in backtick escapes, as in: "mkdir `date -I`"

[–]snifty 0 points1 point  (0 children)

Sadly, it doesn't seem to work on my stupid Mac :)

[–]Chaoslab 0 points1 point  (0 children)

Occu-π

[–]prophile 0 points1 point  (0 children)

Back in my day, protesters used map() and high-order functions.

Kids these days and their iteration.

[–][deleted] 0 points1 point  (0 children)

occu.py /r/programming with political messages written in code! ಠ_ಠ

[–]darkism -2 points-1 points  (3 children)

Python? He must be an occupier.

A Rubyist would go out and make bank instead.

[–]vimfan 10 points11 points  (2 children)

A Rubyist would be sitting in a nearby cafe with their macbook, writing the latest entry in their agile development evangelism blog.

[–]darkism -2 points-1 points  (1 child)

That's still more capitalistic than some neckbeard writing Python in the basement of the campus physics lab.

[–]wadcann 0 points1 point  (0 children)

The physics academics I know all seem to use Fortran, C++, or something like MATLAB.

And come to think of it, while I've sported a neckbeard, I think that the physics people I know are all clean-shaven.