All Questions
23 questions
2
votes
2
answers
584
views
Design of a modular application
I'm developing an application (Java) in a modular architecture. I have two approaches in mind and I'm not sure which one will be "better code" in case of maintenance and conventions.
I have ...
3
votes
4
answers
780
views
Is it a bad practice to have an interface method to tell whether it can handle an object?
interface Resolver {
boolean canResolve(SomeInput input);
SomeOutput resolve(SomeInput input);
}
public static void main(String[] args) {
List<Resolver> resolvers = ...;
...
-2
votes
1
answer
504
views
What are the best practices for writing a long, multi-step process? [closed]
When writing a long process, i.e. one filled with many steps of business logic, what are the best practices for organising it? There are a few different options here that I can see:
Just write a long ...
5
votes
2
answers
534
views
Should microservices in an event sourced architecture not communicate directly with one another via REST/gRPC/etc?
I'm trying to wrap my head around event sourced architectures.
It seems like common advice is to have small events with as little info in them as possible (opposed to large events with everything in ...
2
votes
3
answers
253
views
Design - What is the best way to separate functionalities?
I recently worked on a file explorer within a console window (like Midnight Commander). I want to use ncurses as library. I have encountered some fundamental problems with my design and searched on ...
3
votes
1
answer
176
views
Is good or bad practice to share reporting modules between systems/apps?
At my new work, a few people want to share modules between systems/apps, and I'm a bit skeptical about it.
Context: we have a lot of little apps living in different servers, some of them are ...
0
votes
1
answer
2k
views
Best design pattern for Notification System => How to handle multiple languages and items
As always I came here to ask for some light in a design issue I am facing.
I have a system that issues some notifications :
PackageReceivedNotification
PackageSentNotification
...
11
votes
4
answers
1k
views
Hiding/disabling features for some users
Lets say I have a free and paid version of the app. Paid version is a superset of the free version regarding features available to users, meaning paid version will have all the features of the free ...
11
votes
3
answers
2k
views
How to perform input validation without exceptions or redundancy
When I'm trying to create an interface for a specific program I'm generally trying to avoid throwing exceptions that depend on non-validated input.
So what often happens is that I've thought of a ...
3
votes
1
answer
279
views
Practices for navigating uncertainty in software design
Background:
So I'm trying to create my first game engine for learning purposes. After looking up a few articles I was able to design the beginning portions of my engine to at least get me going. My ...
9
votes
3
answers
18k
views
Should I create .Clone() on a class or create a copy-constructor?
I'm quite unsure what I should use in C# - both should in theory do the same, but I think both are quite easely overseen. Or is there another possibility I have to take in consideration?
I know in C++...
3
votes
1
answer
72
views
What is the best pattern to define own type with definitive collection of values?
I want to define own data type, say a Digit, which would have definite type of values ( 0 to 9 ) and I'm struggling with defining this in a way it's practical. What's the best way (design pattern) to ...
3
votes
0
answers
88
views
Should my application call statsd directly or should I call statsd based off logs?
I'm planning on incrementing counters in statsd based of various events within my application. I have logging in place for these events. So, from my viewpoint I have two options:
Update the ...
4
votes
3
answers
2k
views
Use of electronics in programming [closed]
Does a programmer need to have a deep understanding of digital electronics. Theoretical v/s practical. As what they teach us at college is pretty basic?
If yes, then do all kinds of programmers (...
1
vote
1
answer
53
views
Filtering additions to a list
Hopefully Iʼm posting this in the right SX, and Iʼve tagged it correctly.
I have a legacy system that Iʼm making additions to which contains a custom list object.
This list object can contain two ...