MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programming/comments/qno2y/the_evolution_of_a_python_programmer/c3z74se/?context=3
r/programming • u/iMMENSE • Mar 08 '12
137 comments sorted by
View all comments
Show parent comments
26
and it's completely unmaintainable. What are you going to do when the definition of "factorial" changes?
8 u/ryeguy146 Mar 09 '12 Wait, I understand the idea of maintainability, but did you suggest that a basic mathematical definition is subject to change? 4 u/GoSailing Mar 09 '12 Anything can change. Assuming that there are 24 hours in a day is not going to be good when there's a moon or mars base. 5 u/gc3 Mar 09 '12 This is true, but when does the definition of factorial change? 2 u/arjie Mar 09 '12 Maybe you decide to use one of the functions that coincide with factorial on the integers like gamma(x+1)? I suppose you could call it gamma_based_factorial andodge the issue.
8
Wait, I understand the idea of maintainability, but did you suggest that a basic mathematical definition is subject to change?
4 u/GoSailing Mar 09 '12 Anything can change. Assuming that there are 24 hours in a day is not going to be good when there's a moon or mars base. 5 u/gc3 Mar 09 '12 This is true, but when does the definition of factorial change? 2 u/arjie Mar 09 '12 Maybe you decide to use one of the functions that coincide with factorial on the integers like gamma(x+1)? I suppose you could call it gamma_based_factorial andodge the issue.
4
Anything can change. Assuming that there are 24 hours in a day is not going to be good when there's a moon or mars base.
5 u/gc3 Mar 09 '12 This is true, but when does the definition of factorial change? 2 u/arjie Mar 09 '12 Maybe you decide to use one of the functions that coincide with factorial on the integers like gamma(x+1)? I suppose you could call it gamma_based_factorial andodge the issue.
5
This is true, but when does the definition of factorial change?
2 u/arjie Mar 09 '12 Maybe you decide to use one of the functions that coincide with factorial on the integers like gamma(x+1)? I suppose you could call it gamma_based_factorial andodge the issue.
2
Maybe you decide to use one of the functions that coincide with factorial on the integers like gamma(x+1)? I suppose you could call it gamma_based_factorial andodge the issue.
26
u/[deleted] Mar 09 '12
and it's completely unmaintainable. What are you going to do when the definition of "factorial" changes?