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

help-circle
  • this right here is the issue, people don’t even remember the size smartphone used to be. I’ve got a phone that’s one of the smallest available that still have decent hardware. the screen is still 6.1 inch. your example of a reasonable size is 6.3 inches.

    what op and I are actually looking for is something around 5 - 5.3 inches instead, like smartphone used to be. For that size, all that is available today is no-name chinese phones with shit hardware and no support. the big brands are busy selling 6.2 inches as “compact” where it used to be considered phablet size















  • dreugeworst@lemmy.mltoLemmy Shitpost@lemmy.worldScore
    link
    fedilink
    arrow-up
    2
    arrow-down
    1
    ·
    edit-2
    2 years 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,