Skip Navigation

InitialsDiceBearhttps://github.com/dicebear/dicebearhttps://creativecommons.org/publicdomain/zero/1.0/„Initials” (https://github.com/dicebear/dicebear) by „DiceBear”, licensed under „CC0 1.0” (https://creativecommons.org/publicdomain/zero/1.0/)DR
Posts
0
Comments
98
Joined
3 yr. ago

  • You could use jq, which will work no matter how the json is formatted.

    Without trying it out, something like the following might work:

    jq '.path.to.key.to.change |= 11' file.json > file.json.tmp && mv file.json.tmp file.json

  • Score

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

  • From the little that I've used it, I believe Bootstrap for example provides both the lower-level classes like like p-4 uppercase and ui building blocks like btn btn-primary. So I guess by building daisyUI on top of Tailwind it will provide what frontend devs expect?

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