Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
0
votes
2
answers
180
views
How to refactor code so that a facade class could be decoratable?
I usually use decorators for these kinds of stuff, but since this is a facade and since it encapsulates a number of steps, I can't simply use a decorator here. …
0
votes
2
answers
526
views
How to solve an issue when a decorator needs variables from the base class?
I am absolutely sure that decorator pattern is great for this scenario. The problem is that the variables I'd like to pass as an event arguments are created only in that service class function. … Is there a clever way of accessing them in the decorator class to raise an event in there? …
1
vote
Accepted
How to solve an issue when a decorator needs variables from the base class?
Filip has guided me in the right direction. My function that was doing magic, was doing more than it should. By abstracting out the responsibilities the code wrote itself in a way that has solved the …