• 0 Posts
  • 70 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 😂






  • 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.




  • Gonna be honest, never used ffmpeg for images lol. I often take images from PDFs that have transparency (rpg books to import into my vtt) and they come out of pdfimages with an opaque greyscale alpha mask and an opaque image. I found it easy to apply the mask with imagemagick, though. Ffmpeg can probably do it but just never had a use case. I just use cwebp to convert because that’s my primary use-case: converting pngs to lossy webp files and cwebp is good enough for me for that:)


  • Im recommending them to anyone who wants free software and is willing to invest their time into understanding how to do things for free and without concern over their data. If you aren’t willing to invest the necessary time it isn’t for you and that’s why I said it. It’s okay if these don’t work for you. That’s valid. But it does, in fact, work for many others who are not you.

    I mentioned the manual because you claimed you didn’t know what the commands do. If you read and take the time to learn the manual like you said you can do, you will, in fact, understand how the commands work. Additionally, this is public forum, my post may have been a reply to you but I understand other people may read my comment. Other people may have your frustrations but are not aware of the manuals that tell them exactly how the commands work. It only takes a bit of elbow grease, perhaps people other than you are willing to apply it?

    I’m not sure if you saw it, but I did mention a gui application for converting files. I admit, I don’t use it, but many people also save a lot of money using it, so it might be helpful. I have no idea if it’s useful for your needs though.

    Here’s “ffmpeg in 100 seconds” https://youtu.be/26Mayv5JPz0

    Here’s a video on ffmpeg and imagemagick: https://youtu.be/sKBM4M-kuCg

    Additionally, you can just learn how to read man pages: https://itsfoss.com/linux-man-page-guide/

    There’s a neat little guide that’ll help you learn how to read documentation.

    Once you’ve read through that let me know what confuses you about documentation.