learning scalaz 进阶
Tagged type 1 2 type Tagged[U] = { type Tag = U } type @@[T, U] = T with Tagged[U] Suppose we want a way to express mass using kilogram, b
Tagged type 1 2 type Tagged[U] = { type Tag = U } type @@[T, U] = T with Tagged[U] Suppose we want a way to express mass using kilogram, b
猛击我 polymorphism Parametric polymorphism 1 def head[A](xs: List[A]): A = xs(0) in this function head, it takes a list of A’s, and returns
业务分析 供货商将药品目录整理完成, 供货商供货供货区域内的医院, 医院向所在区域供应药品的供货商创建采购单 创建采购单(基本信息) 设置采购药品明细, 添加采购药品, 设置采购量 审核采购单, 由卫生室所在乡/镇卫生院审核提交的采购单 审核通过, 供货商受理 审核不通过, 退
What is Functional Programming In other words, functions that have no side effects. Performing any of the following actions directly would i
The philosophy behind Akka The philosophy behind Akka is simple: make it easier for developers to build correct, concurrent, scalable, and f
Using Java classes in Scala 1 2 3 4 5 6 7 8 9 10 11 import org.joda.time.DateTime; import org.joda.time.Days; import java.util.Date; public
数据字典 系统中定义的类型数据, 在数据字典表定义. 数据字典明细表 (dictinfo) info typecode 外键关联 数据字典类型表 (dicttype) typecode primary key dictcode 1 2 -- 选择药品 select * f
There are two kinds of automated tests: ones you write (the most common) and ones you generate for your code. If you’re a Java developer and
Think of an actor as an object that processes a message (your request) and encapsulates state (state is not shared with other actors). The a
模型 单位信息 系统中所有业务关联都是关联的单位信息表的id 卫生局管理卫生院, 卫生院管理医院, 行政管理 医院信息表(useryy) id DQ, 地区, 村 监督单位(userjd) DQ, 市或乡 监督供应商(usergys) 供货商供货区域 供货商id 地区
项目背景 用户角色 监管单位: 卫生局, 卫生院 控制 监视 医院: 卫生室 TODO 供货商: 供货商 系统管理员 业务流程 角色的活动 功能模块 细化业务流程, 功能模块划分, 需求分析在项目当中, 要不断提炼, 维护 采购单管理 创建采购单 采购单维护 采购单递交 采
入门 It provides the following features: Error detection—Think of the compiler as a suite of test cases that can detect common type and other
入门 Apache CXF = Celtix + Xfire, 开源 web Service 框架, 支持多种协议, soap1.2,1.1, XML/HTTP, RESTful, CORBA Cxf基于SOA总线结果, 依靠 spring 完成模块的集成 demo 服务端 1
Socket 模拟天气查询 API 服务端 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 // 启动端口监听, 端口号建议在1万以后 ServerSocket serverSocket = new ServerSocket(
Building web application 用户故事 You can move one more story from the ready phase to the dev phase. A pair of developers looking for new work c