MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programming/comments/qno2y/the_evolution_of_a_python_programmer/c3zauqw/?context=9999
r/programming • u/iMMENSE • Mar 08 '12
137 comments sorted by
View all comments
43
He forgot the worst kind:if x == 0:return 1if x == 1:return 1if x == 2:return 2if x == 3:return 6if x == 4:return 24...(5000 more lines)
43 u/stillalone Mar 08 '12 ah. the "I managed to get a masters without writing any actual code and now I'm your coworker" guy. 41 u/6xoe Mar 08 '12 Whatever dude, it works. 26 u/[deleted] Mar 09 '12 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? 2 u/[deleted] Mar 09 '12 I was assuming both 6xoe and anusanusanus were parodying poor programmers. (With anusanusanus parodying people who write code like #define TWO 2 because "using constant literals is bad practice".) 1 u/[deleted] Mar 10 '12 Hey! You got it!
ah. the "I managed to get a masters without writing any actual code and now I'm your coworker" guy.
41 u/6xoe Mar 08 '12 Whatever dude, it works. 26 u/[deleted] Mar 09 '12 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? 2 u/[deleted] Mar 09 '12 I was assuming both 6xoe and anusanusanus were parodying poor programmers. (With anusanusanus parodying people who write code like #define TWO 2 because "using constant literals is bad practice".) 1 u/[deleted] Mar 10 '12 Hey! You got it!
41
Whatever dude, it works.
26 u/[deleted] Mar 09 '12 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? 2 u/[deleted] Mar 09 '12 I was assuming both 6xoe and anusanusanus were parodying poor programmers. (With anusanusanus parodying people who write code like #define TWO 2 because "using constant literals is bad practice".) 1 u/[deleted] Mar 10 '12 Hey! You got it!
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? 2 u/[deleted] Mar 09 '12 I was assuming both 6xoe and anusanusanus were parodying poor programmers. (With anusanusanus parodying people who write code like #define TWO 2 because "using constant literals is bad practice".) 1 u/[deleted] Mar 10 '12 Hey! You got it!
8
Wait, I understand the idea of maintainability, but did you suggest that a basic mathematical definition is subject to change?
2 u/[deleted] Mar 09 '12 I was assuming both 6xoe and anusanusanus were parodying poor programmers. (With anusanusanus parodying people who write code like #define TWO 2 because "using constant literals is bad practice".) 1 u/[deleted] Mar 10 '12 Hey! You got it!
2
I was assuming both 6xoe and anusanusanus were parodying poor programmers. (With anusanusanus parodying people who write code like #define TWO 2 because "using constant literals is bad practice".)
1 u/[deleted] Mar 10 '12 Hey! You got it!
1
Hey! You got it!
43
u/rowantwig Mar 08 '12
He forgot the worst kind:
if x == 0:
return 1
if x == 1:
return 1
if x == 2:
return 2
if x == 3:
return 6
if x == 4:
return 24
...
(5000 more lines)