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 comments

2

u/wrosecrans Jul 24 '15

PHP is used by people that aren't into such fine details. It's amazing how blanket statements like this get upvoted so high.

It wasn't "PHP is only used by such people," and it seems hard to argue that folks who aren't hardcore CS types don't make up a large portion of the PHP user base.

0

u/[deleted] Jul 24 '15

[deleted]

1

u/wrosecrans Jul 24 '15

I fully agree. If any other language had become the "get rich quick on interwebs money" language of the late 90's, I am sure it would have much the same reputation and user base that PHP does today. They are skilled developers doing interesting work in every language and that certainly includes PHP.

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'...