• 0 Posts
  • 14 Comments
Joined 3 months ago
cake
Cake day: December 18th, 2024

help-circle
  • Damn why doesn’t git just use sql instead of Merkle trees I guess that’s just stupid tell Linus to get to using SQLite asap!!!

    But no, you’re wrong. Cryptographically verifiable merkle trees are a valuable way to store changing data. Unlike your recommendations, they don’t satisfy the needs of verification, which is literally a great use-case for ssns. Now I’ll admit that the SSN db doesn’t need to be distributed, which is the only thing a blockchain adds to that equation. But you are just flat out wrong for suggesting a sql db 😂


  • Im merely making a value proposition because im an engineer and I’ve had this same exact problem and desire. Call it experience — a static blog is fine since I can build one of those in my sleep, but for me I wanted to post on it when I was away and only had my phone. Now do I put it on my git? A separate notebook that is synced somewhere? I have ADHD—if I want to write I have to write and I can’t just hope to remember it sometime later. Now what’s the point of my blog if I can’t write on it when I need to but simply don’t have my desktop nearby? Also you have to have pay for a CI to do the building anyway for a static site generator, that ain’t free and even if you found a service that provides CI for free you’re just externalizing your costs somewhere else. Laws of thermodynamics still apply. So instead of paying for CI to build your static site, I’d argue just pay for the server rendered site. Why choose to have a 1gb ram build server for a blog when you can just use that server to run the blog.

    And they want federation support. Ghost is working on that as well speak. What static site generator supports federation?


  • dreadbeef@lemmy.dbzer0.comtoSelfhosted@lemmy.worldlightweight blog ?
    link
    fedilink
    English
    arrow-up
    1
    arrow-down
    2
    ·
    edit-2
    3 days ago

    It costs like $3/mo to host it. If that’s too resource intensive then I don’t know what your limits are. Compute isn’t free—that literally breaks the laws of thermodynamics, no matter what you’re told by hosting services, and ghost does server side rendering and has a dynamic admin dashboard and can even work headless… and it costs less than $3/mo for your own personal open source cms.

    If you need something that costs less then you can just build your own I guess, but how many hours of your time is that worth when you could just be spending $3/mo. If you make minimum wage at $7/hr one hour of work gets you two months of running a website.



  • dreadbeef@lemmy.dbzer0.comtoProgrammer Humor@programming.devstop
    link
    fedilink
    English
    arrow-up
    11
    ·
    edit-2
    5 days ago

    Okay but partial application of curried functions is a really cool way of doing dependency injection and you haven’t experienced bliss until you create a perfect module of functions that are exactly that

    Also languages with macros and custom operators (where operators are just functions with special syntactic sugar) are so much cooler than those without (Clojure and elixir my beloved)

    Additionally a system where illegal states are made impossible is soooo nice to work in. It’s like a cheat code


  • dreadbeef@lemmy.dbzer0.comtoProgrammer Humor@programming.devstop
    link
    fedilink
    English
    arrow-up
    5
    ·
    edit-2
    5 days ago

    Not really, it’s just good practice. You write your application in layers, and the outer layer/boundary is where you want your side effects and that outer layer takes the crazy effectful world and turns it sane with nice data types and type classes and whatnot and then your inner layers operate on that. Data goes down the layers then back up, at least in my experience with functional projects in OCaml, F#, Clojure, and Haskell.

    The real sauce is immutability by default/hard-to-do mutation. I love refs in OCaml and Clojure, so much better than mutation. Most of the benefits of FP are that and algebraic data types, in that order imo.




  • I used SOAP in my first web dev job over a decade ago when I was making flight search software and connecting to horrific APIs owned by the airline industry to get flight details and purchase tickets. Why are these two things even remotely the same? It’s closer to SQL than SOAP, and I’d choose graphql over any soap api. I still wouldn’t do it over http if I could avoid it though.