|
|
|
|
|
by ivraatiems
698 days ago
|
|
I agree with that. I think the rule of thumb is: The first time you do it, just get the job done as described.
The second time, look for ways the two might be similar, but don't spend a lot of time on it.
The third time, generalize and assume there will be a fourth, fifth, sixth, etc. time. In the example the top poster gave, the first time it was requested, I would just write up some code for triggering the notification. The second time, maybe there's a shared class (or whatever) for notifications with text passed in. The third time, now maybe we need the ability to specify notification text in config or DB or through user-triggered actions. |
|