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

help-circle
  • I think you may have quoted the wrong thing. The section you highlighted above states that clothing was fumigated with the same gas later used by Nazis to exterminate prisoners, it makes no mention of it being a way to "medicalize" or make exeuctions "humane".

    Again, I'm not American so I'd appreciate it if you highlighted how this is related to "American Liberaism" which you initially criticised. As it is it appears you're assuming whatever actions the someone in power in America takes is "American Liberalism", I'm not sure that's something I agree with.






  • That's because they're not necessarily mutually exclusive. The function is being called twice so there's no way to guarantee the result will be the same both times without knowing what it does under the hood.

    Consider a case where isalpha performs a coin flip, 50% chance each call to return true. The first call returns false so the first condition fails, then the second call returns true so the second condition fails; in 25% of cases neither code block executes.

    You could store the result of the first call in a local variable and reuse it if you really wanted to, but the smart solution is to either use if/else properly or switch to early returns instead.


  • When I was in school I remember one day we had a lesson about jobs, we each had a worksheet with some jobs listed and we had to pick out one we liked. There was one option that stood out to me right away, I can't remember the exact title they had but it was the one computer-related job on the sheet. I distinctly remember the teacher telling me that job wouldn't be needed in the future. Why even have it as an option if it's the one "wrong" choice?

    Anyway, I'm in software now. I'm incredibly lucky that I've always known what I wanted and managed to build a well-paid career in a field I like. Very few people get to say that.


  • Everything a computer does uses resources so every extension will have some performance impact, though you usually won't notice the difference from any one extension. As a general rule of thumb, the more an extension does the more resources it needs and so the bigger the impact. Some extensions free up additional resources (eg by blocking ads or trackers) which may also result in a net performance gain dependant on the page you're viewing.

    A large extension on disk doesn't necessarily use more memory and CPU time than a small one, but it is more likely to. The only reliable way to tell which extensions are resource hogs is by benchmarking them.

    Disabling extensions not in use is a good idea, though personally I'd uninstall them instead.