4

Refactoring some horrendous old ass (ruby) code and I come across
`schedules.each |do|`
okay. Where does `schedules` get set?
`schedules = [create_schedule(args)]`
Cool. An array that never has more than one object in it. Good code, guy.

Comments
  • 0
    Maybe he thought one day it would have more than one object in it... Sounds like a big picture, forwarding thinking guy to me lmao
  • 0
    @Ace71425 hahaha not forward thinking enough to write code that is the least bit maintainable.
Add Comment