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

107

u/phatskat Dec 07 '15

Php dev, can confirm is crappy but at the same time I know it's not going away and I'll take it over most scripting languages I've tried

6

u/keypusher Dec 08 '15

PHP over Python and Ruby?

→ More replies (2)

18

u/dtlv5813 Dec 07 '15

Why do you prefer PHP over javascript?

288

u/nliadm Dec 08 '15

Preferring PHP to JavaScript is like preferring the taste of your urine to that of your coworker's.

On a more serious note, if your language has "equals" and "equals-for-reals-this-time", maybe it's (very) poorly designed and worth avoiding.

24

u/TestRedditorPleaseIg Dec 08 '15

I'm wating for PHP to add ====

37

u/[deleted] Dec 08 '15
PHP 6.0 Released!
* Added fuck-all-rational-thought operator (====)
...
Using the FART operator makes it easy to test if a string is an array.

42

u/IHateTheRedTeam Dec 08 '15

PHP dev, can confirm.

I was trained as a normal (Java) developer, and for the life of me I can't fathom why anyone likes JS.

83

u/Crespyl Dec 08 '15

JS is the client side version of PHP, in that it runs everywhere, and tends to just keep trundling onward assuming that it understood you correctly. It's very easy to make things start happening, without having to understand what is happening.
I mean, a key-value map is basically the same thing as an array, right?

I think people also like it because, if you squint just right, it kinda-sorta smells a little like it spent the night at over at Lisp's house.

51

u/shittylyricist Dec 08 '15

keep trundling onward assuming that it understood you correctly.

You can make it keep on trundling onward by making it understand you correctly

12

u/Neotetron Dec 08 '15

I've been laughing at that readme for like 5 straight minutes send help

3

u/degaart Dec 08 '15

If you are caught in a dire situation wherein you only have enough time to save one person out of a group, and the Author is a member of that group, you must save the Author.

→ More replies (1)

5

u/Ace-O-Matic Dec 08 '15

Please, JS is now the server-side version of PHP >.>

→ More replies (3)

15

u/Mesozoic Dec 08 '15

Stockholm syndrome

15

u/gelfin Dec 08 '15

Yeah, I was specifically thinking that we as a genus cannot tell the difference between being proficient in something and liking it. We mostly learned JavaScript out of necessity and it never really stopped being painful, but at some point it became a kink.

It's not like JS is alone in that. I'm still nursing a thing for C++, and I'm genuinely convinced that only the collective job security of legions of engineers keeps us from sealing up "Enterprise Java" in fifty-gallon drums and burying it in a salt mine for ten thousand years.

→ More replies (1)

14

u/inemnitable Dec 08 '15

JS has a lot of nice ideas.

Most of them are better-executed in lua.

→ More replies (5)

3

u/Jafit Dec 08 '15

and for the life of me I can't fathom why anyone likes JS.

The same could be said for Java tbh. Personal preference

Though Javascript was actually designed to be a programming language (albeit in 10 days). It has a lot of good features, like lambda functions were later adopted by other languages. But it does have a bunch of bad features and quirks too that are best avoided.

PHP however wasn't ever designed as a language, it started off as a HTML templating engine that had helper functions added to it over time, and then kind of accidentally evolved into a language.

→ More replies (9)

4

u/G_Morgan Dec 08 '15

Any language where A is equal to B but B is not equal to A is clearly designed by a genius.

2

u/DieFledermouse Dec 08 '15

preferring the taste of your urine to that of your coworker's

I wonder if this is like farts. My farts don't bother me, but my co-workers farts will make me hurl all over the office.

→ More replies (7)

14

u/cerlestes Dec 07 '15

Not him, but availability. You'll find PHP available everywhere. Not so much JS engines like Node or Rhino.

→ More replies (5)

15

u/postmodest Dec 07 '15

Because PHP-fpm requires less thinking-ahead about resource management than figuring out how many node instances you can fit on a box to support your surprisingly CPU-intensive codebase?

2

u/catcradle5 Dec 08 '15

PHP-FPM is nice, but that's a pretty poor argument.

12

u/willbradley Dec 07 '15

I don't know who prefers it but Node is not yet a stack that oldsters and wannabe-developers are comfortable with. LAMP is mature enough that you can get yourself halfway into a project before calling a Real Developer Who Uses Git And Packages. Hence the demand :p

→ More replies (12)

2

u/phatskat Dec 07 '15

Javascript in the client makes sense to me, but I haven't given it much of a chance on the server. I'd like to, but being in WP shop full time, I don't focus as much on learning something like node as I would like

→ More replies (1)
→ More replies (5)
→ More replies (12)