zoukankan      html  css  js  c++  java
  • 书评:Pro .NET 4 Parallel Programming in C#

    Pro .NET 4 Parallel Programming in C#


    ISBN-13 (pbk): 978-1-4302-2967-4

    ISBN-13 (electronic): 978-1-4302-2968-1


    看了网上的评价,说这本书很适合入门的看,而且例子多,都可以运行,例子写的很严谨!NND,这本书真的是有点烂!

    优点:很全面!

    缺点:没深度!而且例子经不起推敲!而且很容易误导读者。我尝试了几个例子,大多和他讲的不同!哎,我真是浪费不起这点时间啊!真的不能像小朋友那样,一个一个例子慢慢试!


    转一篇老外写的书评:http://www.adampetersen.se/reviews/pronetparallelprog.htm

    Last month I wrote about "Design Patterns for Decomposition and Coordination on Multicore Architectures" . The patterns target the .NET framework and build heavily on the .NET 4 parallel programming constructs. While providing detailed code samples capturing the idiomatic usage in C#, the book doesn't really focus on the language details. Rather, a potential reader is expected to master the basics in order to make qualified decisions and balance trade-offs between different implementation techniques when applying the patterns. My idea when starting to read Pro .NET 4 Parallel Programming was that the book would fill the role as preparation for such high-level material. I hope you caught my usage of past tense. Even if things looked promising, all expectations fell flat.

    In any technical book I expect to get an initial overview by reading the table of contents. From here, things look quite decent. After the obvious introduction to parallel programming the book seems to take a fast pace covering, tasks, data sharing,parallel loops, parallel LINQ and even some stuff on testing and debugging. If covered in enough details, such a content is indeed interesting. So, what went wrong? Let's start by discussing something fundamental. Something like the code.

    I do advocate and expect code in programming books. Lots of code, actually. And Pro .NET 4 Parallel Programming is full of it. However, that's just from a quantitative aspect. What looked promising initially, soon turned out as a source of constant disappointment. With virtually no exceptions, the samples are blocks of repetitive code snippets far removed from any resemblance with production code of even acceptable quality. While some samples manage to get their points along, others, like the thread local storage (TLS) samples, are a complete mess. The examples have been dumbed-down to a level where they fail to communicate the problem discussed. So, the samples fail their pedagogical purpose. From a design perspective things get even worse. The programs regularly violate multiple solid design principles, most notably TDA. The result is a wall of code with a brittle procedural structure.

    Until now, I've never managed to write about parallel programming without mentioning Erlang (like here here and here ). By design, Erlang gets rid of so much unnecessary complexity inherent in the traditional techniques for parallelism. I won't go down that path this time. But I'll point to an Erlang book to illustrate how a successful teaching project like this is executed. Erlang and OTP in Action walks the reader through production-quality code solving real problems. Such a work not only introduces a particular subject; it serves as a starting point for the reader to continue explorations within the domain. It also becomes a way to share expertise through idioms and valuable insights into the language. Sure, it's much harder, but why write a book if it doesn't provide value? Even if assembling interesting content, Pro .NET 4 Parallel Programming gives the impression of an effort with little thought or creativity behind it. At the end, I did try hard to come up with some positive aspect of the book. Sure, the writing style itself is decent. But with the name of the author as a possible exception, there's little that attracts me to this book.


    确实,傻的不能傻的例子,但是我还是只能硬着头皮看下去。。因为没有好书了。。。不过,有没有必要看下ErLang?RabbitMQ就是用它写的



  • 相关阅读:
    Search for a Range 分类: Leetcode(查找) Leetcode(排序) 2015-04-10 15:34 23人阅读 评论(0) 收藏
    First Missing Positive 分类: Leetcode(排序) 2015-04-09 17:13 25人阅读 评论(0) 收藏
    Insertion Sort List 分类: Leetcode(排序) 2015-04-09 11:26 23人阅读 评论(0) 收藏
    Merge k Sorted Lists 分类: Leetcode(树) 2015-04-09 09:35 17人阅读 评论(0) 收藏
    Merge Two Sorted Lists 分类: Leetcode(排序) 2015-04-08 21:59 24人阅读 评论(0) 收藏
    Merge Sorted Array 分类: Leetcode(排序) 2015-04-08 21:52 24人阅读 评论(0) 收藏
    Sum Root to Leaf Numbers 分类: Leetcode(树) 2015-04-04 21:25 27人阅读 评论(0) 收藏
    计算机网络数据链路层次学习
    ArrayList总结及部分源码分析
    抽象类基本概念
  • 原文地址:https://www.cnblogs.com/puncha/p/3877014.html
Copyright © 2011-2022 走看看