News for hackers. Stuff that matters.
Re:Show HN: Static blog generator in about 1 KLOC by jstanley on Saturday October 17, 2020 @02:16PM (#24811950)
Interestingly OP's project includes equivalent Perl and Python implementations and his Python version is actually shorter, I did not expect that.
Re:Show HN: Static blog generator in about 1 KLOC by pmiller2 on Saturday October 17, 2020 @02:24PM (#24812014)
That seems like a lot of unnecessary maintenance to me.
Re:Show HN: Static blog generator in about 1 KLOC by jjjbokma on Saturday October 17, 2020 @03:21PM (#24812423)
I ported the program to Python when the Perl version was already fleshed out a bit. Keeping them in sync hasn't been that hard. After each update I run both versions on the same input file (resulting in my blog https://plurrrr.com/) and check with meld if there are any differences. This works very well. I am only a little worried that the Python code might contain some Perl-isms.
Re:Show HN: Static blog generator in about 1 KLOC by forgotmypw17 on Saturday October 17, 2020 @09:54PM (#24814990)
I disagree. It does a lot to help reliability and to find bugs.

It also means you have a completely decoupled backup system should anything go wrong with the primary.

I'm aiming to have at least one redundant component for every piece in the system I'm writing.

Re:Show HN: Static blog generator in about 1 KLOC by forgotmypw17 on Saturday October 17, 2020 @02:18PM (#24811968)
I did not notice that, thanks for pointing it out.