Chris Hartjes on Nostr: This past week I had a problem at DayJob that would’ve been easier to solve if we ...
This past week I had a problem at DayJob that would’ve been easier to solve if we had adopted the use of repositories that create immutable value objects. Since this is a Laravel project, I was overruled. My first implementation ended up being wrong (found out via production testing) and the fix ended up involving Eloquent mutators.
I still think value objects are the better solution but my boss both disagrees and trolls me about it.
Published at
2024-05-19 15:12:54Event JSON
{
"id": "77e4c660a92dc91afc6692adccdf492e65f857ad00a21bc6ced1f1df1240ed8d",
"pubkey": "adf1a85f161ebb6006c4ddeb83f5cc2b357aaeeec089262a5a63cc571f5c9108",
"created_at": 1716131574,
"kind": 1,
"tags": [
[
"proxy",
"https://phpc.social/users/grmpyprogrammer/statuses/112468398855055524",
"activitypub"
]
],
"content": "This past week I had a problem at DayJob that would’ve been easier to solve if we had adopted the use of repositories that create immutable value objects. Since this is a Laravel project, I was overruled. My first implementation ended up being wrong (found out via production testing) and the fix ended up involving Eloquent mutators.\n\nI still think value objects are the better solution but my boss both disagrees and trolls me about it.",
"sig": "99a9b90a33b7038d5110698e7490dcef2dac705d726c5346dcfd7ab639d2250799774697b7fe42bd832c127b07b6282da99809fef4d316b60ff47b4ed39d952b"
}