- Design Patterns and Best Practices in Java
- Kamalmeet Singh Adrian Ianculescu LUCIAN PAUL TORJE
- 100字
- 2021-06-25 20:52:37
The interpreter pattern
Computers are supposed to interpret sentences or evaluate expressions. If we have to write a sequence of code that is supposed to deal with such a requirement, first of all, we need to know the structure; we need to have an internal representation of the expression or the sentence. In many situations, the most appropriate structure to use is a composite one based on the composite pattern. We will further discuss the composite pattern in Chapter 4, Structural Patterns, for now, we can think of composite representation as grouping objects of a similar nature together.
推薦閱讀
- Java 9 Programming Blueprints
- Mastering Unity Shaders and Effects
- Unity Shader入門精要
- TradeStation交易應用實踐:量化方法構建贏家策略(原書第2版)
- Mastering C++ Multithreading
- Fast Data Processing with Spark(Second Edition)
- Learning JavaScript Data Structures and Algorithms(Second Edition)
- 遠方:兩位持續創業者的點滴思考
- scikit-learn Cookbook(Second Edition)
- MySQL數據庫應用實戰教程(慕課版)
- 零基礎C語言學習筆記
- Flutter從0基礎到App上線
- LabVIEW數據采集(第2版)
- R Data Visualization Cookbook
- 小小的Python編程故事