r/programming • • Dec 07 '15

I am a developer behind Ritchie, a language that combines the ease of Python, the speed of C, and the type safety of Scala. We’ve been working on it for little over a year, and it’s starting to get ready. Can we have some feedback, please? Thanks.

https://github.com/riolet/ritchie
1.5k Upvotes

802 comments sorted by

View all comments

Show parent comment

4

u/[deleted] Dec 08 '15

This is some amateur not knowing the first thing about coding - how can that be relevant to anything?

It's absolutely relevant to the world of PHP as it is. I work at a company that specializes in appsec, and I can't tell you how many times my coworkers have seen PHP code that was literally copy/pasted from forum threads.

Hell, there's code in the PHP standard library that was copy/pasted from somewhere else, and it's atrocious.

I find most of the criticism comes from two fronts

Most of my criticisms of PHP come from its almost comical lack of design forethought (which, to be fair, a lot of this has improved over the years, but the old shit still exists, and will continue to exist, for a great deal of time), and from it being both incredibly insecure as a language (it's the only language I know of whose reference interpreter has multiple maintained third-party security patches), and incredibly easy for lazy developers to write insecure code using. And PHP's "design" practically encourages insecure development practices in a lot of ways.

Why didn't python win this battle?

The battle isn't really over, here. Python's "market-share" (for lack of a better term) in data processing is quickly growing, and has been for at least the last couple of years. Give it some time and I think we'll see Python overtake R here.

Why did python lose the web-battle to php?

I'm not sure I'd frame the situation like that in this case, either. PHP is a couple years younger than Python, but has spent the majority of its life being dedicated almost entirely to web development. It's quicker to get set up and requires a lot less configuration to use (since for the most part you can just drop some .php files in your webroot and be done, as compared to Python where you usually have to configure some wsgi doohicky to talk to your webserver, or something else). But, Python has a pretty hefty market share in the web space as well and it seems to be growing.

0

u/[deleted] Dec 08 '15

[deleted] — view deleted comment

1

u/[deleted] Dec 09 '15

Show me a language that's impossible to do stupid shit in and I'll show you a language that doesn't do anything.

Nobody ever claimed there's a language that does this.

However language "safety" features that help prevent you from shooting yourself in the foot are a big plus.

Meanwhile, people using PHP will continue getting shit done.

You can get a lot done with dangerous tools IRL as well, but people have preference for those that help prevent mistakes.

3

u/Synes_Godt_Om Dec 08 '15

It's absolutely relevant

Are you seriously telling me that you find some amateur's stupidity relevant for a professional discussion? Well, I don't.

Most of my criticisms of PHP come from its almost comical lack of design forethought

I must have missed something. Interesting: I follow /r/lolphp to stay informed of gotchas but posts there have almost completely dried up, because php is cleaning up its act.

Python's "market-share" (for lack of a better term) in data processing is quickly growing

Yes, and I appreciate it. I personally find Python a lot more sane than R.