There’s some very hacky solutions to get PHP to work on Lambda. It would be amazing to see PHP get a place there, especially after seeing all these recent “serverless” posts.
I (kinda) jokingly went to ##php on freenode and was asking about writing a python script to run PHP from the shell so I could encapsulate all of WordPress inside a Lambda function, just as an experiment.
They were very, very, very offended, very, very scared, and very annoyed.
I think many of the PHP folks would enjoy Python if they forced themselves to give it a run for a few months. I was certainly one of those once upon a time.
While I don’t appreciate their position on it, I also think that it’d be great if it was supported in lamba better. It’d help me deprecate that code faster heh
I agree! I went from PHP to Node.js. While I love Node for many reasons, Python just works better for AWS Lambda. In general it’s less code, and call me crazy, but there’s just something nice about being able to read your code from top to bottom and know what it does
For sure sir. Honestly I’m not much more fond of JS devs either though. I feel like the majority, though not vast majority, of node devs, are a bunch of cowboys with shit code.
Don’t get me wrong about the advent of Node though, I think it’s great and has plenty of advantages. I use its output nearly daily and produce some code in it at least once a week. I’m just disappointed at the maturity of other folks in the community; just like I am with PHP.
I started out thinking the same but have been rewriting my python functions in node since the release of support for node 4.x in lambda. With es6 features (out of the box or via babel), specifically promises, the code is significantly cleaner than the old pyramid shaped callback mechanisms. Parallel execution of external service without having to deal with process or thread management pushed it over the top for me.
Oh, and I’m not a “cowboy with shit code”. I worked at Amazon and AWS. There’s a lot of smart productive devs out there writing in JS.