The inevitable cons of overloading methods

Date Tags theory

Day 1

You see a simple method that draws a triangle. Currently, it takes in a specific size:

drawTriangle(float size);

You've been told that in the past, we only needed one kind of triangle. Now we need to be able to choose the color. No biggie, we have ...

more ...

About Yusuke Tsutsumi
I work at Zillow. I focus on tools and services for developer productivity, including build and testing.

My other interests include programming language design, game development, and learning languages (the non-programming ones).