Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

It is weird and magical to me that the lisp guy got modded up but the JavaScript guy got modded down.


Maybe he got modded down for posting code that won't run.


You'd think it's JavaScript, but actually, it's Python.


I wrote it in Python, actually. And it has some very obvious bugs. Here's the revised code:

  cuilBuzz = {
      '1': 'All the rage!',
      '2': 'Worst product e-v-e-r',
      '3': None
  }

  day = '3'
  print cuilBuzz[day]
  # Although the print isn't necessary...
Now what would be interesting would be an accurate version using the datetime module...




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: