看完《书剑恩仇录》,黯然神伤
浩浩愁,茫茫劫 短歌终,明月缺 郁郁佳城,中有碧血 碧亦有时尽,血亦有时灭 一缕香魂无断绝 是耶非耶?化为蝴蝶
浩浩愁,茫茫劫 短歌终,明月缺 郁郁佳城,中有碧血 碧亦有时尽,血亦有时灭 一缕香魂无断绝 是耶非耶?化为蝴蝶
引子: 大家上过操作系统的都知道“生产者-消费者(Producer-Consumer)”模型,主要讨论的是进程(线程)间的互斥和同步问题,关键是对锁(lock)的申请、独占和释放,在这里我就不罗嗦了。原先我写的Java代码如下: public class Producer extends Thread{ private ProductList products = [more...]
Str#6. "Four Kinds of Features" Strategy // identifying purpose and features- Be certain to include features that cover the following:1. Log important information.2. Conduct [more...]
VERSION CODE NAME RELEASE DATEJDK 1.1.4 Sparkler Sept 12, 1997JDK 1.1.5 Pumpkin Dec 3, 1997JDK 1.1.6 Abigail April 24, 1998JDK 1.1.7 Brutus Sept 28, [more...]
1、乱用GOTO语句(上下跳转看起来非常方便)2、大量使用全局变量(无法控制它们值的变化,例如在非预期的子程序的执行中)3、不声明变量类型就使用(隐含类型可以在Fortran中使用,例如,一个实数可以截短为一个整数而没有引起程序员的注意)4、非结构化的、组织混乱的大块代码用于多个任务(一块可能有上千行代码)5、注释行太少(由于它们并不被执行!) [more...]
ServiceExceptionType:package pqp.service;public enum ServiceExceptionType{ DB_FAILURE ,USER_EXISTED [more...]
Identifying system purpose and featuresA purpose is an overall desired result, the aim of one's actions. Features are specific capabilities for the system under consideration.This section [more...]
Str#1d. "Invest an Hour" Strategy // activities and model components- Rather than philosophize endlessly, invest an hour in each of several different ways of modeling a particularly challenging [more...]