Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Go has had syntax support for DI since day 1 (map, slice, struct literal syntax). JaVA has to choose between frameworks and boilerplate.


I'm not sure what you're describing, but it's not Dependency Injection. People are downvoting you for ignorance, which is unfair. Here is what we are discussing, it does not relate to value object declaration syntax.

https://en.m.wikipedia.org/wiki/Dependency_injection


You use the syntax to inject the dependencies. I'm not ignorant about DI, I was probably downvoted for being unclear. I could also imagine some people down voting because they don't understand that DI is a general concept and not a framework or class of frameworks (at least this confusion seems common).




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

Search: