Live data from Hacker News

PHP is the new JavaScript?

mux.com

11–20 of 88 posts

Re: PHP is the new JavaScript?

#11

I find it funny the author choose Symfony as a framework to "shudder" about. Considering the base of Laravel is Symfony. The rest of the article seems to be more about AI code editing and MUX video players then PHP. So I am not really sure what I am supposed to take from this post.

Back in the day we used Symfony at work. I have a vague feeling that some of my coworkers looked down on Laravel. Less dependency injection, more weird magic.

Re: PHP is the new JavaScript?

#12
post #9

Why choose between PHP and JavaScript when you can write code in CASSIS, a language that runs in the syntactical intersection of both languages? For example: if (js()) { /* javascript */ } else { /* PHP */ } https://github.com/tantek/cassis

That looks so... unholy...

Re: PHP is the new JavaScript?

#14
post #8

> What happened? Well. Laravel happened (and has been happening). Funny, because Laravel was one of the things driving me away from PHP, in the same way that Rails drove me away from Ruby. PHP was becoming a salvageable language with some of the 7.0 changes, but if you don't dump 1000 pounds of gunk on top to make the easy things hard and there hard things dang near impossible, then you're not a "web artisan", I gues…

Hearing these negative laravel opinions is super interesting. As someone who absolutely dreads working with php, I’ve always been curious about laravel cause people seem to love it so much.

Re: PHP is the new JavaScript?

#15

I find it funny the author choose Symfony as a framework to "shudder" about. Considering the base of Laravel is Symfony. The rest of the article seems to be more about AI code editing and MUX video players then PHP. So I am not really sure what I am supposed to take from this post.

Laravel is really not great for some use cases, while with Symfony you have the flexibility of doing the things the way you want.

For example, in Laravel you have the dependencies sprinkled all around the app and with Eloquent you kind of need to use active-record.

I am not a big fan of Laravel but I think it is a great tool to build websites, not sure about data heavy backends.

Re: PHP is the new JavaScript?

#16
post #8

> What happened? Well. Laravel happened (and has been happening). Funny, because Laravel was one of the things driving me away from PHP, in the same way that Rails drove me away from Ruby. PHP was becoming a salvageable language with some of the 7.0 changes, but if you don't dump 1000 pounds of gunk on top to make the easy things hard and there hard things dang near impossible, then you're not a "web artisan", I gues…

"the ORM didn't support composite keys"

Well composite keys are a bad idea, so maybe it had a reason for that.

Re: PHP is the new JavaScript?

#17
post #11

I find it funny the author choose Symfony as a framework to "shudder" about. Considering the base of Laravel is Symfony. The rest of the article seems to be more about AI code editing and MUX video players then PHP. So I am not really sure what I am supposed to take from this post.

Back in the day we used Symfony at work. I have a vague feeling that some of my coworkers looked down on Laravel. Less dependency injection, more weird magic.

Count me as one of those disgusted by weird magic people. Unfortunately for us, the majority seem to love it. The more coding resembles throwing spaghetti at the wall and seeing what sticks, the happier they are. "What do you mean this could have been 10 lines and no frameworks; that can't possibly be complex enough [for some ETL thingy]."

Re: PHP is the new JavaScript?

#18
I don't understand this post; the author is just shilling Laravel; the entire post is an advert for Laravel with a clickbait title.

The content of the article is describing the concept of a full stack framework, as if Laravel is the novel solution to it.

How in god's name is this tripe upvoted on HN?

Re: PHP is the new JavaScript?

#19
post #9

Why choose between PHP and JavaScript when you can write code in CASSIS, a language that runs in the syntactical intersection of both languages? For example: if (js()) { /* javascript */ } else { /* PHP */ } https://github.com/tantek/cassis

https://tantek.com/cassis.js

I don't know what to say, just that I wish I hadn't read this code

Re: PHP is the new JavaScript?

#20
Money really changes people's perception.

For more than 1 decade Silicon Valley bros considered PHP a bad,irrelevant, legacy programming language.

Now, with a PHP framework receiving millions in funding, PHP is cool again.

Post reply on HN