A Little Java, A Few Patterns 在线电子书 图书标签: java 设计模式 Java 函数式编程 计算机 Programming 编程 王垠推荐
发表于2025-02-22
A Little Java, A Few Patterns 在线电子书 pdf 下载 txt下载 epub 下载 mobi 下载 2025
非常自然的带出一些概念和 Pattern
评分看了两章,看不下去了。。。
评分visitor。。。好绕。。
评分刚开始的时候,以为是在看函数式语言,因为new一个新的Object就像是在创建一个list一样,一层叠一层,然后就是讲解为什么需要一个visitor类,当datatype的变种变得越来越多的时候,如果要对每一种都添加一个函数的话,那就需要在不同的类中去添加并且要照顾到变种之间的关系,这就萌生了把所有变种的同名函数集中到一起,那就方便互相查看与验证。再然后就是变种的方法函数只需要一个accept就可以了,然后调用一个visitor进行工作,等于是外包工作给任意多的有功能的函数。 为什么需要外包工作给visitor,那就是没人能一开始就写出完整无缺的程序,随着需求的修改,需要变动程序,那就是visitor pattern发挥作用的时候,可以单独的增加与原来变种平行的类,并且类之间可以互调……
评分很好..
Java is a new object-oriented programming language that was developed by Sun Microsystems for programming the Internet and intelligent appliances. In a very short time it has become one of the most widely used programming languages for education as well as commercial applications.Design patterns, which have moved object-oriented programming to a new level, provide programmers with a language to communicate with others about their designs. As a result, programs become more readable, more reusable, and more easily extensible.In this book, Matthias Felleisen and Daniel Friedman use a small subset of Java to introduce pattern-directed program design. With their usual clarity and flair, they gently guide readers through the fundamentals of object-oriented programming and pattern-based design. Readers new to programming, as well as those with some background, will enjoy their learning experience as they work their way through Felleisen and Friedman's dialogue.
介绍java中实现面向对象的基本元素 通过一些列的问题比如:每个类里面方法过多导致代码难懂(基本上就是继承的问题),太多类似的代码,通过里面java里面提供一些语言规则实现了一个visitor模式以及不断的精确来解决,赞!
评分介绍java中实现面向对象的基本元素 通过一些列的问题比如:每个类里面方法过多导致代码难懂(基本上就是继承的问题),太多类似的代码,通过里面java里面提供一些语言规则实现了一个visitor模式以及不断的精确来解决,赞!
评分介绍java中实现面向对象的基本元素 通过一些列的问题比如:每个类里面方法过多导致代码难懂(基本上就是继承的问题),太多类似的代码,通过里面java里面提供一些语言规则实现了一个visitor模式以及不断的精确来解决,赞!
评分A Little Java, A Few Patterns 在线电子书 pdf 下载 txt下载 epub 下载 mobi 下载 2025