News for hackers. Stuff that matters.
Re:Tell HN: Your april 1st link is not really funny... by palish on Tuesday March 31, 2009 @11:08PM (#541286)
Algorithm for dealing with unhappiness related to your comment scores:

  if not self.curious or not self.spent_at_least_10_minutes_writing_comment( your_comment ):
    self.dont_care()
  else:
    self.wait_until_score_is_less_than( your_comment, -2 )
    self.ask_politely_why_comment_is_bad( your_comment )
    self.sleep()
Re:Tell HN: Your april 1st link is not really funny... by muhamm on Tuesday March 31, 2009 @11:15PM (#541291)
Sure. But is that Python? You know in Ruby you wouldn't need the parens? It would work nicely for the sleep and dont_care methods since you're not passing any arguments.
Re:Tell HN: Your april 1st link is not really funny... by palish on Tuesday March 31, 2009 @11:16PM (#541292)
I personally like the visual distinction between properties and methods. But it's purely a stylistic choice.

Having an implicit "self" parameter for functions defined within "class Foo:" would be nice though.

Re:Tell HN: Your april 1st link is not really funny... by muhamm on Tuesday March 31, 2009 @11:27PM (#541303)
To be honest, at first I also didn't like the lack of visual distinction between properties and methods but now I just like the fact that I don't have to type the extra characters. The implicit self is nice too.
Re:Tell HN: Your april 1st link is not really funny... by jjs on Tuesday March 31, 2009 @11:55PM (#541346)
Really, if you're not passing functions more often than you call them, you're missing out. :)