• 0 Posts
  • 13 Comments
Joined 3 years ago
cake
Cake day: June 17th, 2023

help-circle

  • Not sure it does. When people say 64bit support like this they typically mean the x86_64 (aka amd64) architecture. As apose to the x86 (which is 32bit) architecture. These are fundamentally different from the arm architecture line (typically now using the aarch64, aka arm64 architecture).

    Steam have done a lot of things for arm64 support as that is what the SteamFrame uses (as well as Macs). That and the translation/emulation support to be able to run x86* binaries on arm. Which will have more of an effect on Asahi support.

    This news is more about being one step closer to being able to drop 32bit libraries on x86_64 machines.






  • Three branches and a fifteen-line ceiling sounds generous until you write against it.

    I disagree with this. There is a lot of situations where breaking these rules results in more readable code and trying to follow them strictly results in code that is far harder to read overall. Sometimes colocated code is the more readable solution. There is no hard and fast rule that can make code more readable. Only general guidelines that don’t always work.

    This has Uncle Bob vibes which just takes this to the extreme - thinking you can only have 1 branch and 5 lines in a function. It does not solve the complexity problem. It just spreads it around and thus makes the whole program and logic flow harder to read as you need to make far more jumps through the code to understand it.




  • Now, DNS is largely used for this purpose.

    Um, that does not really make sense.

    -mail.microsoft.com -ftp.microsoft.com -irc.microsoft.com -print.microsoft.com

    These are all domain names and DNS servers are used to resolve these to different IPs. Always has done that job and still does it today. But microsoft.com is a single domain name and DNS can only resolve it to a single address (or set of addresses). So cannot be used to tell different services apart.

    DNS does not know anything about http or https or any other protocal like that. It just resolves the domain name to an IP/set of IPs. The only thing it can do is point www.microsoft.com and microsoft.com to the same location so that you can use either to get to the webservers.


  • Everything is a tradeoff. At this point there are more valuable things to be spending money on than making chargers that are as fast as possible. Not all cars can charge at 500+kWhs many cannot even do 100kWhs. IMO better to spend money upgrading all the slow 7-50kWh chargers. As well as putting in more slow charging near residents. Kerb charging for people that dont have a driveway in cities or chargers for those living in flats. That would serve people better then spending more money on something very few can actually benefit from.


  • You can create some really ugly code in spite of the forced indentation in python. Indentation does not really help here at all. In all languages you can correctly or incorrectly format things. A code formatter strictly applying a coding standard helps far more here than indents vs bracers. Take a look at black it takes the pep8 standards and adds more strict things on top making code look a lot more consistent and thus makes it easier to read.

    And all formatters will indent code consistently, so having it as part of the language parser does not really help improve readability at all. And even without a formatter everyone I know will still correctly indent their code no matter the language used. But sometimes forcing new lines to have a meaning does make things worst - just look at pythons lambdas which have to be a single line.


  • In unit testing, a “unit” does not have to be the smallest possible section of code. It can be a while class or module or even set of related classes/modules. Testing individual functions in isolation leads to brittle tests that easily break during refactoring. Testing overall system behaviour results in more robust tests that require fewer changes during refactoring which gives you more confidence then you have not introduced a regression.