All Questions
Tagged with anti-patterns architecture
13 questions
6
votes
2
answers
153
views
Resource that has different state based on input parameters
Let's say I have a REST api endpoint that is getting a resource called a "purchasable" (an item that a user can purchase). Here is an example of what this might look like.
Endpoint: GET /...
0
votes
2
answers
909
views
Are there cases when using polling is preferable to Webhooks
When evaluating whether to use webhooks or polling for an architectural decision I've been reading some articles. Most highlight the obvious drawbacks with using polling such as:
wasted resources (...
1
vote
1
answer
495
views
Design question on synchronization of two asynchronous data streams
I have two async streams suppose- Trip : {tripId, date, city} Bill : {billId, tripId, date, amount}. I need to design a system to get real time aggregated view of following nature: City, TripCount, ...
0
votes
1
answer
175
views
How to bring a code to conformance with tell, don't ask without creating tons of methods on other classes?
It used to be fairly common for people to call a getter, do some calculation on it, then call a setter with the result. This is a clear sign your calculation actually belongs to the class you called ...
6
votes
3
answers
3k
views
CQRS+Event Sourcing as Top Level Architecture: Anti-Pattern
I have been study DDD along with CQRS and Event Sourcing. I recently listened to a talk Greg Young gave a couple years ago where he said that CQRS and Event Sourcing are not a top level architecture ...
-6
votes
3
answers
2k
views
How can hard-coding be considered a code smell in the age of micro-services?
As an intermediate stage hard-coding is accepted by Google in their Tour of Heroes Angular tutorial but the benefit cannot surely only be for novices. Do people not understand that hard-coding as an ...
1
vote
1
answer
560
views
Refactoring god-class leads to feature envy [closed]
I'm trying to refactor a 2.5KLOC god-class (with about 68 data members and 62 member functions) that performs a wide variety of text formatting and layout operations. After a careful analysis based on:...
4
votes
4
answers
781
views
Pattern for endpoint that routes requests?
I am building a service that will push notifications to many other services. It has a couple of different notification types that each consumer may care about, but likely will not care about all of ...
4
votes
2
answers
436
views
Update model chain on event driven pattern
What is the formal name for this specific problem scenario in an event-driven architecture, and what are the common approaches to handle it?:
After an action or event is dispatched, several ...
3
votes
1
answer
792
views
OOP - How to refactor a "pyramid architecture"
Unbeknownst to me while I was building it, I built a "pyramid" architecture. I did not realize this until I laid it out in my new Visual Studio 2013 Layer Diagrammer. Each layer depends on the layer ...
3
votes
1
answer
285
views
Established antipattern name? Only getting data ducks in a row right before you need them
This one's all over our codebase but I'm not sure I've ever heard a name put to it.
We have C# and Java (and Rails but we don't have to touch it very often) so I'll speak more generally. It's like ...
8
votes
3
answers
531
views
Is there a name for the not given/null/empty-problem? [closed]
I work with code, where data is stored/exchanged in Hashtable/Dictionary/Associative-Array-like structures, like this
{
'alpha': None,
'bravo': '',
# 'charlie' is not given
}
there is not ...
2
votes
5
answers
690
views
Anti patterns - Worth spending time or not
I have read this question and after a very long time it's clear I still don't understand anti-patterns. perhaps, it raised a new level of curosity to know why should I read Anti design pattern if they ...