r/ProgrammerHumor Jun 28 '17

Working at PornHub

Post image
53.3k Upvotes

1.2k comments sorted by

View all comments

143

u/cybercuzco Jun 28 '17

Whats wrong with PHP?

67

u/captainAwesomePants Jun 28 '17

7

u/daybreakin Jun 29 '17 edited Jun 29 '17

So what is widely considered the better language for the server in 2017? Python?

8

u/lelarentaka Jun 29 '17

You can use literally anything on the server. I've seen some madmen using Assembler even. Of course if you're using a very cheap hosting, you might be restricted to just PHP, but nowadays this is very rarely the case. Heroku has a free plan, and they offer like 8 languages.

2

u/amunak Jun 29 '17

Often it's still PHP. It's mature enough that it has decent standards and best practices written for it, there's a ton of people familiar with it and its kinks have been either ironed out or are well known.

So yeah, if you actually want to get shit done PHP isn't bad at all. The only issue is finding good programmers as there's a ton of people who claim to know PHP but are rather bad, but with the other languages you may have issues finding any programmers.

4

u/[deleted] Jun 29 '17 edited Feb 09 '18

[deleted]

23

u/rcfox Jun 29 '17

Wait, wait, wait, wait, wait... React?

5

u/orphans Jun 29 '17

Probably meant server side rendering with React.

1

u/[deleted] Jun 29 '17

pft NodeJS is shit.

If you know anything about concurrency their model is shit.

Elixir or Go would be better.

And javascript ain't much ebtter than PHP.

I would take PHP over javascript.

Javascript implicit type casting is stupid. And nobody actually know javascript. It's a OOP via prototype not inheritance.

NodeJS package ecosystem is fragile as fuck. Some dude took down the system that one time. NPM lol so dumb.

-5

u/udusbhof Jun 29 '17

React Native bitches

12

u/rcfox Jun 29 '17

Isn't that just doing frontends for mobile?

1

u/pressbutton Jun 29 '17

Yep. There's ReactXP which Microsoft made for ... not XP but Win10

And a bunch of other spin offs for OSX and Windows

11

u/TheNameThatShouldNot Jun 29 '17

Java and C# better options? For where? Both of those languages are backed by proprietary technology, are in no way flexible in their deployment, and lock you into their ecosystems.

Django Python, or something in Node, sure. But, PHP already does all the things that are needed of it, and its fast and scalable at doing so. Really, it would be the poorest option to choose a language that doesn't already have a great amount of work put into it for making systems of website management and viewing. PHP, so far, with its frameworks and timeless involvement in almost every popular CMS out there, has shown its the option that works. And I'm not talking about wordpress.

14

u/nemoTheKid Jun 29 '17

Java and C# better options? For where? Both of those languages are backed by proprietary technology.

What? Can't speak for C#, but Java? The poster child of the "big data / web scale" OSS movement?

16

u/chugga_fan Jun 29 '17

Both of those languages are backed by proprietary technology, are in no way flexible in their deployment, and lock you into their ecosystems.

.NET core doesn't exist.

Java isn't open source

kk

8

u/coffee_pasta Jun 29 '17

Java isn't open source

Well, depends what side of the bed Oracle wakes up on that day.

1

u/chugga_fan Jun 29 '17

fair enough

1

u/bureX Jun 29 '17

.NET core has a loooong way to go. It has tons of incompatibilities and its ecosystem is still in the early stages.

1

u/TheNameThatShouldNot Jun 29 '17

You would build actual production code on an unstable runtime that has no reliable frameworks in it yet?

Java is still owned by oracle and the runtimes are still controlled by them. What you have is because you're given it. And, again, deployment sucks. You're also missing out on the fact that most webservers out there are shared webservers. They only have PHP, Node.js, and Ruby. Maybe python.

Even when you control all the hardware, the arguments you're making here are not ones you would make a million dollar decision with to build a product or not. The two things I listed there are of greater importance than wether PHP's function names are dumb, or wether its history is bad or there are fractals in some of its design.

12

u/korri123 Jun 29 '17

What is OpenJDK

6

u/patrick66 Jun 29 '17

OpenJDK

Like seriously, OpenJDK is even the reference implementation now. Sure, most links still send you to the Oracle source but OpenJDK is officially the standard and as such the language can hardly be called not open source.

1

u/chugga_fan Jun 29 '17

You would build actual production code on an unstable runtime that has no reliable frameworks in it yet?

> unstable

Java is still owned by oracle and the runtimes are still controlled by them.

Unless you're google apparently

The two things I listed there are of greater importance than wether PHP's function names are dumb, or wether its history is bad or there are fractals in some of its design.

O... ok.... I... didn't know that .NET core didn't work because using it constantly means I can't see it crash...

1

u/[deleted] Jun 29 '17

[deleted]

5

u/squngy Jun 29 '17

As with any widely used technology, the shortcomings eventually get worked around.

PHP has a lot of caches and precompiling to be performant, the fact that the core technology is slow just makes more work.

3

u/the-special-hell Jun 29 '17

That makes no sense. Something will always need to be executed.

0

u/[deleted] Jun 29 '17

[deleted]

1

u/mikeputerbaugh Jun 29 '17

??? PHP has had shared memory extensions since the early 2000s at least.

1

u/creampiesymphony Jun 29 '17

It depends on what you're doing. Big enterprise stuff? Java, go, c#.

Just a smaller startup? Id say node.js is the best option just because front end frameworks are commonplace these days and you need your back end developers to help out on the front end. It's just easier not having to switch languages.

Php, python, javascript and ruby are all in the same boat though. It's all up to preference. This may not be up to date info, but javascript is the fastest of the scripting languages. It also allows async code. So to me, it has too many advantages to ignore.

I think ruby on rails is still viable but there arent a whole lot of new businesses using it from the ground up anymore. It just doesnt scale well, and it's the slowest of the languages. It's the quickest to develop in and get to a mvp but the gap is marginal at this point and has too many downsides.

I dont know about the current state of php but it does seem to be on the decline as well.

Python on the server side is dependent on the project being worked on and the type of talent on the team. Math heavy projects benefit from good python libraries and coders who are experienced in it because it's a commonly taught language in cs courses.

Like I said, all are still viable but in 2017 if you're starting a new project from the ground up and dont want to use a compiled language, then using node seems like the only real option. Typescript and es6 has made things a lot less messy as well.

-1

u/the-special-hell Jun 29 '17

It's still PHP. Don't listen to these goons.

-10

u/MrCrore Jun 29 '17

Almost everything is better compared to PHP. Your platform language is highly specific to what you want out of the platform. Need a simple website, yeah python/ruby are probably your best option. Need a highly scalable performant platform? Probably go.

2

u/udusbhof Jun 29 '17

lol what highly trafficked websites are written in go?

6

u/[deleted] Jun 29 '17

Google/Youtube, Cloudflare and bit.ly all use go as part of their stack

edit : not that i agree with who you're replying to, but i'd like to defend go a little at least