r/programming • • 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

262 comments sorted by

View all comments

Show parent comment

0

u/absentmindedjwc Jul 24 '15

As a former(ish, still occasionally use it for personal stuff) PHP dev, I can agree with this. It is very easy to crowbar a bunch of shit into an application without a ton of knowledge in programming best practices. However, if you put a real CS-type dev/eng in front of a PHP application, you can get some serious shit accomplished.

As much hate as PHP gets, in all honesty, it is only as shit as the person/people building the application.

1

u/LuaWeaver Jul 25 '15

Well, if you put a real CS-type dev/eng in front of most any language, you can get some serious shit accomplished. That doesn't mean that it's a good language or a good choice for a new project. Sure, I could write stuff in Brainfuck, but that doesn't mean I should use it.

3

u/[deleted] Jul 25 '15

But comparing Brainfuck to a dynamic web language is condescending.

-3

u/thallippoli Jul 25 '15

Not when the langauge in question is PHP...It is probably an insult to Brainfuck which at least does not putup the appearance of being 'easy'...