• 0 Posts
  • 23 Comments
Joined 1 year ago
cake
Cake day: August 19th, 2023

help-circle



  • I bought a used desktop with 4 SATA ports. Has i5 7th gen and currently 5 TB and an 500GB SSD and has max ram of 64GB. I guess the HDD are not included in the price?

    I’m not sure what your software requirements are but if you go the DIY route a desktop works. I made the BIOS auto turn on on power restored and have services start on startup so it gives the server feeling.

    Bonus is that you can use it as a gaming server and upgrade the components easily for a while depending on the motherboard.


  • He wrote for example the books Clean Code and Clean Architecture which are IMO opinion really good books although I don’t agree with every point he makes.

    Some really good points he makes are for example:

    • Functions that only do one job
    • Testing makes refactoring easier
    • The standard SOLID OOP stuff.
    • Tech debt is bad
    • Abstraction and encapsulation is good and allows developers to interact with the code on a higher level in terms of actions instead of writing verbose stuff. Essentially saying less code leads to less bugs
    • Insulate yourself from change
    • Duplication is bad
    • Two use cases that are very similar is not duplication and should not be refactored.
    • Don’t mix high level code with low level.
    • Build solid Entity classes to model the data and their interactions.

    Those comes with examples. He’s a tad bit overly idealistic in my opinion. These books fail to mention a couple of things:

    • Refactoring is expensive and the cost is often not justified.
    • Premature abstraction is the absolute devil
    • You don’t need to insulate from things that are very unlikely to change (like going from SQL to Document DB)
    • Less changes also lead to less bugs.
    • Too much emphasis on functions being few lines of code instead of just being simple.

    All in all though, very solid books. I read Clean Code in university and Clean Architecture in my first job and it really helped me wrap my head around different ways to solve the same problem. Excellent ideas but it’s not the holy truth. New programmers should read it and take inspiration, craftsman level developers should criticise it and expects can mostly skip it.









  • Maybe be more specific?

    For traveling I would suggest a laptop to behave as a server but the IP address changes a lot when traveling.

    I’d personally opt for something hosted at home if possible like Nextcloud and Jellyfin with static IP and port forwarding to access on the go.

    Tbh though, if you just want storage on the go buying a portable 1-4TB drive that connects via USB-C is enough.




  • I started using docker myself for stuff at home and I really liked it. You can create a setup that’s easy to reproduce or just download.

    Easy to manage via docker CLI, one liner to run on startup unless stopped, tons of stuff made for docker becomes available. For non docker things you can always login to the container.

    Tasks such as running, updating, stopping, listing active servers, finding out what ports are being used and automation are all easy imo.

    You probably have something else you use for some/all of these tasks but docker makes all this available to non-sysadmin people and even has GUI for people who like clicking their mouse.

    I think next time you find something that provides a docker compose file you should try it. :)


  • Yeah, not arguing that, it doesn’t cost them extra to allow those. Still, you can use 8080, 8989, 5000, 7878 etc, for plex, Jellyfin, nextcloud and so on.

    You can even workaround it by using cloudflare functions that forward requests to your specific port, DNS it to cloudflare and run a commercial webapp out of your garage anyway.*

    *Except if you want to honor whatever ToS they had you agree to.