by rootlocus · 9y ago · 0 comments
Keeping all versions of the same method in the source files has a lot of drawbacks:
1. Readability. Autocomplete gives me 50 versions of that method. Which one do I choose? The latest? Why do the rest need to exist?
2. Code size. Can you imagine the compilation times? IDE indexing times? Binary size?
3. Consistency / Correctness. How do you know when each call should update it's version. How do you increment all calls to the latest version?
Simplicity is the ultimate sophistication.
No comments yet.