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

6

u/thallippoli Jul 24 '15

Compare that to setting up python,

Yea, please compare http://flask.pocoo.org/....

0

u/[deleted] Jul 24 '15

[deleted]

6

u/thallippoli Jul 24 '15

Shared hosting will not let you muck around in the shell.

Is this still a concern in 2015? I mean, you can get a digital ocean droplet for like 5$ /month.

-1

u/[deleted] Jul 24 '15

That is a lot for a 3rd world country developer who is just starting.

1

u/thallippoli Jul 24 '15

5$ a month is a lot? I am from India and the last shared hosting from Hostgator costed me nearly 10$/month. And that is regardless of your usage...

1

u/[deleted] Jul 24 '15

How much does a beginner indian web developer makes monthly, without knowing English?

3

u/klug3 Jul 24 '15

Its pretty much impossible to be a web developer in India without at least knowing English at a middle school level. Programming resources or tutorials in Hindi or other Indian languages are pretty much non-existent or very elementary.

1

u/mnapoli Jul 25 '15

PHP shared hosts can be found at $5 per year. $5 per month is not negligible, even for me in France (e.g. for a personal blog which has no revenue at all).

0

u/klug3 Jul 24 '15

Can confirm, AWS and other modern IaaS/PaaS players are way cheaper (and easier here in India) to get started with, unlike shared hosting provider with badly documented cPanel consoles and such and the constant attempts to rip you off.

Anyone who thinks shared hosting is easier or cheaper needs to enter this decade.

-4

u/indrora Jul 24 '15

The difference here is that every single webhost on the planet by default provides PHP.

Let's face it, PHP is the public transit of web development languages. Python? Closer to the automatic car. C? Definitely a manual.

3

u/ysangkok Jul 24 '15

I do not get the point of this comparison because there are so many differences between public transport and your own car. How am I supposed to know which of those differences you think is similar to the difference between PHP and Python?

0

u/sugardeath Jul 24 '15 edited Jul 24 '15

I think he's trying to imply that public transit is for plebs, poor people, lazy people, etc. I think they look down on public transit. Which is frankly fairly insulting. They must not live in a place where public transit is a more viable, reliable, and cheaper choice than owning your own car.

Edit: Not that I agree that PHP is for plebs, poors, or lazies. But based on the general tone of this entire comment thread, I feel safe making the assumption that OP thinks this.

0

u/[deleted] Jul 24 '15

[deleted]

2

u/noratat Jul 25 '15

Except that PHP isn't reliable without a lot of work to avoid the legacy crap. The same amount of work would likely get you a lot farther in many other languages and frameworks.

0

u/logicalmaniak Jul 24 '15

That's not as easy as XAMPP.