Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
zacharydanger
on Nov 15, 2012
|
parent
|
context
|
favorite
| on:
FizzBuzz Still Works
Yeah. Those functions should've been defined as
def fizz?(i) i % 3 == 0 end def buzz?(i) i % 5 == 0 end
So that he'd just need to change them once.
Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: