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

help-circle


  • it’s a bit hard to tell. of the buildings still standing and in use, the cathedral comes to mind, with was consecrated in 1238, but it stands on the site of the old mosque. this was torn down apparently in 1262, at which point construction on the cathedral began, but it would take centuries to finish everything.

    there is another church that was named a parish in 1245 and so was probably already standing then, so perhaps that building is the oldest? I don’t knoe how much of that original building is still standing though











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