MySQL 存储过程中的错误处理

2016-09-06
阅读 6 分钟
10.5k
我们在执行普通的 MySQL SQL 语句的时候,都会在某些情况下遇到错误。比如,我们向一张表中插入一条已经存在的记录,导致了主键重复,会出现如下的错误:

Go 语言net/http 包使用模式

2016-09-04
阅读 6 分钟
18.8k
ServrMux 本质上是一个 HTTP 请求路由器(或者叫多路复用器,Multiplexor)。它把收到的请求与一组预先定义的 URL 路径列表做对比,然后在匹配到路径的时候调用关联的处理器(Handler)。

vue-router 2.0 改变的内容

2016-08-17
阅读 3 分钟
19.9k
Beta1.官方说明Beta2.官方说明 2.x 版本的vue-router相比之前的0.7.x版本,有很多破坏性改变: 通用 API 的修改 旧的 router.go() 现在改成了 router.push(). 新的 router.go 类似 window.history.go(): 接受一个数值作为参数在历史栈中导航 新增的方法: router.back() router.forward() 路由配置 所有路由配置都通过一...

FSM In Game

2016-04-03
阅读 15 分钟
2.4k
Introduction The State Interface The StateMachine Interface A Simple Example A Complete Example with Messaging Divide and Conquer Limitations of State Machines Introduction Since the early days of video games finite state machines (FSM) are a common instrument to imbue a game agent with the illus...

[转译]软件团队:培养使命感,而不是制造紧迫感

2016-02-15
阅读 2 分钟
1.8k
我领导着软件开发团队。不可避免的会有人(CEO、股东、顾客)希望我们能进度更快点儿。我经常会被问到-“你觉得团队当前有强烈的紧迫感吗?”,或者更直接的“你能让团队感觉到更强的紧迫感吗?” 更多的请求比较隐晦,但也换汤不换药 - “我真的希望能让这个项目完成,但它还没有火力全开。你能再推进一把吗?”

Swagger Schema

2015-09-07
阅读 6 分钟
5.3k
This is the root document object for the API specification. It combines what previously was the Resource Listing and API Declaration (version 1.2 and earlier) together into one document.