• 0 Posts
  • 19 Comments
Joined 2 years ago
cake
Cake day: November 9th, 2022

help-circle




  • That’s very much not true. Workdays would typically last around 6 hours, not including multiple breaks during the day. Also, your employer would usually provide the food for lunch, and it was acceptable to have a nap in the afternoon.

    In winter, even shorter days were common to account for the reduction in daylight. If you were ill, you’d simply not show up and not get paid. In fact it was normal for people to only work for what they needed in the immediate future and stop showing up as soon as they had enough for the week











  • dreugeworst@lemmy.mltoLemmy Shitpost@lemmy.worldScore
    link
    fedilink
    arrow-up
    2
    arrow-down
    1
    ·
    edit-2
    1 year ago

    Stamford bridge is also a bridge though. And the location of a very important battle in English history. If you’re not a football fan, you might be familiar with the battle but not the stadium (as was my case).

    I think this example is more like if she thought scalloped potatoes involved scallops, but there were actually 2 dishes called scalloped potatoes, one of which does involve scallops






  • I think the main reason OOP has a well-known term and pattern for dependency injection is to differentiate these two (out of multiple) options:

    • the constructor of my object creates other objects it depends on itself
    • I construct the dependencies of my object elsewhere and pass them in to the constructor and use an interface to make it easy to swap behaviour

    However, this becomes less of a pattern in functional programming as you wouldn’t make such objects to begin with. In FP, you pass all parameters where a function is invoked, and DI just becomes using generic parameters. You wouldn’t instantiate a dependency on each function call after all.

    As this is such a minor change, it’s not really talked about much and it’s not really a pattern,