• 8 Posts
  • 47 Comments
Joined 2 years ago
cake
Cake day: March 28th, 2025

help-circle


  • While I agree on principle, we’re not always using big-name websites. The argument falls short for some-local-blog.com, there’s no security improvement on clicking that link as opposed to shortener.tld/blog-link. I’d say we should trust the source of the link instead of the link itself. Link shortening can be useful if you want long links to look nice when sharing, or simply for personal use so that you don’t need to remember long links to access an internal resource. Or just for personal websites. I can link my CV at https://domain.tld/cv instead of the full PDF file path, for example.







  • SinTan1729@programming.devtoGit@programming.dev•Which git plateform to choose?
    link
    fedilink
    English
    arrow-up
    12
    arrow-down
    1
    ·
    4 months ago

    Just like everyone else, I’ll also recommend forgejo. But be prepared to handle bot traffic if you self-host it. My instance was hit almost constantly until I added strict rate limits, and made most of the stuff private. For a portfolio, I think Codeberg (or GitHub, that’s where everyone looks for stuff) is better that self-hosting. But it can be good to keep a private instance for mirrors.













  • SinTan1729@programming.devtoTechnology@lemmy.world•Cloudfare outage post mortem
    link
    fedilink
    English
    arrow-up
    8
    arrow-down
    1
    ·
    edit-2
    1 year ago

    I hope you’re joking. If anything, Rust makes error handling easier by returning them as values using the Result monad. As someone else pointed out, they literally used unwrap in their code, which basically means “panic if this ever returns error”. You don’t do this unless it’s impossible to handle the error inside the program, or if panicking is the behavior you want due to e.g. security reasons.

    Even as an absolute amateur, whenever I post any Rust to the public, the first thing I do is get rid of unwrap as much as possible, unless I intentionally want the application to crash. Even then, I use expect instead of unwrap to have some logging. This is definitely the work of some underpaid intern.

    Also, Python is sloooowwww.