Quote (PumblesMumbles @ Jul 31 2012 06:01pm)
You don't really "learn about" edge cases. They just exist.
Generally when you're working on a problem, you're thinking about normal cases. I need to sort a list, so I'm thinking about [5, 4, 9, 4, 2, 87, 5, 6]. I'm not thinking about []. But that case is there, and you need to know whether your program handles it.
yeah I think? we covered something similar to this.
Like in one example the prof. did he had an issue where if the length of the array was 0 (no elements) certain functions would error out so to fix that he put an IF before the calling of said functions.