Last modified by chrisby on 2024/03/03 17:01

From version 3.10
edited by chrisby
on 2024/03/03 17:00
Change comment: Update document after refactoring.
To version 3.8
edited by chrisby
on 2024/03/03 15:34
Change comment: There is no comment for this version

Summary

Details

Page properties
Parent
... ... @@ -1,1 +1,1 @@
1 -Software Engineering.Clean Code.Objects and Data Structures2.WebHome
1 +Main.WebHome
Content
... ... @@ -65,5 +65,5 @@
65 65  
66 66  ### Conclusion
67 67  
68 -* The lesson here is that data structures are easy to extend with functions and hard to extend with data type, and objects are easy to extend with other objects but hard to extend with functionality.
68 +* The lesson learned here is that data structures are easy to extend with functions, and objects are easy to extend with data types.
69 69  * Although the difference between the two styles may seem insignificant in this simplified example, it has serious implications in complex production codebases with multiple data types and behaviors.