News for hackers. Stuff that matters.

doublejosh

Re:Why You Should Write Your Own Static Site Generator on Friday November 03, 2023 @05:04PM (#38134995)
I would ALMOST agree.

Five years ago I dove into using an ultra-light-weight framework called MetalsmithJS. It's super minimal, but does what you need. I'd spent 10 years using the Drupal monolith, and did not regret the move. Yet it's open-source community dried up, but mostly because the framework does what it claims and then stopped expanding!

Here's a blog post... https://doublejosh.com/post/186193119278/metalsmithjs-is-sti...

Then two years ago I needed a more robust SSR system based on React, so I went with GatsbyJS. It's insanely mature and intuitive, but as we all know that community and business is now drying up too. But the framework is still great.

Now everyone sings the praises of NextJS, which can be used for SSR but is intended for applications and active server endpoints. But more complexity doesn't mean better.

I'm keen to try other simple frameworks when the result is a static site. I may give https://www.11ty.dev a shot.

Re:Utah is first US state to limit teen social media access on Saturday March 25, 2023 @11:36PM (#35310573)
Seems appropriate to bring up the gross the age of consent issues in the US...

https://en.wikipedia.org/wiki/Ages_of_consent_in_the_United_...

Re:Utah is first US state to limit teen social media access on Saturday March 25, 2023 @11:35PM (#35310569)
If only we could get states to increase the age of consent.

https://en.wikipedia.org/wiki/Ages_of_consent_in_the_United_...

Re:Margin considered harmful on Tuesday March 24, 2020 @03:06PM (#22677819)
Sorry to be unpleasant... but DUH. This was true long before React. It's a core idea in assembled layouts, that is to say all layouts.

Margins need to come from the assembling component, rather than the detail item. Spacing requires awareness of multiple elements, which you usually don't have internally.

Yikes. Perhaps if you can identify the specific "holes" in the data via comment timestamps, or better yet holes in logs, you can make an easy case for them to investigate the issue.

However, my guess is that the kind of database migration sloppiness you're seeing means they didn't keep any snapshots fresher than what was moved :(