If like me you have to write #PHP code but can't run it on your machine because company decision :nard:, an online PHP shell might be useful to tinker small stuff. I found this one: https://3v4l.org
=> More informations about this toot | More toots from meduz@m.nintendojo.fr
Alternatively, as soon as I have time at work (worst case scenario, will happen during Summer), I might try to run #PHP in the browser using #WebAssembly (https://github.com/seanmorris/php-wasm).
Won't be able to call remote APIs but I'll be able to at least do some stuff faster (at least form validation). 🤞
=> More informations about this toot | More toots from meduz@m.nintendojo.fr
@meduz What about virtual machine with PHP? Also banned?
=> More informations about this toot | More toots from dusoft@fosstodon.org
@dusoft Yes. :nard:
But Node is allowed so we can run front-end development stuff… but of course querying the PHP remote dev server from the browser does not work, so I have to upload / rsync files to be able to test. 🙃
And today I had a situation where session tokens granted by yet-another-system were never working because their server timeout, so I was like “is it my code, is it the laptop network, is it the remote system, is it planet alignment”.
Super slow and painful. :nard:
=> More informations about this toot | More toots from meduz@m.nintendojo.fr
@meduz Sounds like dev environment is more like dev hell.
=> More informations about this toot | More toots from dusoft@fosstodon.org
@dusoft Yup it is, unless you are doing only UI work that does not need server data. And the arguments for this restriction are pointless (“we don't trust developers to write code that needs to work in another environment 🤡”).
But I still prefer this over previous work with React all over the place (here it's old school PHP + Vue).
=> More informations about this toot | More toots from meduz@m.nintendojo.fr
@meduz I would be careful there what you wish for: https://infrequently.org/2024/11/if-not-react-then-what/
Also calling PHP old-school... More like it's been stable part of the web for 25+ years. Let's see where frameworks like React and Vue are around after 25+ years.
=> More informations about this toot | More toots from dusoft@fosstodon.org
@dusoft Rephrasing: the PHP we do is old school, which doesn't mean PHP is (Laravel is my go-to backend of choice), and me saying Vue is far ahead of React doesn't mean I only do Vue.
Almost all my side projects are progressively enhanced, using 0 JS framework. :n8rd:
=> More informations about this toot | More toots from meduz@m.nintendojo.fr
@meduz Great, keep doing good job!
=> More informations about this toot | More toots from dusoft@fosstodon.org
@meduz Wait, wait, your company has you writing PHP code but won't let you run that code locally???
=> More informations about this toot | More toots from Crell@phpc.social
@Crell Yup, exactly. Not a “company”, but a government entity. I slightly elaborate in https://m.nintendojo.fr/@meduz/113585629663593437 and https://m.nintendojo.fr/@meduz/113588681923706449.
=> More informations about this toot | More toots from meduz@m.nintendojo.fr
@meduz Uh, yeah, hostile work environment. If we had IT unions I'd say call your union rep. That's grossly unprofessional. And self-defeatingly stupid, as they're guaranteeing more bugs in production.
=> More informations about this toot | More toots from Crell@phpc.social
@Crell Yes it definitely is. It also make devs aiming at lower quality software.
I'm new to the org so it's still very early for me to try to change things. Also, the decision and power dynamics seem screwed, so for now my only goal is to practice more plain PHP and Vue, then I'll consider switching job if nothing changes and if I stop learning/practicing things I'm interested in.
=> More informations about this toot | More toots from meduz@m.nintendojo.fr This content has been proxied by September (ba2dc).Proxy Information
text/gemini