by rmbyrro · 4y ago · 0 comments
One challenge is having them fresh on my mind and being able to spot when it makes sense to apply them.
Have been thinking about using flashcards and spaced repetition to achieve better retention and ability to apply in practice.
Anyone has experience with this?
I know and have used these patterns. Some I use frequently, like Observer. The less frequent ones just fade in memory, and I get myself constantly in need to read about many again to refresh and identify which to use in a particular case.
And I suspect I'm missing many potential uses, due to not having them very fresh in mind all the time.
That's where I presume SRS can help...
I get what you’re going for. You learn the patterns, but then you don’t recognize the opportunity to use them. You think you have to keep the pattern in your recent memory so you’ll recognize the opportunity to use it.
Here’s the trick: you don’t have to recognize the opportunity to use a pattern. You just have to recognize the opportunity to use a pattern. Instead of thinking “ah yes, Builder pattern would go here” you can just think “maybe there’s a pattern that would be useful here. I’ll scan my list of patterns taped to my monitor. Builder would maybe work? I’ll double check what that means”.
This is 1. Way easier 2. Consistent across many patterns. Instead of learning to recognize pattern A, B, C and so on, you just get a vague feeling of “pattern”.
This (obviously) doesn’t just apply to patterns. Super useful for web frameworks. List the 10 places you could put behavior (model, field, view, etc) and choose consciously. Same for data structures in algorithms and even all sorts of non-programming stuff.
Maybe the fact that this kind of work ends up being "spaced repetition" in some sense is part of why it's helpful.