Live data from Hacker News

Django on Heroku running with Celery

gist.github.com

11–20 of 47 posts

Re: Django on Heroku running with Celery

#11
post #5

I thought Heroku only suppoted Ruby and node.js. Can someone explain what is going on here? Does it run arbitary executables, but it handles Ruby in some more powerful way?

Heroku introduced a new stack that can "Run Anything":

http://www.heroku.com/#run_anything

http://devcenter.heroku.com/articles/cedar

http://news.ycombinator.com/item?id=2602728

Re: Django on Heroku running with Celery

#12
post #6

Earlier quoted context omitted.

For who? I don't think anybody who actually writes code is going to be confused by += No need to race to the bottom any faster guys.

Haters need to take a hard look in the mirror. I made a bland statement of common knowledge about readability. Never mentioned confusion. Edit: pussies.

I disagree: your statement does not in fact reflect conventions on common readability. If anything, a programmer should be able to read s = s + (...) just as well as s += (...). They both seem obvious to me but as a Python programmer, I prefer the latter.

Re: Django on Heroku running with Celery

#15
post #2

INSTALLED_APPS = INSTALLED_APPS + (...) can be rewritten as: INSTALLED_APPS += (...) No?

Yep. It could be argued that the first is more readable though.

Personally, I find:

  x += 2 
Easier to read then:

  x = x + 2
For many reasons.. but mainly:

  1) The first statement basically says: Add 2 to x, while the second says: Take x, add 2 and add that to x.. Which is one more step. 

  2) When a variable is repeated multiple time, I always read the line multiple time to make sure there is no error. For instance, in english "On the screen, there there is a xyz". I'll stop and read that sentence a couple of time to try to understand it.. and then realize it's an error. Likewise, when I see x = x + 2, I think "Is it a mistake?" I.e. did the author wanted to write: y = x + 2.. if not, why does he repeat himself? 
However, I'm interested in knowing in what you find it more readable :) ?

Re: Django on Heroku running with Celery

#16
post #3

Slight OT: Is it just me or non-Ruby/NodeJS no longer works on Cedar stack? Cleaning up... -----> Discovering process types ! Heroku push rejected due to an unrecognized error. ! We've been notified, see http://support.heroku.com if the problem persists

[deleted]

Re: Django on Heroku running with Celery

#17
post #3

Slight OT: Is it just me or non-Ruby/NodeJS no longer works on Cedar stack? Cleaning up... -----> Discovering process types ! Heroku push rejected due to an unrecognized error. ! We've been notified, see http://support.heroku.com if the problem persists

Gonna need more info than that if we were to try and fix whatever your issue is. App source code perhaps?

Re: Django on Heroku running with Celery

#18
post #12

Earlier quoted context omitted.

Haters need to take a hard look in the mirror. I made a bland statement of common knowledge about readability. Never mentioned confusion. Edit: pussies.

I disagree: your statement does not in fact reflect conventions on common readability. If anything, a programmer should be able to read s = s + (...) just as well as s += (...). They both seem obvious to me but as a Python programmer, I prefer the latter.

Read it again, says "could be argued," not that I am in unrelenting agreement with it. I find both obvious as well.

However, one of python's main design goals is readability. That's why it does not have the i++ operator in preference to i = i + 1, for example. No switch keyword either. +=, etc managed to squeeze in though.

More specifically, one of the forms has a thousand years+ of algebra notation behind it, the other does not. I made no statement over whether pro programmers would find it confusing, but on the readability count, analogues to mathematics win.

Re: Django on Heroku running with Celery

#19
post #15

Earlier quoted context omitted.

Yep. It could be argued that the first is more readable though.

Personally, I find: x += 2 Easier to read then: x = x + 2 For many reasons.. but mainly: 1) The first statement basically says: Add 2 to x, while the second says: Take x, add 2 and add that to x.. Which is one more step. 2) When a variable is repeated multiple time, I always read the line multiple time to make sure there is no error. For instance, in english "On the screen, there there is a xyz". I'll stop and read t…

It's merely more familiar to the average person. I'm not against the first form and use it a lot. See my comment to llamda below for more details.
Post reply on HN