GromNaN
@jerome.tamarelle.net
410 followers 120 following 160 posts
PHP Developer MongoDB Driver & Symfony Core https://jerome.tamarelle.net/
Posts Media Videos Starter Packs
Reposted by GromNaN
jerome.tamarelle.net
They don't want to admit they are hosted on AWS to stay respectable in their domain?
jerome.tamarelle.net
It's always nice to see how a feature we've created is being used. This commit replaces the twig extension runtime classes with attributes, reducing the number of lines of code by 30% and cutting the number of classes in half. github.com/benjaminjona...
Update twig extensions · benjaminjonard/koillection@17c7e98
github.com
jerome.tamarelle.net
Ryan has brought a lot to PHP, through his hard work, his always friendly manner and his vision. He's an example to many of us. He leaves us with tons of code he wrote and shared in open-source for at least 15 years, which we'll continue to develop with him in mind.
symfony.com
Symfony @symfony.com · Aug 28
🙌 Remembering Ryan Weaver: Teacher, Core Team Member, Friend
➡️ https://symfony.com/blog/remembering-ryan-weaver-teacher-core-team-member-friend
Reposted by GromNaN
burrito.space
website: "to log in, please press the notification in the mobile app"

mobile app: press notification

website: ok welcome

mobile app: "OMG SOMEONE JuST LOGGED IN, WERE U HACKED?!"
jerome.tamarelle.net
"Down migrations are not possible for 100% of up cases
and you can therefore not rely on this feature to work. Providing this feature only adds a false sense of safety that can bite you hard." — Benjamin Eberlei

The "down" method exists in doctrine/migrations only for backward compatibility.
freek.bsky.social
🌟 Why I don't use down migrations
Why I don't use down migrations
Every once in a while, someone opens a PR on one of our open source packages adding a `down` function to the migration. I usually close those PRs fast with a thank you and a message “We don’t use down migrations in our projects”. While down migrations might seem like a safety net, they're often a false comfort that potentially creates more problems than they solve. Instead of explaining this in every PR separately, let me share why we don't write down migrations and what we do instead. <!--more--> ## The untested code problem Down migrations are unique in that they're probably the least tested code in most Laravel applications. While features, APIs, and business logic will get tested in most projects, down methods tend to be written once and then forgotten. Think about it - when was the last time you ran a down migration in your test suite? Or verified that complex data transformations actually reverse correctly? Probably you don’t do this. Testing rollback scenarios is hard and often feels like preparing for something that rarely occurs. ## What about new data? The tricky thing about rolling back migrations is that data created after deployment doesn't simply disappear. When you have a busy application, users will interact very fast with your database after deploy. If you've added a new table and users have created records, rolling back means that data has nowhere to go. When you've transformed data from one format to another, the original format might be lost forever. Even seemingly simple changes like splitting a name field into first and last names become complex when you need to reverse them after users have updated their information. ## Keeping code and database in harmony Your application code expects a certain database structure, and when the database schema changes without the code changing too, things can break in unexpected ways. Models might reference columns that no longer exist, controllers could query tables that have been dropped, and validation rules might check fields that have vanished. The complexity multiplies with modern deployment strategies like container orchestration and blue-green deployments, where different parts of your system might be running different code versions. ## Go forward At Spatie, we've embraced forward-only migrations for many years now. When something needs to be reversed, we will first think carefully about the appropriate solution for the particular situation we’re in. If necessary, we’ll handcraft a new migration that moves us forward rather than trying to reverse history. ## In closing The next time you're tempted to write that down method, ask yourself: will this code ever run? Will it actually work if it does? And most importantly, wouldn't your time be better spent making sure the up migration and new code is rock solid? The choice is yours!
freek.dev
jerome.tamarelle.net
Very well explained. I've never had to run a down migration. In fact, I always make sure that I have a version of the code that is compatible with the 2 states of the database. This is essential for zero-downtime deployment.
jerome.tamarelle.net
L'appel à conférencier est ouvert pour @codeursenseine.bsky.social LA conférence tech à Rouen. Thématiques :
UX/UI
Cybersécurité
Langages
Backend
IA & Data
Cloud & DevOps
Web et Mobile
Agilité & Méthodologies
Atypique & Découverte
conference-hall.io/codeurs-en-s...
Codeurs en Seine 20 Novembre 2025 call for papers
Submit your proposal to Codeurs en Seine 20 Novembre 2025 call for papers.
conference-hall.io
jerome.tamarelle.net
Congratulations!
jerome.tamarelle.net
You'll beat all your PR with this beautiful machine.
jerome.tamarelle.net
How does it works?
Reposted by GromNaN
jolicode.com
Nous sommes ravis d'accueillir la core team de Doctrine, l'ORM phare de PHP, dans nos bureaux à Paris 💫 pour leur meetup annuel 🤝

📯 www.doctrine-project.org/2025/07/01/...

#doctrine #php #symfony #oss #orm
Logo de Doctrine
Reposted by GromNaN
asgrim.dev
Hey folks 👋 , I'm available to hire!

💼 Part time, ~4h/day
⏳ Happy to work remote EU/UK/US
✅ I am a software team leader, Java/PHP/Rust/C/etc
🧑‍💼 Experience in avionics/finance/insurance/education/gov

If you would like to talk more and see how I can help your team succeed, DM me and lets chat! 💬
jerome.tamarelle.net
That's an impressive compression algorithm, going from 552KB PNG to an int of 64 bits. You get an unbeatable compression ratio of 99.9985%.
jerome.tamarelle.net
The # gives a very high number. Do you store all the generated images somewhere?
jerome.tamarelle.net
I love writing tech docs in Markdown. The syntax is natural to me, I don't have to click to format things. The AI tools help me.
But when it comes to collaboration, Google Docs is definitely the best. I found that you can easily import/export Markdown.
workspaceupdates.googleblog.com/2024/07/impo...
Import and export Markdown in Google Docs
What’s changing In 2022 , we introduced expanded support for composing with Markdown in Google Docs on web. Today, we’re introducing highly-...
workspaceupdates.googleblog.com
jerome.tamarelle.net
This is the state of the art for storing dates in a database, UTC should be the default way of saving date times.
And sometimes the original timezones need to be stored along with the date. Use a second field for the TZ.
jerome.tamarelle.net
Thank you! Do you know who is the genius that created this model and how he made the instructions document?
jerome.tamarelle.net
I'm not used to using interfaces on doctrine entities, but that's probably a good use-case.
jerome.tamarelle.net
I haven't seen it used so far.
Reposted by GromNaN
derickr.phpc.social.ap.brid.gy
"PHP, 30 years of generating strings on the server"

#php #30yearsofphp #phpverse
jerome.tamarelle.net
Abandonnez pecl, utilisez pie pour installer vos extensions PHP. L'extension MongoDB est supportée depuis la version 1.21.0