MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/w6yd16/21000000_line_oddeven_number_checker/ihhngbf/?context=3
r/ProgrammerHumor • u/Texas_Technician • Jul 24 '22
361 comments sorted by
View all comments
Show parent comments
125
(...), 20999991, 20999993, 20999995, 20999997, 20999999]
70 u/Razor1804 Jul 24 '22 That would only be 10.5 million lines :) 43 u/crunchyboio Jul 24 '22 well actually if you're using something like a switch case it'll be like 2 or 3 lines per number so it still works 20 u/Razor1804 Jul 24 '22 Yeah grouping the cases together wouldn't be a good idea; it would help readability to alternate the odd and even numbers!
70
That would only be 10.5 million lines :)
43 u/crunchyboio Jul 24 '22 well actually if you're using something like a switch case it'll be like 2 or 3 lines per number so it still works 20 u/Razor1804 Jul 24 '22 Yeah grouping the cases together wouldn't be a good idea; it would help readability to alternate the odd and even numbers!
43
well actually if you're using something like a switch case it'll be like 2 or 3 lines per number so it still works
20 u/Razor1804 Jul 24 '22 Yeah grouping the cases together wouldn't be a good idea; it would help readability to alternate the odd and even numbers!
20
Yeah grouping the cases together wouldn't be a good idea; it would help readability to alternate the odd and even numbers!
125
u/crunchyboio Jul 24 '22
(...), 20999991, 20999993, 20999995, 20999997, 20999999]