171 reputation
7
bio website ramblingincode.com
location Manchester, UK
age 27
visits member for 2 years, 4 months
seen 23 hours ago

Senior Developer at Building Blocks (UK) Ltd. C#, ASP.NET MVC.

SDL Tridion 2011/2013 Certified Developer.

http://www.ramblingincode.com/

http://www.building-blocks.com/thinking/author/aplant

http://careers.stackoverflow.com/antp/

@antplant


Jan
16
comment How can I decouple query and context in a “query object” scenario?
Essentially, yes, where other data stores' interfaces are semantically different enough that writing a common adapter interface is not really viable (which means it's probably not possible to keep the execution logic where it currently is while still solving this problem). Unless, as mentioned above, I accept the coupling and use composition of different IQuery interfaces for different types of data context. Or unless someone has a better idea :)
Jan
16
comment How can I decouple query and context in a “query object” scenario?
Hmm, thinking about it, I guess I could accept that my query interface is data-context-specific and create additional I...Query interfaces for different types of data context, then use these compositionally on queries that can be executed against different types of context. Feels a bit weird though.
Jan
16
revised How can I decouple query and context in a “query object” scenario?
deleted 2 characters in body
Jan
16
revised How can I decouple query and context in a “query object” scenario?
added 93 characters in body
Jan
16
asked How can I decouple query and context in a “query object” scenario?
Nov
26
awarded  Teacher
Nov
25
revised URLs in javascript in the browser
added 100 characters in body
Nov
25
answered URLs in javascript in the browser
Nov
13
asked How can I specify user stories for processes with third-party involvement?
Oct
5
awarded  Critic
Oct
5
awarded  Commentator
Sep
2
comment how does semantic versioning apply to programs without API
Point 1 of the spec states: Software using Semantic Versioning MUST declare a public API. This API could be declared in the code itself or exist strictly in documentation. However it is done, it should be precise and comprehensive. So I guess the answer is you're not technically using SemVer so it's entirely up to you.
Sep
2
comment Beginning a sentence with a function name?
I often just italicize for things like this - you should always maintain the casing of case-sensitive terms, regardless of where they are in a sentence, IMO. fread is not a word; it is a symbol representing an entity. It's not subject to grammar.
Sep
1
comment How do I keep my classes in MVC from becoming bloated?
Some concrete examples of "special queries" might help here - the best approach will likely depend very much on the nature of the queries, how you're accessing the data and what you actually plan to do with it.
Aug
13
revised Managing non-domain application behaviour in CQRS
added 20 characters in body
Aug
13
asked Managing non-domain application behaviour in CQRS
Feb
7
comment Why creativity is consider a bad practice by architects?
Have you tried asking these senior devs why they don't think your solution is better?
Jan
29
revised Unit testing methods with logical dependencies on other classes
added 1 characters in body
Jan
29
comment Unit testing methods with logical dependencies on other classes
@CodesInChaos I had considered that, but QueryBuilder has methods with logic sufficiently complex that I would like to test it in isolation, which means that not mocking it undermines the usefulness of testing SearchService, no?
Jan
29
comment Unit testing methods with logical dependencies on other classes
This is why a factory seems more appropriate - inject the factory and let the method instantiate the query builder. But it also seems overengineered.