4 ms·
Which is precisely why debates like these can occur in the first place, it's not an exact science. Which is also why the parent started with "It depends".
by exergy 9y ago
Which is precisely why debates like these can occur in the first place, it's not an exact science. Which is also why the parent started with "It depends".
- calafrax 9y agoyes it is actually. if your function has a logical branch then it is doing more than one thing. if your function has a logical branch within a logical branch then it is doing exponentially more things and this complexity continues to grow exponentially. therefore, if you have a logical branch you ask yourself: does it make sense to create a function here? the answer may be yes or no. if you create a nested logical branch you ask yourself: does it make sense to create a function here? the answer still may be yes or no but the weight of the evidence for yes has increased exponentially.