3 ms·
And even in those cases, it isn't cut-and-dried. They claim "The advantage is that tomorrow, we can fulfill the request for a new type of bond by simply creatin
by mdemare 17y ago
And even in those cases, it isn't cut-and-dried. They claim "The advantage is that tomorrow, we can fulfill the request for a new type of bond by simply creating a new class, with the single required logic to calculate the value of that new bond."
Simply? I'd say that creating a new class is a hell of a lot more work than creating a new elseif branch.
- j_baker 17y agoThat depends on the context of course. What if that elseif branch needs to be created in two places? Or 20 places?