Hacker Newsnew | past | comments | ask | show | jobs | submit | andor's commentslogin

Manual dependency injection is fine, but it doesn't scale. Especially when you start refactoring things and dependencies need to be moved around.

The other issue is dynamic configuration. How do you handle replacing certain dependencies, e.g. for testing, or different runtime profiles? You could try to implement your own solution, but the more features you add, the closer you'd get to a custom DI framework. And then you'd have an actual mess, a naive non-standard solution for a solved problem, because you didn't want to read the manual for the standard implementation.

By the way, Spring dependency injection is mainly based on types. Annotations are not strictly necessary, you can interact with the Spring context in a procedural/functional manner, if you think that makes it better. You can also configure MVC (synchronous Servlet-based web) or Webflux (async web) routes functionally.

When a bean is missing, the app will fail to start, and you will get an error message explaning what's missing and which class depends on it. The easiest way to ensure this doesn't happen is to keep the empty @SpringBootTest test case that comes with the template. It doesn't have any assertions, but it will spin up a full Spring context, and fail if there is a configuration problem.

The only complicated part about Spring Boot is how the framework itself can be reconfigured through dependency injection. When you provide a certain "bean", this can affect the auto-configuration, so that other beans, which you might expect, are no longer automatically created. To debug this behavior, check out the relevant AutoConfiguration class (in your IDE, use the "go to class" shortcut and type something like FooAutoConfi..., e.g. JdbcAutoConfiguration).

In a good codebase, the configuration itself would be tested. For instance, if you did something a bit more complicated like connecting two JDBC databases at the same time, you would test that it read the configuration from the right sources and provides the expected beans.


Fusion power that uses steam turbines to convert heat into electricity will be more expensive than solar/wind

Only if we first colonize the Solar System, so land becomes too cheap to meter too.

This makes sense if you assume that

1) Foreigners are all trying to punch you

2) Your government is not

3) The FCC is acting in the citizens' best interest and this is actually the best way to increase security for router consumers.

Are 2 and 3 valid assumptions at the moment? In the extremely polarized US, that probably depends on your political affiliation. From the outside, I can't tell if this is a power grab, protectionism or just a decision I cannot get behind. Vulnerabilities and backdoors in US network equipment prove that "Made in USA" does not necessarily improve security. What the ban does improve is the administration's control over what's sold.


None of these assumptions are required to avoid hypocrisy.

> Is Google search engine that leads to NY Times or Fox News or Wikipedia and makes us manually choose sources as per our biases "better" than Google's Gemini engine that summarizes content from all the above sources and gives an average answer?

That's not what Google's AI mode does, though. It presents a bunch of sources along the answer, but in my experience, the sources in many cases don't actually back up the claims generated by the LLM.


Yeah, it would be interesting to know how much work is spent on it. I sometimes submit sites when I am targeted by a campaign, but I'm not sure if they end up in their deny-list.


Banks are slowly moving away from their old COBOL systems. It's about cost as much as it's about catching up with the neo-bank competition.

The main thing that makes this difficult is that in most cases the new system is supposed to be more capable. Transactional batch processing systems are replaced with event-based distributed systems. Much more difficult to get right.


The PDF is digitally signed with a cert from the Finnish „Digital and Population Data Services Agency“


I think it is safe to assume, given the buzz all around the donut battery, that VTT would immediately release a statement if this report was fake.

edit: https://www.vttresearch.com/en/news-and-ideas/donut-lab-comm...


Unfortunately that's not the same as VTT.

VTT would be more like "National Institute of Scientific Research"


Well there's this press release they would publish a report: https://www.vttresearch.com/en/news-and-ideas/donut-lab-comm... with as author the same name on the digital signature "Petri Söderena" for Organisation "Teknologian tutkimuskeskus VTT" and the chain is attested by "DVV Organisational Certificates - G4E" which is on the EU/EEA trusted list: https://eidas.ec.europa.eu/efda/trust-services/browse/eidas/... (by name and key signature). Looks like a legit VTT document to me.


It says its sign by this guy: https://www.vttresearch.com/en/news-and-ideas/petri-soderena...

He has an e-mail address and a phone number, I doubt that if the report is falsified it won't come out.


I just found a video of the same guy selling some magical AGI thing 9 months ago: https://www.youtube.com/watch?v=ilgJKjiDLV8

Promising the moon and stars just like with Donut.

Donut Labs also had a video presentation of some kind of automotive design software that also sounded too good to be true.

This guy is a serial scammer.


Elon Musk sells self driving cars since 10 years that don't self drive but his cars are actually decent cars and his rockets are revolutionary. Also, who isn't selling magical AGI since the last 4 years?

I think i will judge the battery and the magical AGI separately. The guy also sells magical motors that appear to be real with people riding motorbikes with those motors.


It's not really nationalism since this is a European effort across multiple countries. But for all of them, it will improve the national security posture.

The only superior aspect of Visa/Mastercard payments is that they are more widely accepted, and that's something that can be changed.


On Smartcards yes, maybe Android, but certainly not on iPhones. On iOS, it's only been possible to implement alternatives to Apple Pay since 17.4 (2024), and only in Europe (EEA).


Ah, I didn't realize the landscape was different on the Apple side of things.


Yeah, that's why Slackware and Gentoo have a much larger userbase than Debian :-D


Last time I checked, ChromeOS is a gentoo derivative that doesn't use systemd, so yes this but unironically.


Huh, TIL.

> ChromeOS (sometimes styled as chromeOS and formerly styled as Chrome OS) is a proprietary operating system designed and developed by Google. It is derived from the open-source ChromiumOS operating system (which itself is derived from Gentoo Linux)

- https://en.wikipedia.org/wiki/ChromeOS


It sort of makes sense. Gentoo is basically automated Linux From Scratch — you can make anything. It's like Yocto/OpenEmbedded but for PCs. It even uses the same language.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: