Sometimes event-based programming is the better route, or just plain, sequential, and no-frills code can do the job just right.
有时候基于事件编程是更好的方法,或者仅仅直接而简洁的线性代码就能完成任务。
SAX (Simple API for XML), on the other hand, is an event-based programming interface that was offered by members of the XML-DEV mailing list.
另一方面,SAX (Simple API for XML)是基于事件的编程接口,它是由XML - DEV邮件发送列表的成员提供的。
In mainstream languages, event-based interfaces are usually implemented using callback functions, a style familiar from GUI programming and the like.
在主流语言中,基于事件的接口通常使用回调函数实现,这是一种在GUI之类的编程中常见的方式。
应用推荐