Comment #20 on issue 70 by stolsvik: Support any annotation in place of  
@Inject
http://code.google.com/p/google-guice/issues/detail?id=70

@Robbie: As I tried to point out: Who are you to decide how others like  
their code?!

IoC is a principle so amazingly simple that arguing around "stick with your
framework" makes no sense at all. It is FULLY possible to write  
code "framework
agnostic" when it comes to the IoC principle. POJO, you know.

I find those "If you use Oracle, stick to Oracle" thoughts you display here  
rather
careless. What about sticking in the obvious word "currently" in the first  
part of
that sentence? Given that, I find the latter part outright stupid.

See, some people write code that will have multi-decades lifespans. It is  
prudent to
strive towards writing "framework agnostic" code then. It makes the code  
way more
future proof, maintainable, and leaves the options open in regard to  
framework
provider. (I feel like I am arguing for "use standards". Do one have to  
argue for
something like that in these days?).

It seems to me that you think Guice is the end-all of pretty much any  
frameworks. I,
however, thought Spring was pretty good. But, since I wrote "framework  
agnostic" code
(what does that mean, really?! I wrote java classes taking their  
dependencies in the
constructor), it took me all of a couple of hours to throw all of Spring  
out the
door, instead embracing the obviously better solution that Guice gave. But  
I had to
write pretty many google-specific "@Inject" all around, giving me a feeling  
of being
sucked in to a proprietary solution that Spring never gave me. Maybe Guice  
isn't the
best implementation of IoC possible? I'd want to have the option of fully  
abandoning
it when the superior solution suddenly appears.

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"google-guice-dev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/google-guice-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to