Remix.run Logo
edem 3 days ago

You don't have to use PHP so there is no reason to mock it. You just know it is shit and you move on. Unfortunately you __have to__ use javascript sometimes (or always) so there is reason to mock it. That's the reason why people always mock JS. It is omnipresent and you have to touch it with your bare hands.

hoppp 8 hours ago | parent | next [-]

Yup, Js can't be avoided. I was just doing a desktop app in golang.. and the best way to have cross platform ui? Webview. I tried all the frameworks in go and nothing comes close. I could choose another language to write my business logic in and not go but still, it probably ends up using a webview for the UI.

Its not even heavy anymore because its just the OS native webview, unlike electron, it doesn't bundle a browser so the base app is just 3.3MB, while if I use GPU to render the Ui the app I ship starts at 60MB

MaulingMonkey 3 days ago | parent | prev | next [-]

And to back up your point: Whenever someone in my circle does have to use PHP (job, legacy nonsense, etc.) they absolutely do mock it. They also mock the codebase they work on for similar reasons. Part venting, part communication of the footguns - such that others might learn from what they had to learn the hard way, and perhaps part bribe - that others might share their own footguns in commiseration and trade.

userbinator 2 days ago | parent | prev | next [-]

You always have to mock if you want to do extremely localised unit testing.

(Sorry, could not resist...)

archerx 3 days ago | parent | prev [-]

I’m sorry but Personal Home Page is not shit. It’s quite nice, it’s like using a comfy version of C designed for the web.

dahart 2 days ago | parent | next [-]

Personal Home Page is crappier than PHP: Hypertext Preprocessor. :P Reputations take a long time to fix, and PHP earned a bad rep for its security problems around ~2006. It’s also a language that doesn’t worry about being pure and covering every minor conceivable inconsistency that never comes up in practice like the rabbit holes some other languages go down. PHP is more focused on just getting things done, so don’t take the mockery personally, in a way it’s a compliment.

archerx 2 days ago | parent [-]

It will always be Personal Home Page to me. Those lame open source names that have the acronym in the name are 1000000% more cringe.

I agree with you about the rest :)

edem 3 days ago | parent | prev [-]

You can have your opinion of course but rhe majority disagrees.

archerx 3 days ago | parent [-]

Doesn’t mean that they are right.