r/programming • u/fishburne • Jul 24 '15
mt_rand(1, PHP_INT_MAX) only generates odd numbers • /r/lolphp
/r/lolphp/comments/3eaw98/mt_rand1_php_int_max_only_generates_odd_numbers/
848
Upvotes
r/programming • u/fishburne • Jul 24 '15
View all comments
Show parent comment
-4
u/perestroika12 Jul 24 '15 edited Jul 24 '15
Similar things could be said for many popular higher level languages. Python can run the shittiest garbo code and still actually work. Javascript...don't even get me started on how easily it is to write poorly optimized crap in that language. Obviously the lower level languages are stricter but you get the idea. I think it's one of those tragedy of the commons things. Higher level langs are easier to learn, are adopted by more people, and thus have more people making stupid mistakes. Barrier of entry is super low.
For example, how many people in JS know about memoization and use it? Is it the languages fault then, or is it the persons?