看看谁的API更长

最长的域名?
http://www.mamashuojiusuannizhucedeyumingzaichangbaidudounengsousuochulai.cn/
"妈妈说就算你注册的域名再长百度都能搜索出来"
不过以下这个域名就更牛,人家还申请了吉尼斯。
http://www.thelongestdomainnameintheworldandthensomeandthensomemoreandmore.com/

不局限于平台,不局限于语言,大家来欣赏一下这些长长的类名/方法名。Longest API, GO!

[b](1)Windows/Win32API[/b]

RtlWriteDecodedUcsDataIntoSmartLBlobUcsWritingContext (53)
ConvertSecurityDescriptorToStringSecurityDescriptor{A,W} (52)
ConvertStringSecurityDescriptorToSecurityDescriptor{A,W} (52)

[url=http://ashutoshmehra.net/blog/2010/02/long-function-names/]http://ashutoshmehra.net/blog/2010/02/long-function-names/[/url]

[b](2)Mac OS X/Cocoa[/b]

kCMSampleBufferConduitNotificationParameter_UpcomingOutputPTSRangeMayOverlapQueuedOutputPTSRange (96)
kBluetoothAMPManagerCreatePhysicalLinkResponseAMPDisconnectedPhysicalLinkRequestReceived (88)
NSAccessibilityLayoutPointForScreenPointParameterizedAttribute (62)
NSAccessibilityScreenPointForLayoutPointParameterizedAttribute (62)

[url=http://psionides.eu/2010/10/31/the-longest-names-in-cocoa/]http://psionides.eu/2010/10/31/the-longest-names-in-cocoa/[/url]
[url=http://d.hatena.ne.jp/kaiseh/20080629/1214716829]http://d.hatena.ne.jp/kaiseh/20080629/1214716829[/url]

[b](3)Java[/b]

InternalFrameInternalFrameTitlePaneInternalFrameTitlePaneMaximizeButtonWindowNotFocusedState (92)
supportsDataDefinitionAndDataManipulationTransactions (53)

[url=http://www.pushing-pixels.org/2007/11/07/and-the-longest-jre-class-name-is.html]http://www.pushing-pixels.org/2007/11/07/and-the-longest-jre-class-name-is.html[/url]
[url=http://d.hatena.ne.jp/chiheisen/20101010/1286697081]http://d.hatena.ne.jp/chiheisen/20101010/1286697081[/url]

[b](4)Windows/.NET[/b]

WSSecurity10WSTrustFebruary2005WSSecureConversationFebruary2005WSSecurityPolicy11BasicSecurityProfile10 (103)
UpDownBase+UpDownButtons+UpDownButtonsAccessibleObject+DirectionButtonAccessibleObject
IDataGridColumnStyleEditingNotificationService (86)
GetTextEffectCharacterIndexFromTextSourceCharacterIndex (55)

[url=http://weblogs.asp.net/rchartier/archive/2004/02/05/68350.aspx]http://weblogs.asp.net/rchartier/archive/2004/02/05/68350.aspx[/url]
[url=http://shevaspace.blogspot.jp/2006/12/longest-method-name-in-net-framework.html]http://shevaspace.blogspot.jp/2006/12/longest-method-name-in-net-framework.html[/url]


可以用以下命令查查java工程里最长的类是哪个:
[quote]ls -R | xargs -n1 basename | awk -F'.' '{ print($0,"\t", NF>1?length-length(F)-1:length) }' | sort -k2 -n | grep .java | tail -1[/quote]

比如:
spring-core 是 StandardReflectionParameterNameDiscoverer.java 45
spring-aop 是 AbstractInterceptorDrivenBeanDefinitionDecorator.java 52
spring-webmvc 是 AbstractAnnotationConfigDispatcherServletInitializer.java 56
spring-context 是 Jsr310DateTimeFormatAnnotationFormatterFactory.java 50
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值