• 2 Posts
  • 743 Comments
Joined 3 years ago
cake
Cake day: June 12th, 2023

help-circle
  • To create an invite you:

    # drop into mongo shell
    docker compose exec database mongosh
    
    # create the invite
    use revolt
    db.invites.insertOne({ _id: "enter_an_invite_code_here" })
    

    That’s pretty jank.

    Also - I’m getting pretty fed-up with self-hosting documentation that assumes very specific environments and goes into detailed configuration for that environment. Don’t tell me how to setup a server and how to enable/configure SSH and setup UFW as part of setting up your software. Just tell me how to setup your software and what ports it uses.







  • Yeah - I’ve even seen people recommend switching distros just because another has a different default DE without understanding that most distros let you install multiple DEs…

    The differences between distros aren’t as big as people make them out to be*. Mostly just installer, how packages are managed, what versions of packages you get, etc.

    • Unless you’re on an “immutable” distro in which case - yeah - shit is different.





  • What do you mean by “corporate?”

    You could look at higher education, non-profits, research, etc.

    I don’t want a lot of money

    Do you want to work full time? I’d never hire a programmer who wants to work less than 20 hrs/wk and I’d even be very unlikely to hire anyone for less than full time. It’s a pain to coordinate with somebody on a team who isn’t there most of the time.

    Maybe small non profits would be interested, but

    I’d like to work with REAL programming, not devops, not cloud, not managing containers, I want to write code as a living.

    Small businesses will need someone who is flexible and can “do everything”. Typically only large organizations allow people to specialize.

    Maybe “bug hunting” or contributing to larger oss projects that have budgets to pay for contributions?




  • Having to make a decision isn’t my primary issue here (even though it can also be problematic, when you need to serialize domain-specific data for which you’re no expert). My issue is rather in that you have to write this decision down, so that it can be used for deserializing again. This just makes XML serialization code significantly more complex than JSON serialization code. Both in terms of the code becoming harder to understand, but also just lines of code needed.

    This is, without a doubt, the stupidest argument against XML I’ve ever heard. Nobody has trouble with using attributes vs. tag bodies. Nobody. There are much more credible complaints to be made about parsing performance, memory overhead, extra size, complexity when using things like namespaces, etc.

    I’ve somewhat come to expect less than a handful lines of code for serializing an object from memory into a file. If you do that with XML, it will just slap everything into child nodes, which may be fine, but might also not be.

    No - it is fine to just use tag bodies. You don’t need to ever use attributes if you don’t want to. You’ve never actually used XML have you?

    https://www.baeldung.com/jackson-xml-serialization-and-deserialization