A programming instructor shares a memorable story about a student who fundamentally misunderstood how functions and variables work in Ruby. The student wrote two separate functions with hardcoded values instead of a single general-purpose function, believing one function couldn't return two different results. The author draws
Sort: