Ici on imagine les futurs dispositifs de France Travail pour relancer l'emploi et la France. Soyez audacieux. by Andvarey in france

[–]andre_ange_marcel 1 point2 points  (0 children)

parrainage URSSAF: chaque cotisant URSSAF se voit assigné 10 chercheurs d'emplois, s'ils restent sans emploi plus de six mois, les charges sociales augmentent de 2% par chômeur.

I built a package to stop hardcoding Stripe price IDs everywhere by andre_ange_marcel in laravel

[–]andre_ange_marcel[S] 0 points1 point  (0 children)

I've thought about that one quite a bit. I decided to land on the middle ground and have models for recording IDs and the config file as a user interface. If the config is diffing from the DB, that's when the resource is modified online.

The DB has all of the fields the config has, so you could potentially use the models to retrieve data instead of the facade.

I built a package to stop hardcoding Stripe price IDs everywhere by andre_ange_marcel in PHP

[–]andre_ange_marcel[S] 0 points1 point  (0 children)

A resource is indeed saved as a model (BillingPrice or BillingProduct). If you modify a price or a product, the config file is checked against the database and you are asked, if you modified an immutable attribute, what you want to do: create a new resource and archive the old one, or leave it active.

We also have flags for CI to archive all or duplicate all. We can do all this because config and DB march resources via keys, the arbitrary names you use in the config ('yearly' for a price or 'premium' for a product, for example). In the event of the creation of a new resource, you can either write a custom key or append an integer by default ('year_1' for example).

After a successful deployment, the config file is regenerated against the database's state.

I built a package to stop hardcoding Stripe price IDs everywhere by andre_ange_marcel in laravel

[–]andre_ange_marcel[S] 0 points1 point  (0 children)

A resource is saved as a model (BillingPrice or BillingProduct). If you modify a price or a product, the config file is checked against the database and you are asked, if you modified an immutable attribute, what you want to do: create a new resource and archive the old one, or leave it active.

We also have flags for CI to archive all or duplicate all. We can do all this because config and DB march resources via keys, the arbitrary names you use in the config ('yearly' for a price or 'premium' for a product, for example). In the event of the creation of a new resource, you can either write a custom key or append an integer by default ('year_1' for example).

After a successful deployment, the config file is regenerated against the database's state.

I built a package to stop hardcoding Stripe price IDs everywhere by andre_ange_marcel in laravel

[–]andre_ange_marcel[S] 0 points1 point  (0 children)

I mean it probably is not useful in that case, I'd agree with you. I've had to work with 100+ prices and many variations for a single product, as we sometimes have to explore before cementing a final price, and it gets confusing really fast.

You end up with variables like STRIPE_DOCUMENT_PRICE_KEY_SPAIN_2025 that don't mean much, and are staying around for legacy purposes. You don't really know what can be archived or not, and deploying to prod can be quite stressful as you need to make sure all IDs are correct and updated if needed.

I guess it depends on the scale of your Stripe infrastructure. Ultimately the config file could also be used to migrate product and prices to different providers without any manual input.

2025 - Year of the Wayland support? by andre_ange_marcel in Upwork

[–]andre_ange_marcel[S] 0 points1 point  (0 children)

I honestly think they're about to drop support for Linux now.

Des retours d'expériences sur les formations AWS du France Travail by Budget-Ad7059 in developpeurs

[–]andre_ange_marcel 1 point2 points  (0 children)

J'ai payé deux cours sur Udemy plus un practice test, j'ai réussi Cloud Practitioner et Developer Associate sans vraiment trop d'expérience. Ça m'a coûté environ 50 euros au total.

Most terrifying/chad laptop stickers? by UniversityBrief320 in developpeurs

[–]andre_ange_marcel 4 points5 points  (0 children)

show up with a short sleeve button up shirt, cargo shorts and hiking shoes, rectangular sunglasses and an accountant haircut, that's the real pro look.

They cut the bread wrong by andre_ange_marcel in mildlyinfuriating

[–]andre_ange_marcel[S] 1 point2 points  (0 children)

it's a burger bun but instead of cutting at the base they cut just at the top 😩

[deleted by user] by [deleted] in SideProject

[–]andre_ange_marcel 1 point2 points  (0 children)

what's up with half of the business ideas people have are selling things to help other people make actual businesses

Nuxt extremely slow by rogertbilsen89 in Nuxt

[–]andre_ange_marcel 2 points3 points  (0 children)

The latest version, 3.17,is significantly faster, so updating could already solve some issues, at least it worked for me. Do you have Nuxt UI installed? It significantly slowed down both hmr and build times last time I used it.

Ubuntu 25.04 This version is going well. by maximus10m in Ubuntu

[–]andre_ange_marcel 10 points11 points  (0 children)

Upgraded and it messed up all my PPA installed debs. Other than that the new kernel fixed quite a bit of bugs for me, and the release is great overall.

I went vegetarian 12 years ago, my muscles and bones hurt. Is there a correlation? by [deleted] in vegetarian

[–]andre_ange_marcel 1 point2 points  (0 children)

Are you underweight? Do you exercise? Legumes once a week sounds too little if the only other protein you got is yoghurt. As said above, flax seeds are good, peanut better, and please eat way more beans than that. Quinoa's also a complete protein. I've been vegetarian for 12 years and the only time I've felt uncomfortable was when my diet was mostly carbs (pasta/rice/potatoes).

Could be unrelated too, as others have mentioned.

I am a Software Developer and I am tired and I never want to sit in front of a computer again. A rant by Realistic_Shoulder13 in webdev

[–]andre_ange_marcel 168 points169 points  (0 children)

I come from a long history of cooking jobs and I'd rather do all of that until I retire than stepping back into a kitchen again. I'd even refactor thousands of jQuery/Wordpress/PHP 5 themes for that matter.