HackerTrans
TopNewTrendsCommentsPastAskShowJobs

hiddew

no profile record

comments

hiddew
·4 bulan yang lalu·discuss
For large applications, having the implementation (or multiple implementations) of certain functionality decoupled from the code using it, improves maintainability and configurability of the application. That is where inversion of control helps. And then manually writing the instatiation, scoping, dependency ordering and cleanup code to manage all of that is not useful to write yourself. Any dependency injection framework will work, although Spring is well used and has many integrations.
hiddew
·4 bulan yang lalu·discuss
> Autowiring is against the principles of a typesafe programming language

Constructor autowiring is the application of the inversion of control and dependency injection pattern. If there was no autowiring, you could autowire the components together just the same with normal code calling constructors in the correct order. Spring just finds the components and does the construction for you.
hiddew
·5 bulan yang lalu·discuss
Also see PostGIS for Postgres systems: https://postgis.net/docs/.
hiddew
·6 bulan yang lalu·discuss
https://openrailwaymap.app

OpenRailwayMap is a project focused on displaying everything railway related in the world, powered by OpenStreetMap data.
hiddew
·6 bulan yang lalu·discuss
> How long before car ownership is replaced with autonomous vehicle car pools?

That is very much a future I look forward to living in. Not requiring to own a car but sharing it efficiently with folks in the neighborhood, would save quite some parking space for unused vehicles in front of homes, and centralize maintenance to the companies operating the vehicle fleet.
hiddew
·8 bulan yang lalu·discuss
> For stuff like security keys you should typically add them as build args, not as content in the image.

Do not use build arguments for anything secret. The values are committed into the image layers.