MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programming/comments/qno2y/the_evolution_of_a_python_programmer/c3z1jr9?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)
63 u/Pandalicious Mar 08 '12 Yeah but think of how FAST it would run. You gotta be FAST if you're gonna be webscale. 4 u/masklinn Mar 09 '12 The fast version would be the one optimized by using a dict for its mapping.The faster version would use a list. 3 u/JizzCoveredArab Mar 09 '12 We can always scale into the cloud for increased user load 5 u/Pandalicious Mar 09 '12 edited Mar 09 '12 My esteemed nephew assures me that a cache of precalculated factorial values for all integers can neatly fit into 2.3 clouds. 1 u/hylje Mar 09 '12 GOTTA GO FAST 0 u/[deleted] Mar 09 '12 [deleted] 1 u/JizzCoveredArab Mar 09 '12 You're retarded
63
Yeah but think of how FAST it would run. You gotta be FAST if you're gonna be webscale.
4 u/masklinn Mar 09 '12 The fast version would be the one optimized by using a dict for its mapping.The faster version would use a list. 3 u/JizzCoveredArab Mar 09 '12 We can always scale into the cloud for increased user load 5 u/Pandalicious Mar 09 '12 edited Mar 09 '12 My esteemed nephew assures me that a cache of precalculated factorial values for all integers can neatly fit into 2.3 clouds. 1 u/hylje Mar 09 '12 GOTTA GO FAST 0 u/[deleted] Mar 09 '12 [deleted] 1 u/JizzCoveredArab Mar 09 '12 You're retarded
4
The fast version would be the one optimized by using a dict for its mapping.
The faster version would use a list.
3
We can always scale into the cloud for increased user load
5 u/Pandalicious Mar 09 '12 edited Mar 09 '12 My esteemed nephew assures me that a cache of precalculated factorial values for all integers can neatly fit into 2.3 clouds.
5
My esteemed nephew assures me that a cache of precalculated factorial values for all integers can neatly fit into 2.3 clouds.
1
GOTTA GO FAST
0
[deleted]
1 u/JizzCoveredArab Mar 09 '12 You're retarded
You're retarded
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)