Re:Wow, the Cuil buzz died quickly. In code...
by thomasmallen on Wednesday August 13, 2008 @10:01AM
(#274965)
I prefer:
[ Parent
| on HN ]
Re:Wow, the Cuil buzz died quickly. In code...
by KirinDave on Wednesday August 13, 2008 @10:53AM
(#275010)
It is weird and magical to me that the lisp guy got modded up but the JavaScript guy got modded down.
Re:Wow, the Cuil buzz died quickly. In code...
by chengmi on Wednesday August 13, 2008 @11:38AM
(#275056)
Maybe he got modded down for posting code that won't run.
Re:Wow, the Cuil buzz died quickly. In code...
by toxik on Wednesday August 13, 2008 @11:05AM
(#275022)
You'd think it's JavaScript, but actually, it's Python.
Re:Wow, the Cuil buzz died quickly. In code...
by thomasmallen on Wednesday August 13, 2008 @04:03PM
(#275403)
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...