2019
Apr
18
awarded  Notable Question
Mar
5
awarded  Constituent
Mar
5
awarded  Caucus
2016
Nov
18
awarded  Popular Question
Sep
29
comment Internal API - Some larger generic methods, or many very specific methods
I agree. The client should be able to filter the response by using query parameters.
Jan
4
accepted Persistence Strategies - Filling a cache strategy
2015
Dec
30
awarded  Yearling
Dec
30
comment Persistence Strategies - Filling a cache strategy
@Ixrec I haven't thought of the file system as that. What you are suggesting sounds like a nice idea, should I have two different interfaces for the two distinct source types (authoritative and cache)? This way, the DAO will have a way to identificate and fill in the cache sources.
Dec
30
asked Persistence Strategies - Filling a cache strategy
Oct
6
comment Using a private auto-implemented property vs. a private field
If you are using auto implemented properties, then there's absolutely no difference except for the fact that properties end up polluting the resulting IL with useless getters and setters.
Sep
29
comment How to solve this inheritance problem
@RobertHarvey I don't want it to be on the base class, because it does not belong there. For example, the method minifies my script / style. The logic is the same in both ScriptController and StyleController. But I also have an ImageController which extends from StaticFileController. I don't want ImageController to have minification logic.
Sep
29
comment How to solve this inheritance problem
@RobertHarvey ScriptController should use scripts as resource name, and StyleController should use styles as resource name. That's basically the only difference, and the need for two different classes.
Sep
29
comment How to solve this inheritance problem
@RobertHarvey See comment above. I should also note that I would be able to call ScriptController on its own. However, if the client intends to call ScriptBundleController, I want ScriptController logic to be executed too.
Sep
29
comment How to solve this inheritance problem
@Telastyn ScriptsController and StylesController both define the resource name, which will be used to retrieve a specific file. I also have a ScriptBundleController, which will override a method so I can fetch multiple files in one single request. I want ScriptBundleController to take advantage of some minimization logic inside ScriptController, so ScriptBundleController must extend from ScripController. However, I cannot add a base class for the logic in ScriptBundleController, as only one inheritance is allowed.
Sep
29
comment How to solve this inheritance problem
@Telastyn I have applied your suggestion, but the problem persists. (See edit)
Sep
29
revised How to solve this inheritance problem
deleted 34 characters in body
Sep
29
revised How to solve this inheritance problem
added 93 characters in body
Sep
29
comment How to solve this inheritance problem
@Telastyn You mean I should pass it as an argument to DoSomething()?
Sep
29
asked How to solve this inheritance problem
Sep
17
awarded  Commentator