HN user

joeymckenzie

25 karma

I like computers and rust.

Posts3
Comments11
View on HN

Howdy HN!

I've been recently jumping into PHP and wanted to share a few thoughts I had that I hope are helpful for anyone looking to pick up the language. I've been having a blast learning the ecosystem and stumbling my way around, so I got my thoughts out on (electronic) paper about my experience building my first public package. Definitely a lot more to learn. Cheers!

Probably. I tend to use both interchangeably, though probably incorrectly. I think either could describe the use case here, in the sense the library is binding to the API for Open Brewery DB. SDK could fit the bill here, and that's ultimately the hope if I get it to a place where it would be the "official" way to use the API via PHP.

Appreciate the feedback!

I'll be the first to admit I have a tendency to C#/Java-ify code in languages that I attempt to learn (could definitely argue it's a bad habit) due to nearly a decade of working with them. Any advice you might have to make things a bit more idiomatic to modern PHP? Always looking to improve the code however I can.

Thank you! I've found modern PHP to be quite a joy to work with, given how much it gets dunked on in the greater tech community. It has some awesome tooling that's on par with other the languages/ecosystems I work in, and I'm always looking for a reason to write more it now.

Absolutely agree, on the todo list. Only using PHPStan/Pint at the moment, though I've looked a bit into the other tools as well and definitely want to get them involved soon to help me as a I go. I've been a loyal JetBrains guy for almost a decade, and I gotta say... PHPStorm is up there with IntelliJ competing for best IDE. I use Rider daily at work, so any chance I get to use familiar tooling in another language feels like it helps level out the learning curve a bit.

Thank you, I really appreciate it!

It can definitely be daunting putting something out into the wild for people to see, but I've found the constructive criticism (in most cases) that comes with the territory can only help improve whatever it is I'm working. Gotta take it all in stride.

Thank you for the feedback!

I'm still fairly new to PHP, coming from the .NET/TypeScript world. Unfortunately, it wasn't ChatGPT generated and I'm well aware there's still a lot to learn. I'm always looking for ways to improve, so if you'd like to create a few issues, I'd be more than happy to address them and get the chance to dig deeper into PHP.