`
fujohnwang
  • 浏览: 153115 次
社区版块
存档分类
最新评论
文章列表
----------------------------------------------- NoSQL Data Stores ----------------------------------------------- * Key-value stores:     Redis, Scalaris, Voldmort(***), and Riak. * Document stores:     Couch DB, MongoDB, and SimpleDB. * Record stores:     BigTable, HBase, HyperTable, and ...
    隔离的概念其实很简单, 但越是简单的东西, 就越不能小看。应用得当的话, 可以让我们的系统“天生丽质”, 一出生就在某些方面领先他人一步, 不信, 咱上眼瞧...隔离以提高系统的容灾     部门本来有一个项 ...
Maybe you have known it before, or maybe not, no matter what, It’s a funny topic. The Code below seems simple, so let’s see what happens with it: public class MyTest extends TestCase { private int count = 0; public void test1() { count++; assertEquals(1, count); } ...
        There are several patterns you can take when you have faced with balances on transaction management, especially when you are using spring framework to do such things. The idea is not mine, I just give a brief note here, although I have used some patterns myself, but I didn't name them. ...
扩展Spring的依赖注入行为两例 王福强(Darren.Wang) Table of Contents 1. 注入以Enum作为Key的Map依赖 1.1. 自定义FactoryBean 1.2. 自定义BeanPostProcessort 1.3. 自定义PropertyEditor? 2. 注入容器中某一类型所有依赖对象 2.1. 自定义FactoryBean 2.2. 自定义BeanPostProcessor ...
原文出处:http://www.artima.com/scalazine/articles/selfless_trait_pattern.html       Summary        This article describes a simple Scala design pattern that allows library designers to provide services that their clients can access either through mixins or imports. Giving users a choice ...
原文出处:http://www.artima.com/scalazine/articles/stackable_trait_pattern.html One way to use Scala's traits is as stackable modifications. In this pattern, a trait (or class) can play one of three roles: the base , a core , or a stackable . The base trait (or abstract class) defines an ...
  我完全可以屏蔽这种言论, 不过, 我就是要放出来,因为我发现, 当100号人里,就1号这样的,看着也挺有意思的...  
Using Java Reflection In a DSL-like Style Using Java Reflection In a DSL-like Style 王福强(Darren.Wang) <fujohnwang@gmail.com > I know someone must have heard or known about a library named FEST-Reflect, and maybe you are just using it. It's an interesting li ...
Scala Pattern 之 Loan Pattern Loan Pattern从字面上的来看,意思就是, “我 ”贷给“你 ”某样东西, 用完后还得还“我 ”。 在Scala里面,你可以使用这种模式来实现相应资源的管理和使用。这跟Spring框架里JdbcTemplate+相应Callback的实践很相似, 不过, 在表达上面, 用Scala要更简洁,明确。 因为Java7之后才能用到Closure, 所以,在此之前,Spring给出的Template Method Pattern + Callback的最佳实践, ...
这个“骗骗他”应该早就出来了,今天偶尔又看到一个人的blog上提到,就转贴一下。 写道 10 Lessons The presentation does a good job explaining each lesson, but the list is... 1. Partition Everything - if you can't split it, you can't scale it. Split everything into manageable chunks by function and data. 2. Asynchrony Everywhere ...
框架的API设计,应该是一个从粗粒度到细粒度的精炼过程,而不能一开始就提供细粒度却没有考虑周全的API,这样的情况会: 1- 造成框架使用者的窘迫, 当框架实现中存在bug的时候, 使用者将难以绕过这些bug而前行, 只能 ...
Table of Contents 1. 创建Maven自定义Archetype一般流程 2. 可能遇到的一些问题 2.1. Java文件对应的package被忽略 2.2. 多余文件的清理 2.3. 二进制文件的损坏 3. 最初草稿 阅读级别: basic level 以下只是Maven自定义Archetype创建的简单流程以及期间可能碰到的问题的一些整理性内容,大部分内容从Maven的官方站点或者相关书籍中都可以找到。 关于Arch ...
这篇blog对java, clojure和scala中的并发处理模型进行了对比, 主要挑选了三种语言所代表的主要并发处理模型, 跟我一直在策划的一个topic有些相近, 不过, 他也只是一篇blog,我可是想整个都捣鼓一遍, 当然, 前提是得有时间...   http://fupeg.blogspot.com/2009/10/concurrency-patterns-java-scala-and.html   (原文可能得翻墙才能看)
give it a try, it's really cool , especially after seeing the video on its site.   http://projectlombok.org/
Global site tag (gtag.js) - Google Analytics