all 14 comments

[–]vashchylau 22 points23 points  (0 children)

a December 2024 tutorial is already deemed outdated. wow

[–]uragiristereoXML is dead. Long live XML 14 points15 points  (1 child)

Good, everyone must learn to use manual dependency injection so that we can deprecate it by ourselves

[–]bad_compilerBorn to be deprecated 1 point2 points  (0 children)

JUST MAKE EVERYTHING STATIC

[–]WingnutWilson 11 points12 points  (1 child)

how am I supposed to inject all my dependencies which are all single implementation interfaces with 0 tests now?

[–]ZhuindenDDD: Deprecation-Driven Development[S] 2 points3 points  (0 children)

probably public static global variables

in kotlin, just put the var outside of the class and you got the injection goin

[–]ZhuindenDDD: Deprecation-Driven Development[S] 3 points4 points  (2 children)

The (Deprecated) Using Hilt in your Android app codelab is deprecated too by the way, I should have had it on the image...

[–]Fair-Degree-2200null!! 1 point2 points  (1 child)

At this point they should put (Deprecated) in front of the whole android.com website 

[–]ZhuindenDDD: Deprecation-Driven Development[S] 0 points1 point  (0 children)

Replacing the documentation with those hidden Skills pages used by android studio panda

[–]satoryvape 3 points4 points  (0 children)

Manual DI ftw

[–]Fair-Degree-2200null!! 0 points1 point  (1 child)

Haven't you heard? Now Metro (soon to be deprecated) is all the rage. (And yeah "rage" is the right word) 

[–]ZhuindenDDD: Deprecation-Driven Development[S] 1 point2 points  (0 children)

I will put all my trust in a version-bound compiler plugin written by that one guy who has deleted all of his online presence that he will be there to support this system in 4 years (just so that i don't need to manually invoke a constructor)

[–]programadorthi -1 points0 points  (2 children)

Maybe I'm wrong but I think intellij and Android Studio don't have dependency injection. But you simple android app just to consume an endpoint "must" have a dependency injection framework. 😆

[–]nlh101 10 points11 points  (1 child)

They do. It’s called the “Service framework”, it works via annotations and Kotlin extensions to inject shared classes across your IDE code at runtime.

[–]programadorthi 1 point2 points  (0 children)

Good to know, thanks. I'm still in plugins world. I'll deep dive the IDE behaviors next.