构建比HTTP快100倍的Elixir Redis 服务器 - statetrace
#{port}" )
loop_acceptor(socket)
end
defp loop_acceptor(socket) do
{:ok, client
2 年 前
Elixir语言
world do
IO.puts "Hello World"
end
IO.puts "Function world defined"
end
10 年 前
基于状态机实现的DDD聚合根Order对象
)
@id = id
@state = :draft
end
def submit(order_number, customer_id)
raise
4 个月 前
使用双时态 EventSourcing 修复过去并应对未来
) }
assert_expected_events_in_stream(stream, expected_events)
end[/code]
人类会犯错误。看看下面这个系统中可能发生的例子。
员工工资涨至10K
4 个月 前
DCI和继承并不矛盾
;author]name[/author]
end
end
person = Person. new ( "Trygve Reenskaug" )
module
10 年 前
反腐层ACL - 一个有效的盾牌 - Manuel López Torrent
;
validate_card_number
end
private
def validate_card_number
4 年 前
请大家帮忙,关于存储过程分页的问题...谢谢
', order_field, ' asc '); set sTemp = '>(select max'; end if; if currpage = 1 then
10 年 前
Diet.js是基于Node.js小而快的轻量Web框架
('/', function($){
$.end('Hello World!')
})
<p class = "indent" >
用node
9 年 前
关于数据库事务的基本概念,我还弄不明白。
if count+n<50 then insert students to aClass else throw Exception end if 但是在多用户环境下,是不是就得用到
10 年 前
DCI 的 注册场景Context
); callback(err); } /* ------------------ END -------------------- */ /*---------- 注册场景
10 年 前
一个正则表达式引发的血案
*$" );
assertTrue(pattern.matcher(TEST_VALUE).matches());
double end = System.nanoTime
10 年 前
使用hibernate的一个问题
"inverse" end of a bidirectional association。 字面理解标记此集合作为双向关联的反转端。 没有理解其含义,谁能解释解释含义和作用? 谢谢。
20 年 前
MySQL的事件溯源Event Sourcing表结构
.recorded_at = COALESCE( new .recorded_at, NOW());
END //
-- Before Update
CREATE
4 年 前
分页组件
; private int end; private String linkString=null; private int thispage; private
10 年 前
从 Rails CRUD 迁移到事件溯源
(aggregate_id)
"BankAccount$#{aggregate_id}"
end
legacy_bank_accounts = BankAccount.unscoped
4 个月 前