`
hijack
  • 浏览: 37372 次
  • 性别: Icon_minigender_1
  • 来自: Mars
最近访客 更多访客>>
文章分类
社区版块
存档分类
最新评论

MinimalInterface?

阅读更多
Martin Fowler引起的关于MinimalInterface和HumaneInterface争论上周粗略浏览过。今天sishen在自己blog上作了一些总结,同时zhouyan在BBS上也说起同样的问题。

引用
写个程序用到java.util.regex.Matcher。这个类有find()、find(int)、lookingAt(),可就是没有lookingAt(int)。只好写一段程序自己实现。

后来觉得不爽,google了一下原来在1.4的时候就有人把“没有lookingAt(int)”作为一个bug报上去了。sun给的答复“Closed, will not be fixed”,理由是在5.0版本里面已经提供了region(int, int),通过它和lookingAt()就可以实现lookingAt(int)的功能。拜托,就算这样,你加一个lookingAt(int)会有多少工作量啊,能节省coder多少时间。而且,find、find(int)都不会reset该Matcher的,而region则会reset。万一碰到需要lookingAt(int)但是不能reset的时候你叫人家怎么办呢?


More: http://jack.lifegoo.com/?p=68
分享到:
评论

相关推荐

    tez-0.10.1-SNAPSHOT-minimal.tar.gz

    3. **tez-api-0.10.1-SNAPSHOT.jar**:API(Application Programming Interface)文件提供了开发人员编写Tez应用程序所需的接口和类库。 4. **tez-runtime-library-0.10.1-SNAPSHOT.jar**:运行时库,包含Tez执行...

    Samsung Intel Citrix Mini-OS minimal Posix

    标题中的“Samsung Intel Citrix Mini-OS minimal Posix”指的是一个特定的操作系统环境,它是由三星(Samsung)、英特尔(Intel)和思杰(Citrix)合作开发的,主要用于嵌入式设备或轻量级计算场景。这个Mini-OS是...

    适用于插上usb线,手机adb连接不上,找不到adb interface驱动的情况.

    2. 安装驱动程序:对于"adb interface usb driver",可能需要特定的驱动程序,例如Google的Universal ADB Driver或第三方工具如“Minimal ADB and Fastboot”。安装这些驱动后,电脑应该能识别到你的手机。 3. 驱动...

    SYSTEM V APPLICATION BINARY INTERFACE Edition 4.1, UNIX ABI pdf

    compiled application programs and a minimal environment for support of instal- lation scripts. Its purpose is to document a standard binary interface for applica- tion programs on systems that ...

    rEFInd-minimal-master.zip_Junk_Say Say Say_refind manjaro

    4. EFI兼容:rEFInd设计用于EFI(Extensible Firmware Interface)系统,这是现代计算机的BIOS替代品。 Manjaro Linux的特点包括: 1. AUR支持:Manjaro提供了对Arch User Repository (AUR)的集成,使得用户能够...

    Android代码-Location Map Viewer

    LocationMapViewer An app that can display geografic info in a map. It has support for gpx and ...Minimal requirements: Android 2.3.7 (API 10), internet/wifi-connection to download geodata and a SD-Card t

    数位板压力测试

    Wintab* Interface Specification 1.1: 16- and 32-bit API Reference By Rick Poyner Revised February 11, 2012 This specification was developed in response to a perceived need for a standardized ...

    Everything

    Small installation file Clean and simple user interface Quick file indexing Quick searching Minimal resource usage Share files with others easily Real-time updating

    ESP8089 Datasheet

    achieve wireless connectivity through the SPI/SDIO interface. ESP8089 allows direct connection to cellular baseband and application processors via SPI/ SDIO or memory-mapped parallel interfaces. Its ...

    Learning.Django.Web.Development

    By the end of the book, you will be able to leverage the Django framework to develop a fully functional web application with minimal effort. Table of Contents Chapter 1. Introduction to Django ...

    apb_barn4a3_Apb_ThePower_AMBAAPBprotocol_

    It defines a low-cost interface that is optimized for minimal power consumption and reduced interface complexity. ... You can use it to access the programmable control registers of peripheral devices...

    python3.6.5参考手册 chm

    PEP 3333: Python Web Server Gateway Interface v1.0.1 Other Language Changes New, Improved, and Deprecated Modules email elementtree functools itertools collections threading datetime and time ...

    Everything-1.2.1.371

    Everything search engine Small installation file Clean and simple user interface Quick file indexing Quick searching Minimal resource usage Share files with others easily Real-time updating More...

    everything

    在windows下的小众查找工具;Small installation file Clean and simple user interface Quick file indexing Quick searching Minimal resource usage Share files with others easily Real-time updating

    iPhone开发基础教程 英文版:Beginning iPhone 3 Development: Exploring the iPhone SDK

    Assuming only a minimal working knowledge of Objective-C, and written in a friendly, easy-to-follow style, this book offers a complete soup-to-nuts course in iPhone and iPod touch programming....

    OpenAPI v3.0.2

    The OpenAPI Specification (OAS) defines a standard, language-agnostic interface to RESTful APIs which allows both humans and computers to discover and understand the capabilities of the service ...

    quill-minimal-example:使用Quill和ngx-quill的极简主义示例

    您还可以使用ng generate directive|pipe|service|class|guard|interface|enum|module 。建造运行ng build来构建项目。 构建工件将存储在dist/目录中。 使用--prod标志进行生产构建。运行单元测试运行ng test以通过...

    [完美破解]VMProtect Ultimate 3.0.9 Build 695+ WebLM2.4.2.21

    The Ultimate edition of VMProtect allows to add serial numbers to the protected application with minimal efforts. The feature is supported by PayPro Global e-commerce provider, so you even don’t need...

    Unlocker1.9.0.1

    Everything search engine ...Clean and simple user interface Quick file indexing Quick searching Minimal resource usage Share files with others easily Real-time updating More...ers by name instantly.

Global site tag (gtag.js) - Google Analytics