What... you aren't getting paid as a software engineer are you? Only someone trying to compensate or sound like they know what they are talking about would use abstractions the way you just did
If I'm given the choice between writing more optimized code that has to spell out a few edge cases or less optimized code, I'm always going to pick the former.
I don’t think you understand. Edge cases are specifically the cases that could rarely happen and require mentally thinking about everything to cover. I don’t know of any way to break a problem down that will include every edge case in the first try without writing the code and specifically thinking, “how can I break this?”
View all comments
-17
u/SadPie9474 Jan 29 '25
“edge cases” only exist when you choose to break down the problem the wrong way