• 1 Post
  • 202 Comments
Joined 1 year ago
cake
Cake day: June 1st, 2023

help-circle






  • I think global warming as a term is not great, because it fails at communicating the end result of the overall average temperature increase, which is more chaotic weather on account of the increased energy present in the system. Sometimes this will mean temporary local reductions in temperature, and sometimes it will mean unusually cold years in places. Don’t give people the option to use ‘bUt iT’s cOlDeR tHiS yEAr sO hOw cAn gLoBaL wArMiNg bE rEaL’ as an easy argument.

    Climate change is the more accurate term, but I do prefer terms that more accurately communicate the severity of the situation, such as the climate crisis, for example.


  • So we’ve been going on for a pretty long time about how Florida is basically largely going to get completely lmaoed by climate change, and trying to warn people moving there and so on.

    But as time goes on, I’m thinking maybe it’s best if they suffer the consequences of their actions, and let the ocean have this one.

    Refugees will of course not be accepted in accordance with the new regime policy either, and FEMA has been fully dissolved.


  • I don’t think you necessarily need to have studied a lot of math to be successful in programming, but you will need it if you want to get a CS degree, which in turn can be a good lever to a fruitful programming career.

    My advice when it comes to math - math skills build upon the concepts you’re expected to have learned before, meaning that if you didn’t fully get everything in the past, then your foundation is not in great shape and you will struggle at higher levels. Going back and repeating the fundamentals just so that you fully understand everything is very helpful in my experience.

    I also think that understanding math is rewarding in itself, for what it’s worth!







  • Consider the following: You have a class A that has a few dependencies it needs. The dependencies B and C never change, but D will generally be different for each time the class needs to be used. You also happen to be using dependency injection in this case. You could either:

    • Inject the dependencies B and C for any call site where you need an instance of A and have a given D, or
    • Create an AFactory, which depends on B and C, having a method create with a parameter D returning A, and then inject that for all call sites where you have a given D.

    This is a stripped example, but one I personally have both seen and productively used frequently at work.

    In this case the AFactory could practically be renamed PartialA and be functionally the same thing.

    You could also imagine a factory that returns different implementations of a given interface based on either static (B and C in the previous example) or dynamic dependencies (D in the previous example).