• 1 Post
  • 44 Comments
Joined 1 year ago
cake
Cake day: June 15th, 2023

help-circle




  • weird dude who writes raw HTML

    Eyy, that’s me! Good excercise to learn actual HTML, instead of directly trying to jump into <insert random JS framework> and getting confused on what’s what.

    Anyway, I ended up switching to Hugo as a static site generator, because it was too damn hard to keep all my <header>, <nav> and <main> aligned for all my HTML files.

    Now I can just write a markdown file as an article, or switch back to raw HTML if I so need (like rewriting Alan Turing’s paper " On computable numbers" in HTML because I can’t use TTS on the PDFs I found; I still haven’t finished writing it, because I am now reading E. F. Codd’s papers on the Relational Model, which is pretty wild how we already figured that shit out in the 1970s!)








  • Here’s what I remember from Haskell (around 2018):

    I love the language, but hate the tooling.

    Used it for Uni (did a minor where I learned Haskell, recursion, parsing and regex - probably the most information dense part of school I’ve ever had. Half a year of minor also burned me out, so I never went for my masters; I’m OK with my Bachelors :D ), but never felt like picking it back up.




  • just like followers of religion

    We say that shit, because we’ve touched code that’s deeply inherited, and it was a god-damn pain to work with, because changing a single line can mean you’ll need to update a fuckton more, which breaks tests all god-damn over, which means you may have to refactor 50% of the application in one go.

    Anyway, everything has its uses (even goto). It’s just there are typically better alternatives.

    “sum types” and “algebraic data types” are horrible names.

    Agreed, but they exist due to historic reasons, and now we’re stuck with them. Not much we can do there ¯\_(ツ)_/¯

    Pretty much the equivalent of “imaginary numbers”.

    Terrible name that just means “vertical number line” (with an added operation where you rotate the vector, instead of add or scale), or “y-axis for the number line”. It’s funny because “Real” numbers are about as real as “Imaginary” numbers. Both are virtual (not physically existing).

    str | int is a sum type

    It just means that the variable can either be a str or an int. You’ve seen | used as “bitwise or”, right? Think in that direction.

    PS: Stay away from Monads - they’ll give you an aneurysm. 😂


  • Learning HTML syntax is the simple part. The tedious part is learning which tags already exist, and which tags goes in which other tag (and which attributes they may (not) contain).

    For that, always, ALWAYS go to the official HTML spec: WHATWG HTML.

    HTML has not been maintained by WC3 (though they still do maintain CSS) and has been a “living standard” since HTML5 (2009-ish, IIRC).

    I’ve read through the entire spec (using TTS, because only reading is boring) and learned a TON, because writing React straight out of the gate, without learning the HTML fundamentals first is a HUUUUGE pain.

    /rant