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

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: