\\ harphield

writing on the internet

2026/03/05

Many people are using the internet to write stuff. So let me try. I love that we went full circle in the last few decades: from static html pages to dynamic scripts to CMS blogs back to static html.

I am using 11ty to generate this website - a static site generator. The output is pure html + css, no javascript. I was always of the opinion that you don't need javascript on your websites. It could be added, sure, to enhance whatever you wanted to have there, but the baseline experience should be possible even without it. And yeah, it's possible now more than ever before.

Like this code highlighter plugin - no JS needed!

/// Returns the base points of this Score. See http://arcturus.su/wiki/Japanese_mahjong_scoring_rules#Scoring_procedure
fn base_points(&self) -> u32 {
    if self.han == 5 || (self.han == 3 && self.fu >= 70) || (self.han == 4 && self.fu >= 40) {
        // mangan
        return 2000;
    } else if self.han >= 6 && self.han <= 7 {
        // haneman
        return 3000;
    } else if self.han >= 8 && self.han <= 10 {
        // baiman
        return 4000;
    } else if self.han >= 11 && self.han <= 12 {
        // sanbaiman
        return 6000;
    } else if self.han >= 13 {
        // yakuman
        // TODO double yakuman?
        return 8000;
    }

    self.fu as u32 * (2u32.pow(2u32 + self.han as u32))
}

And that's cool. I will also play around with the design of the pages. Haven't done CSS in a while, so it's fun!


← back to index