`
hijack
  • 浏览: 36606 次
  • 性别: 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
分享到:
评论

相关推荐

    USB3300_Hi-Speed USB Host, Device or OTG PHY with ULPI Low Pin Interface.pdf

    用于USB3300设计的详细说明文档,包含模式和阻抗配置的寄存器说明等。... In addition the USB3300 integrates all DP and DM termination resistances and requires a minimal number of external components.

    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 ...

    imgui-master.zip_DIRECTX_IMGUI_opengl_overlay_win32

    Bloat-free Immediate Mode Graphical User interface for C++ with minimal dependencies

    iOS 人机交互指南(iOS Human Interface Guidelines)

    Onscreen User Help Is Minimal 16 Most iOS Apps Have a Single Window 17 Two Types of Software Run in iOS 17 Safari on iOS Provides the Web Interface 18 Chapter 2 Human Interface Principles 21 Aesthetic...

    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 ...

    Beginning iPhone Development: Exploring the iPhone SDK

    Assuming only a minimal working knowledge of Objective-C, and written in a friendly, easy-to-follow style, Beginning iPhone Development offers a complete soup-to-nuts course in iPhone and iPod Touch ...

    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...

    Beginning Artificial Intelligence with the Raspberry Pi-Apress(2017).pdf

    The Raspberry Pi was initially designed to be able to sense and control devices with minimal interface requirements, and perhaps more importantly, minimal software requirements. PC software ...

    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...

    nxp 带nfc的单片机

    nxp 带nfc的单片机,Cortex©-M0+ MCU with built-in NFC interface. LPC8N04 supports an effective system solution with a minimal number of external components for NFC related applications.

Global site tag (gtag.js) - Google Analytics