Timeline for Is there a design pattern to remove the need to check for flags?
Current License: CC BY-SA 3.0
29 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Aug 12, 2021 at 22:51 | comment | added | Adrian K | Say what? Design patterns is that they offer proven solutions to known design problems. Looking for patterns that might solve your problem (before you code) is exactly how they are supposed to be used. I have no idea what the 46 ppl are doing that upvoted that comment. | |
| S Jan 10, 2016 at 21:50 | history | suggested | Nick Alexeev | The O.P. is contemplating a refactoring. | |
| Jan 10, 2016 at 20:10 | review | Suggested edits | |||
| S Jan 10, 2016 at 21:50 | |||||
| Jan 6, 2016 at 12:42 | answer | added | Sachin K | timeline score: 1 | |
| Jan 6, 2016 at 4:28 | history | tweeted | twitter.com/StackProgrammer/status/684592368390123520 | ||
| Jan 2, 2016 at 15:19 | comment | added | Lightness Races in Orbit | @ruakh: Yeah, granted. | |
| Jan 2, 2016 at 7:42 | comment | added | ruakh | @LightnessRacesinOrbit: There's some truth in what you say, but it's perfectly reasonable to ask if there's a better way to structure one's code, and it's perfectly reasonable to invoke a design pattern to describe a proposed better structure. (Still, I agree that it's a bit of an XY problem to ask for a design pattern when what you want is a design, that may or may not strictly follow any well-known pattern.) Also, it's legitimate for "patterns" to affect your code slightly, in that if you're using a well-known pattern, it often makes sense to name your components accordingly. | |
| Jan 2, 2016 at 2:27 | answer | added | Nick Alexeev | timeline score: 5 | |
| Jan 2, 2016 at 0:12 | answer | added | NiklasJ | timeline score: 7 | |
| Jan 1, 2016 at 20:40 | comment | added | gnat | note if you believe that your question is indeed a duplicate of this one, then as an asker you have an option to "override" recent reopen and singlehandedly close it as such. I did that to some of my own questions and it works like a charm. Here is how I did it, 3 easy steps - the only difference with my "instructions" is that since you have less than 3K rep, you will have to go through flag dialog to get to "duplicate" option | |
| Jan 1, 2016 at 20:05 | answer | added | Tulains Córdova | timeline score: 12 | |
| Jan 1, 2016 at 18:13 | review | Close votes | |||
| Jan 5, 2016 at 23:35 | |||||
| Jan 1, 2016 at 17:50 | comment | added | maple_shaft♦ | I reopened this for right now as I see the questions are inherently different and may be confusing to readers. If you would like to discuss this then please open a question in Meta and we can discuss if that was the right choice. | |
| Jan 1, 2016 at 17:48 | history | reopened | Pieter B Karl Bielefeldt maple_shaft♦ | ||
| Jan 1, 2016 at 16:43 | vote | accept | Damith Ganegoda | ||
| Jan 1, 2016 at 16:31 | review | Reopen votes | |||
| Jan 1, 2016 at 17:48 | |||||
| Jan 1, 2016 at 15:45 | history | closed | gnat CommunityBot | Duplicate of What is the name for the idiom using method chaining to build an object? | |
| Jan 1, 2016 at 15:44 | vote | accept | Damith Ganegoda | ||
| Jan 1, 2016 at 16:43 | |||||
| Jan 1, 2016 at 15:41 | vote | accept | Damith Ganegoda | ||
| Jan 1, 2016 at 15:44 | |||||
| Jan 1, 2016 at 15:38 | answer | added | Andy | timeline score: 18 | |
| S Jan 1, 2016 at 15:31 | history | suggested | Andy | CC BY-SA 3.0 | reworded the question |
| Jan 1, 2016 at 15:26 | review | Suggested edits | |||
| S Jan 1, 2016 at 15:31 | |||||
| Jan 1, 2016 at 15:07 | review | Close votes | |||
| S Jan 1, 2016 at 15:50 | |||||
| Jan 1, 2016 at 14:45 | answer | added | Ixrec | timeline score: 117 | |
| Jan 1, 2016 at 14:43 | comment | added | Lightness Races in Orbit | You're going about this backwards. You don't find a pattern then write code to fit the pattern. You write the code to fit your requirements, then optionally use a pattern to describe your code. | |
| Jan 1, 2016 at 14:36 | review | First posts | |||
| S Jan 1, 2016 at 15:50 | |||||
| Jan 1, 2016 at 14:35 | comment | added | Damith Ganegoda | No, I'm looking at any other solution to improve the code. | |
| Jan 1, 2016 at 14:33 | comment | added | Steve | What's wrong with what you currently have? Are the requirements likely to change for this functionality? IE, are there likely to be new if statements? | |
| Jan 1, 2016 at 14:32 | history | asked | Damith Ganegoda | CC BY-SA 3.0 |