-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Concerns Part 2 #48
base: main
Are you sure you want to change the base?
Concerns Part 2 #48
Conversation
4f0b325
to
64f4f78
Compare
Hi @stockandawe - part 2 should be ready for review. Thanks! |
excerpt: Pitfalls and best practices for using concerns in Ruby. | ||
--- | ||
|
||
Welcome back! [Last time]({% link _posts/2023-04-24-concerns-in-ruby-part-1.md %}), we discussed the basics of concerns in Ruby and saw a few examples of how to use them to share code across otherwise-unrelated sets of classes. We then took a detour with the goal of understanding, not just what concerns are, but also how to use them well. As part of that detour, we defined good software as, "software that can change inexpensively." We said that the concept of "inexpensive" encompassed a myriad of factors including time, money, and effort. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You could use {:target="_blank"}
so that the link to post 1 opens in a new window and the reader can continue reading this post .
#### Visualizing Class Relationships | ||
|
||
The following provides nice visualization for inheritance, composition, and polymorphism: | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a nice visualization
|
||
Classic! Steve can help us out here too: | ||
|
||
[TODO: image here] | ||
 | ||
|
||
So, next time you sit down to write some code, consider chanting, "Messages, messages, messages," as a way to remind yourself of good software design principles. | ||
|
||
### The Story so Far |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good idea to include a summary of "the story so far"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
Part 2 of the "Concerns in Ruby" blog post series.