▲ | 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. | ||||||||||||||||||||||||||||||||
|