GWed
  • Member for 9 years, 1 month
  • Last seen more than a week ago
  • Chester, United Kingdom
Which way are downstream and upstream services?
14 votes

The best way to think about this is to think of a river. The downstream part of the river cant get any water unless it comes from upstream i.e. downstream is dependent on upstream for its water. If ...

View answer
Dependency injection: At what point am I allowed to create a new object?
Accepted answer
13 votes

After quite a bit of googling around for this, it seems like (as mentioned in a comment above) the top level class I was talking about is called the Composition Root. It does indeed seem to be the ...

View answer
Are mocks in unit tests dangerous in dynamic languages?
Accepted answer
7 votes

The answer to this question "are mocks in unit tests dangerous in dynamic languages?" is "Hell yes!" The following article explains the dangers. They describe a scenario where an interfaces method ...

View answer
Returning view code in an API response
1 votes

REST is a vary adaptive architecture (as I am sure you realize). The answer to your question I think has more to do with you as a programmer than anything else. For example, there is nothing wrong ...

View answer
REST request of different length
Accepted answer
0 votes

My view is that the client is requesting a different representation of the resource i.e. a short one. When you request a different representation (like json or xml) this normally gets tagged at the ...

View answer
How to design RESTful Web Api to represent Resources
0 votes

When you say 'expose user's groups owned members in a RESTful Web Api?' This could mean two things: URI structure (you seem to have identified this already) Resource representation (html, json etc) ...

View answer
Converting Business Process Maps into Software
Accepted answer
0 votes

After a bit of research I've come across the repository/service design pattern. Both are used within the model context of MVC design pattern. A repository (in my case an ORM) is a model that gets ...

View answer