Class ActionBarSherlockTrojanHorse

閲覧: 1,563 回
最初の未読メッセージにスキップ

BusDeath

未読、
2012/05/29 8:01:322012/05/29
To: actionba...@googlegroups.com
What makes the class ActionBarSherlockTrojanHorse?

Jake Wharton

未読、
2012/05/29 11:30:282012/05/29
To: actionba...@googlegroups.com
It provides access to package-scoped things inside the support library which are not public.

---
Jake Wharton
http://about.me/jakewharton


On Tue, May 29, 2012 at 5:01 AM, BusDeath <andre.ze...@googlemail.com> wrote:
What makes the class ActionBarSherlockTrojanHorse?

Mark Murphy

未読、
2012/05/29 11:40:222012/05/29
To: actionba...@googlegroups.com
On Tue, May 29, 2012 at 11:30 AM, Jake Wharton <jakew...@gmail.com> wrote:
> It provides access to package-scoped things inside the support library which
> are not public.

All else being equal, particularly if you're doing a bunch of other
refactoring, you might consider changing the name of the class. I have
had a couple of people comment on this to me, wondering why we are
adding a Trojan horse to our apps. It's the sort of thing where the
class name raises more questions than it may be worth.

Just my 2 cents.

--
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

_The Busy Coder's Guide to Android Development_ Version 3.7 Available!

Shane Perry

未読、
2012/05/29 11:44:332012/05/29
To: actionba...@googlegroups.com
I would tend to agree with Mark on this one. The name change would be a wise move.

Shane

Christopher Jenkins

未読、
2012/05/29 12:36:312012/05/29
To: actionba...@googlegroups.com
Ahh I quite like the name, maybe unlike some people I read the comments in the class before I asked questions..

Buuuut, I can see the issue (if) there was an exception and someone checked a stack trace could give your app a bad rep seeing TrojanHorse in the trace (or de-dex'ed for that matter). Rare I know.. but probably not a risk we should take...

Jonathan Steele

未読、
2012/05/30 1:21:032012/05/30
To: actionba...@googlegroups.com
I would rename to the ActionBarSherlockExtensions

Jake Wharton

未読、
2012/06/03 4:10:452012/06/03
To: actionba...@googlegroups.com

Jake Wharton

未読、
2012/06/03 5:23:282012/06/03
To: actionba...@googlegroups.com
Had to rename it to Watson.java since IntelliJ IDEA wouldn't compile the previous choice :(

ChrisR

未読、
2012/06/24 0:03:352012/06/24
To: actionba...@googlegroups.com
Thanks a shame, the upside down characters were cool (although potentially confusing).

全員に返信
投稿者に返信
転送
新着メール 0 件