Reputation: 109
I want to recreate some apps from GitHub using MVVM architecture. But I don't want codes to contain annotations like @inject
, @JvmField
,@JvmStatic
, @Field
etc. to keep codes simple as possible as understandable for me and beginners.
Is there some general rules or any plugin that by following them one could remove annotations?
P.s. It seems that some programmers don't like to use annotations.
Upvotes: 0
Views: 50
Reputation: 1006744
Is there some general rules or any plugin that by following them one could remove annotations?
No.
I want to recreate some apps from GitHub using MVVM architecture
Then rewrite them from scratch, using techniques and technologies that do not require annotations. For example, @Inject
is often used with dependency inversion frameworks like Dagger/Hilt — you would need to use something else (e.g., Koin) or avoid dependency inversion.
to keep codes simple as possible as understandable for me and beginners
Annotations are not especially complicated, and they are reasonably important for many things in modern Android app development.
P.s. It seems that some programmers don't like to use annotations.
No, some programmers do not like to use the old Android Annotations library. That is what that question and its answers are referring to, not annotations in general.
Upvotes: 1