Goodbye Reddit, Hello Lemmy

  • 0 Posts
  • 8 Comments
Joined 10 months ago
cake
Cake day: January 6th, 2024

help-circle



  • It really depends. Whitespaces are something most languages don’t care. The only people who care are enforcing style guides. Level 2 is the same but there it start to get more critical, because can you be sure that it makes no difference? Level 3 is critical. While it can help to eliminate code that probably didn’t caused the problem, it makes a difference. In code review this can make a difference. If a specific Hex number is well known, like of example 0x4711 and someone changes it to 18193 or even Binary, information to the programmer gets hidden. And even in style this makes a difference. When you have a flag Enum, the thing to use is binary or bit shift, because both is readable. Decimal is readable to a certain point. 4 bytes is fine but at the 5th I don’t know them by heart and can’t even spot them. Level 4 is irrelevant, when its on top of the file and bothering to hide it, is not necessary. Also this can be relevant. For example a while ago at our company we had code that needed to work with .NET 2 and we had parts with .NET 4 and at some point, new files had the using for LINQ, that isn’t available in .NET 2. This happened a lot.

    The best solution is to have options and let the person using it decide. What I’m missing is to add my own ignore list. For example with our XML files, we have a date in them. The XML Class is badly written, because instead of having one date attribute for the first node, we have them on all. This is pretty irrelevant to show in a diff, because its not even used. Rewriting the Class is a big task, because its a core feature and can break everything, when one thing is missed.


  • Docker is amazing but not needed. You can compare it to a simpler VM. You can take a docker and run it on any machine. You have an environment that is separate from your host and you and the container can only access it via defined points (volumes and ports).

    Imagine you need to run a 2nd Mumble Server. I never set on up but its often that a 2nd instance is not that easy. With docker its easy. The only difference is that you need to use different ports, when you have only one network access or you use a reverse proxy. You can create a 2nd instance to test stuff, without interrupting your productive system. Its a security benefit, because its isolated to some degree and you can remove one easily.

    I started using it with MSSQL Server, because I hated how invasive it is on a windows machine, especially I just needed it temporarily to do stuff with it. I’m not a microsoft admin and I know that Servers from Microsoft are a different level. Docker allowed me to start and stop it and remove it very easily. After that I started using it for a lot of and brought my NAS on the next level.

    Also one thing worth mentioning are Linux Containerx (LXC). They are in Proxmox but I have less knowledge. It feels more like a full VM than docker but uses less resources. This is the reason why containers in general are more popular. They are less resource hungry than a full VM but have some benefits than running everything on one machine. LXC feels more like a full system, than docker. With docker you rarely get into the system. You may execute some commands, like a create user command or a one time job but don’t access it via a shell from the inside (its possible). LXC on the other hand, you use the shell.



  • I hate when the installation takes like 20 steps. Never heard of an installation script and a interactive installation? I’ve installed far more complex software, that gets this but your shitty programm can’t do it?

    And they wonder why nearly nobody uses Linux. In Windows nearly all software comes as an executable. Imagine offering a software under windows, where you need to do the setup manually in a shell.


  • Audible + OpenAudible. OpenAudible does “stuff” and you end up with audio files, that you can listen on most devices. Don’t know and care how they do this. Its not free but so is Audible.

    When you have an active Audible subscription, you also have access to free Audiobooks. You can download and convert them too. But be aware, that Audible is rate limited. Had downloaded a ton of free audiobooks and after a short limit (maybe 1 hour), I got a long limit for around 24 hours. But I still use Audible. I just have it as a backup and this way I can give my family access to the books I have. But so far my mother only listen to the ones I got for free. I like Science Fiction a lot but my mother not.

    A college who I recommended Audiobookshelf, has a subscription from a German only site (Thalia), where apparently the Audiobooks can be downloaded as MP3s. So far I prefer Audible, even with DRM, just because the availability. Not all books I listen to, are available on that site or much later.