• 0 Posts
  • 11 Comments
Joined 1 year ago
cake
Cake day: June 15th, 2023

help-circle



  • NostraDavid@programming.devtolinuxmemes@lemmy.worldIndeed
    link
    fedilink
    arrow-up
    1
    arrow-down
    1
    ·
    3 months ago

    I unironically prefer apt over pacman, simply because my monkeybrain got addicted to running pacman -S (that was how to update, right?) and I dropped in productivity. apt is just “nah fam, there’s nothing new for you” most days, which gives me the quiet time I want and need.

    I ran Manjaro BTW. It was nice while it lasted, but Debian is my new friend now.


  • Probably not often, but as a Debian user, it’s a PITA to get back to where I was before I fucked up my system. Nix(OS) sounds like a future investment to me, just in case I ever fuck up and need to get back to where I was ASAP. Been there once already and it was NOT fun.

    That was from a professional standpoint BTW, privately I’m still a dirty Windows pleb, because that’s what I’m most familiar with.

    PS: I’m already using a dotfiles repo, which already saves me a ton of time in settings things up.




  • What’s even the “gold standard” for logging stuff I guess?

    structlog. Or just Structured Logging in general.

    Don’t do:

    logging.info(f"{something} happened!")

    But do

    logging.info(“thing-happened”, thing=something)

    Why? Your event will become a category, which means it’s easily searchable/findable, you can output either human-readable stuff (the typical {date}, {loglevel}, {event}) or just straight up JSONL (a JSON object/dict per line). If you have JSON logs you can use jq to query/filter/manipulate your logs, if you have something like ELK, you can insert your logs there and create dashboards.

    It’s amazing - though it may break your brain initially.