Are you a PHP developer looking for a job? Make sure you check out my project, https://phpforhire.com which is in beta, and will allow you to post a profile of yourself that will be searchable online. #php#hiring#fedihired#fedihiring
My first #PHP was 8.0, still in school, and I confess that I began learning it with the prejudice of it being a junky, terrible language everybody was making fun of. Fast forward ~1 year later, after finishing my internship, where I used full stack #Laravel mainly, and having discovered that not only it wasn't that bad, but really a pleasure to work with. Not perfect, but perfectly suitable for its use cases and, what's perfect anyway? So reading this has been a joy. :D https://developerjoy.co/blog/php-doesnt-suck-anymore
@array@hydrian@blu256 Do you assign data to Dto/Model classes (for better editor integration) or just keep it as a HashMap of some kind? In PHP I've been lazy and just keep everything as an array, even though for type support casting to a Model class would be better.
@ntha@hydrian@blu256 No, my models declare the attributes (mapped to the database ones), with constructors and getters/setters. That way I can pass the model objects through, for example, factories and interfaces (I use generics) up to the views. In this I was clearly "inspired" by the way say Laravel implements the MVC model. I'm just a noob so take this with a grain of salt, I'm probably doing more than one thing wrong or at least, not the best way possible. ;)
If you were about to start a medium-sized #PHP project, what would you choose as an #ORM, and why? It should be something stable and well maintained. If the business takes off, then there should be no need to replace that layer.
Caveat: imagine that Doctrine and Eloquent haven't been invented yet.
@zimzat yeah, on the surface level things seem to be attractive, but as you go further and deeper, facepalms emerge. Some dbal & a custom data mapper will probably be the start.
I use Doctrine on my day-to-day work, and have used Eloquent before. Eloquent I liked up to some point, but can't say that for Doctrine. I wish I had more time to build something like Eloquent but with less magic and bloat (simple to use but not trying to do everything imaginable)
@oliver I mean.. the way you put it, the data mapper is only convenience probably. I think valinor supports stuff like nested levels that ocramius/GeneratedHydrator doesn't for example. Not sure 100% for either.
Personally, I would not consider writing my own data mapper, just for the sake of not losing time with the project.
Recently, I favour the notion of "first version is probably throw-away code" and just try to make it work. It all depends on what level you design things, I guess..
@derflocki there are a couple reasons why I do not use SQLite. First the package needs no dependencies, two, the feature was already present in the package like 7 years ago I only updated the UX around it and last but not least I seldom encounter CSV that adheres fully to the draft/informal RDC. Hence using the SQLite extension would not solve CSV parsing in real world IMHO.
Non riesco a configurare il server integrato di eclipse PHP su ubuntu based. Quando aggiungo un modulo e ne faccio il publish non viene copiato tutto il contenuto nella tmp del plugin, non permettendomi di testare gli script. Viene copiata solo la cartella di root del modulo, ma resta vuota. Non capisco dove sbaglio.
@maxalmonte14@sirber It's honestly the most boring modern language. Java with less crappy syntax. There's some bits of it that are weird, but otherwise it's just kinda... Fine? Not exciting or interesting, just... Fine.
@heiglandreas "Those aren't dependencies of your application. Just tools..."
Fair, but also, if I remove development dependencies from the my projects if they're just tools then those projects no longer have development dependencies.
Which I guess leads me to "what are development dependencies for if not things needed for development?"
From the small to the mighty, #TYPO3 developers are all part of a bigger story. 🧡
We're expressing appreciation for all the developers who contributed to the #TYPO3 project in the last month, and presenting April’s most important names and some numbers: https://typo3.com/blog/april-2024-developer-appreciation-day-dad