首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > 编程 >

看看哪位高手的API更长

2013-08-16 
看看谁的API更长最长的域名?http://www.mamashuojiusuannizhucedeyumingzaichangbaidudounengsousuochulai

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

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

(1)Windows/Win32API

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

http://ashutoshmehra.net/blog/2010/02/long-function-names/

(2)Mac OS X/Cocoa

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

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

(3)Java

InternalFrameInternalFrameTitlePaneInternalFrameTitlePaneMaximizeButtonWindowNotFocusedState (92)
supportsDataDefinitionAndDataManipulationTransactions (53)

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

(4)Windows/.NET

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

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


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

比如:
spring-core 是 StandardReflectionParameterNameDiscoverer.java   45
spring-aop 是 AbstractInterceptorDrivenBeanDefinitionDecorator.java    52
spring-webmvc 是 AbstractAnnotationConfigDispatcherServletInitializer.java        56
spring-context 是 Jsr310DateTimeFormatAnnotationFormatterFactory.java      50

热点排行