Better HN
topnewbestaskshowjobs
Log inSign up

fcarletti

4 karma · joined Jul 15, 2019 (7y ago) · 3 submissions

[ my public key: https://keybase.io/fernandocarletti; my proof: https://keybase.io/fernandocarletti/sigs/5dutWlK0FLEaspGYDvJOtdeNargFKO_c7Jt4Bmybmxc ]
Submissions

comment 8mo ago · link · parent

That’s seems to have give you a lot of fun and learnings, writing everything by yourself forces you to understand how things work, kudos for that!

The code is very well organized, I’m on my phone and could easily navigate it.

But some stuff twists my nose: 1. No dependencies is cool up to some point, I personally do not try that so I avoid reinventing the wheel. You are prone to have many bugs the community already solved, the trade off end up not being worth the hassle.

2. I see you have many classes but many ones with only static methods. That’s basically global functions that can’t be easily mocked for unit tests and create highly coupled code.

3. Lack tests. Even though you may know the functionality/code from top to bottom, no tests make you prone to break unrelated stuff when writing new code.

Again, nice to see it, awesome you shared! If you want to step up the game https://phptherightway.com/ has a lot of material and references for that.

comment 3y ago · link · parent

It's not about being vendor agnostic, but being able to manage resources outside of AWS. in my use cases, our platform integrated GitHub, Auth0, AWS, kubernetes and so on. Everything managed via Pulumi, what would not be feasible if we were just on Cloudformation.

When trying to achieve a cloud agnostic approach, there are some other tools focused on that (such as serverless framework).

comment 3y ago · link · parent

"what exactly were you expecting?"

Exactly my thoughts. In the end it gets up to the developers are to blame by not taking time to upgrade their projects and end up with a legacy project.

PHP does the deprecation and backward compatibility better than many languages (hello Python!) but still some effort is needed as a developer to ensure your codebase is updated. I'm not even talking about the architecture here, which of course is harder to change, but language features.

And there is Rector to automate most of that!