Terence Eden on Nostr: Right, getting there! I'm rewriting using Symfony to a) teach myself something new ...
Right, getting there!
I'm rewriting
https://openbenches.org/ using Symfony to
a) teach myself something new and
b) make it less of a code disaster zone
Going well so far. I can retrieve benches from the database and render them either as HTML through Twig, or as a JSON API.
Not 100% sure I'm doing it in the most Symfonic(?) way - but it's a lot easier than I was expecting. And, I hope, should make maintenance easier going forward.
Published at
2023-04-26 21:55:28Event JSON
{
"id": "10a8c484b741bd2735ef1eaf9bf45b65f1de00d109ea1fd620aae3f1bf4d71d5",
"pubkey": "fddf487eea9db57a6e320f80e5cb63de50bedf539695a41c0d447be6c23643e1",
"created_at": 1682546128,
"kind": 1,
"tags": [
[
"e",
"9ff6b03bb29a83cf3fc882dcfed018e32c7b9734cf2709ff36d7f1336275e27c",
"wss://relay.mostr.pub",
"reply"
],
[
"mostr",
"https://mastodon.social/users/Edent/statuses/110267343085093985"
]
],
"content": "Right, getting there!\nI'm rewriting https://openbenches.org/ using Symfony to\na) teach myself something new and\nb) make it less of a code disaster zone\n\nGoing well so far. I can retrieve benches from the database and render them either as HTML through Twig, or as a JSON API.\n\nNot 100% sure I'm doing it in the most Symfonic(?) way - but it's a lot easier than I was expecting. And, I hope, should make maintenance easier going forward.",
"sig": "0ca752687f54df9af2a441a43611455ddafe9e095ce54ea16085e4446070e5ea2e48dad1c540a8fbb48513c412664567200d962365cf48835d919a4ad092437c"
}