摘要:
昨天看到Jacob Leverich写了一篇文章Swift is a lot like Scala介绍Swift 和 Scala 的语法对比,从这篇文章的确可以看到Swift 的语法和 Scala 高度的相似。由于本人在搞iOS开发之前增加搞过多年的.NET 开发,于是技痒,昨晚抽了点时间写了篇Sw... 阅读全文
摘要:
Inmy first post, I explained a little bit about how sagas can be leveraged to deal with the problem of nested transactions—”transactions” that span more than a single message. There were a few community questions related to me redefining the concept of a saga. That’s definitely not what I’m trying t 阅读全文
摘要:
For starters, what is a saga? A saga is a “long-lived business transaction or process”. Okay, so what does that mean? Well, first of all, the “long-lived” part doesn’t have to mean hours, days, or even weeks—it could literally mean something as short as a few seconds. The amount of time is not the i 阅读全文
摘要:
View Page ActivatorIn ASP.NET MVC, it’s common for views to be compiled into classes. In MVC 1.0, we shipped theWebFormViewEngineas the default view engine, which allowed the user to write views using the familiar % % syntax from ASP.NET WebForms. The first time the view is rendered, the view file 阅读全文
摘要:
Controller ActivatorIn MVC 1.0, we introducedIControllerFactoryto allow better dependency injection of controller instances. We also provided theDefaultControllerFactory, which created controller instances with Activator.CreateInstance. Some of this is discussed inPart 2of this series.We realized th 阅读全文