<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom"><title type="text">博客园_Kevin Dai's Weblog</title><subtitle type="text">技术点滴，生活心情</subtitle><id>http://feed.cnblogs.com/blog/u/25170/rss</id><updated>2009-11-13T15:47:36Z</updated><author><name>Kevin Dai</name><uri>http://www.cnblogs.com/Devfly/</uri></author><generator>CNBlogs BlogServer</generator><link rel="alternate" type="text/html" href="http://www.cnblogs.com/Devfly/"/><link rel="self" type="application/atom+xml" href="http://feed.cnblogs.com/blog/u/25170/rss"/><entry><id>http://www.cnblogs.com/Devfly/archive/2009/11/13/get-put-principle-in-java-generics.html</id><title type="text">Java泛型里的Get and Put法则</title><summary type="text">在里写参数类型时，如果是要读取，我们应该用extends，如果是要写值或者改变，我们应该用super。Java的泛型和C#的泛型真是大不一样啊，还是C#的好用。 </summary><published>2009-11-13T15:43:00Z</published><updated>2009-11-13T15:43:00Z</updated><author><name>Kevin Dai</name><uri>http://www.cnblogs.com/Devfly/</uri></author><link rel="alternate" href="http://www.cnblogs.com/Devfly/archive/2009/11/13/get-put-principle-in-java-generics.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/Devfly/archive/2009/11/13/get-put-principle-in-java-generics.html"/></entry><entry><id>http://www.cnblogs.com/Devfly/archive/2009/11/10/Consider-static-factory-methods-instead-of-constructors.html</id><title type="text">《Effective Java》读书笔记 Item 1：考虑静态工厂方法，而不是构造器</title><summary type="text">众所周知，要想能获取一个类的实例，该类得要提供一个public的构造器。但是《Effective Java》书中说还有一个方法，那就是提供静态工厂方法（static factory method），该方法时静态，同时可以根据参数返回一个类的实例。这里的静态工厂方法（static factory method）和设计模式里的工厂方法（factory method）是不一样的，我觉得工厂方法注重的是多态。 </summary><published>2009-11-09T16:38:00Z</published><updated>2009-11-09T16:38:00Z</updated><author><name>Kevin Dai</name><uri>http://www.cnblogs.com/Devfly/</uri></author><link rel="alternate" href="http://www.cnblogs.com/Devfly/archive/2009/11/10/Consider-static-factory-methods-instead-of-constructors.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/Devfly/archive/2009/11/10/Consider-static-factory-methods-instead-of-constructors.html"/></entry><entry><id>http://www.cnblogs.com/Devfly/archive/2009/11/06/musing-of-2010-11-06.html</id><title type="text">看书看书</title><summary type="text">看书看书，争取在月底前把《Java Generics and Collection》、《Java Concurrency in Practice》看完。其他的（分布式、架构方面的东东）先放放，先把这些基础打好。多写写代码。话说《Effective Java》基本看完了，还是很想记录记录的，今晚回来就写Item1的读书笔记吧，感觉这本书还是非常不错的。 </summary><published>2009-11-06T05:57:00Z</published><updated>2009-11-06T05:57:00Z</updated><author><name>Kevin Dai</name><uri>http://www.cnblogs.com/Devfly/</uri></author><link rel="alternate" href="http://www.cnblogs.com/Devfly/archive/2009/11/06/musing-of-2010-11-06.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/Devfly/archive/2009/11/06/musing-of-2010-11-06.html"/></entry><entry><id>http://www.cnblogs.com/Devfly/archive/2009/11/02/dynamo.html</id><title type="text">嘿嘿，我就不信搞不定你--Dynamo</title><summary type="text">记得第一次看到Dynamo论文时，当时看了一点点，就不看了，只知道它是个Key-value store。感觉很深奥。现在又拿起它，昨天晚上看了看，感觉又吸收了一部分，把Consistent Hashing彻底搞懂了，Dynamo采取变通的方法，引入了虚拟结点，引入了虚拟结点带来了几个好处。还大概看了一下Last.fm上一个Consistent Hashing实现（他是采用一致性哈希算法来做分布式缓存的，这样在某个Server当掉时就不需要remap全部）。Dynamo强调牺牲一致性换来可用性和高效性，最后还是要确保一致性（BASE）！看过一些文章后，我感觉冲突处理的办法不是特定的，需要结合业务来处理，各种情况的冲突处理是不一样的。昨天又温习了MapReduce计算模型，好简单好经典，但是就是能让你为之一震。</summary><published>2009-11-02T04:56:00Z</published><updated>2009-11-02T04:56:00Z</updated><author><name>Kevin Dai</name><uri>http://www.cnblogs.com/Devfly/</uri></author><link rel="alternate" href="http://www.cnblogs.com/Devfly/archive/2009/11/02/dynamo.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/Devfly/archive/2009/11/02/dynamo.html"/></entry><entry><id>http://www.cnblogs.com/Devfly/archive/2009/10/31/BASE-An-ACId-Alternative.html</id><title type="text">推荐文章：BASE: An Acid Alternative</title><summary type="text">In partitioned databases, trading some consistency for availability can lead to dramatic improvements in scalability. </summary><published>2009-10-31T07:55:00Z</published><updated>2009-10-31T07:55:00Z</updated><author><name>Kevin Dai</name><uri>http://www.cnblogs.com/Devfly/</uri></author><link rel="alternate" href="http://www.cnblogs.com/Devfly/archive/2009/10/31/BASE-An-ACId-Alternative.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/Devfly/archive/2009/10/31/BASE-An-ACId-Alternative.html"/></entry><entry><id>http://www.cnblogs.com/Devfly/archive/2009/10/28/availability-consistency.html</id><title type="text">一致性、可用性略记</title><summary type="text">在必须强调365天每天24小时都可用的网站中，很多大型网站都是妥协了暂时的一致性，保证了可用性，但是最后系统还是要保证最终一致性。如果单纯依靠ACID，那并发数会降低，会造成一定的不可用。不过有的功能的确是需要严格一致性的，比如资金划拨这样的动作。支付宝首席架构师程立的那个PPT里也是这样说的，可以对不同的功能进行分级。 </summary><published>2009-10-28T03:29:00Z</published><updated>2009-10-28T03:29:00Z</updated><author><name>Kevin Dai</name><uri>http://www.cnblogs.com/Devfly/</uri></author><link rel="alternate" href="http://www.cnblogs.com/Devfly/archive/2009/10/28/availability-consistency.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/Devfly/archive/2009/10/28/availability-consistency.html"/></entry><entry><id>http://www.cnblogs.com/Devfly/archive/2009/09/24/awful-generics-in-java-and-more.html</id><title type="text">Java的泛型原来这样让人不舒服</title><summary type="text">Java泛型中的类型擦除，意为只在编译时刻进行类型检查，实际在运行时，编译器会自动插入相应的转换（cast）代码。</summary><published>2009-09-23T16:36:00Z</published><updated>2009-09-23T16:36:00Z</updated><author><name>Kevin Dai</name><uri>http://www.cnblogs.com/Devfly/</uri></author><link rel="alternate" href="http://www.cnblogs.com/Devfly/archive/2009/09/24/awful-generics-in-java-and-more.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/Devfly/archive/2009/09/24/awful-generics-in-java-and-more.html"/></entry><entry><id>http://www.cnblogs.com/Devfly/archive/2009/09/18/can-you-write-a-right-binary-search-algorithm.html</id><title type="text">您能写出一个正确的二分查找算法吗？</title><summary type="text">您能写出一个正确的二分查找算法吗？文末还有一个有趣的问题。</summary><published>2009-09-17T18:07:00Z</published><updated>2009-09-17T18:07:00Z</updated><author><name>Kevin Dai</name><uri>http://www.cnblogs.com/Devfly/</uri></author><link rel="alternate" href="http://www.cnblogs.com/Devfly/archive/2009/09/18/can-you-write-a-right-binary-search-algorithm.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/Devfly/archive/2009/09/18/can-you-write-a-right-binary-search-algorithm.html"/></entry><entry><id>http://www.cnblogs.com/Devfly/archive/2009/09/17/some-useful-sql-collection.html</id><title type="text">常用SQL语句收集</title><summary type="text">一些常用SQL集锦。</summary><published>2009-09-17T12:00:00Z</published><updated>2009-09-17T12:00:00Z</updated><author><name>Kevin Dai</name><uri>http://www.cnblogs.com/Devfly/</uri></author><link rel="alternate" href="http://www.cnblogs.com/Devfly/archive/2009/09/17/some-useful-sql-collection.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/Devfly/archive/2009/09/17/some-useful-sql-collection.html"/></entry><entry><id>http://www.cnblogs.com/Devfly/archive/2009/09/07/1561605.html</id><title type="text">要举行省程序设计大赛了，正好写写算法文章</title><summary type="text">江苏要举行程序设计大赛了，正好写写算法文章。</summary><published>2009-09-07T01:19:00Z</published><updated>2009-09-07T01:19:00Z</updated><author><name>Kevin Dai</name><uri>http://www.cnblogs.com/Devfly/</uri></author><link rel="alternate" href="http://www.cnblogs.com/Devfly/archive/2009/09/07/1561605.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/Devfly/archive/2009/09/07/1561605.html"/></entry></feed>
