• 0 Posts
  • 163 Comments
Joined 1 year ago
cake
Cake day: June 1st, 2023

help-circle



  • It makes for a more acidic brew, which I personally really like. It’s quite fruity as well, while still definitely being coffee.

    Based on your recommendations, it might not be your cup of tea (or in this case, coffee!), but it might be worth a try if you want to expand your horizons. I am personally not into dark roasts, being mostly a medium to light-roast person.



  • 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!








  • The Swedish state-run media puts out a very good comparison between all the parties each election year which I use to understand what position each party has. It’s been generally easy to figure out which party is closest to me using that tool. It can be used for the three tiers of elections that we have in Sweden.

    Other than that I try to look at polls to see whether it would be generally better for me to place a strategic vote on a party that is not my first choice.





  • 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).



  • That doesn’t really seem to be a particularly useful study. You could probably find the exact same thing by selecting for owners of very expensive bicycles, but you would be proving exactly the same thing (which is nothing at all).

    A more reasonable approach would be to split into cohorts of different levels of wealth and then compare internally between those cohorts, to see the difference in emissions of an EV owner/transit rider/biker/ICE owner is.

    My gut feeling says that we’d find them ranked on the following order, from lowest emissions to highest:

    1. Biker
    2. Transit rider
    3. EV owner
    4. ICE owner

    It would be interesting to check whether that gut feeling holds in real life, and particularly how much the groups differ on a per-cohort basis.