In this chapter, we learned about several anti-patterns in Julia programming. When we went over details for each anti-pattern, we also figured out how to apply alternative design solutions.
We began with the piracy anti-pattern, which refers to bad practices as related to extending functions from a third-party module. For convenience, we classified piracy anti-patterns into three different types—type I, II, and III. Each type poses a different problem in causing the system to become unstable or potentially invite problems in the future.
Next, we looked into the narrow argument types anti-pattern. When function arguments are too narrowly specified, they become less reusable. Because Julia can specialize the function for various argument types, it is more beneficial to make argument types as general as possible, utilizing abstract types. We went through several design...