Newest Questions

Filter by
Sorted by
Tagged with
3 votes
4 answers
1k views

Naming factory methods

What should I name my factories' methods? getX() are typically considered accessors of the object's intrinsic properties. However, factories supply instances of classes that are not associated in any ...
Sergey Zolotarev's user avatar
0 votes
2 answers
292 views

Naming convenience wrappers

I wrote a wrapper around FEST's ComponentFinder. It does the same thing as the delegate, looks for java.awt.Components in GUI, but in a more convenient manner for its clients (e.g. you don't have to ...
Sergey Zolotarev's user avatar
0 votes
1 answer
128 views

Microservice Architecture Design

I want to create one service that reads data from two databases and passes it to the customer devices. Is this an overall bad design decision? I think that since it is only read-only, it should be ...
Travis's user avatar
  • 121
1 vote
4 answers
547 views

How can I get started on refactoring my code base?

https://github.com/Darkroman/PK-Battle-Simulator/ Over some time I made a fully working (text based) Pokemon Battle Simulator in C++ as I was learning the language on my off time. At the moment I have ...
Darkroman's user avatar
2 votes
1 answer
211 views

Problems with designing an intuitive cli experience

Warning: This may be a stupid/atypical question but I just don't know what to do. Any suggestion is welcome when it comes to change the existing behavior as long as the features are the same. The ...
 sentientbottleofwine's user avatar
12 votes
6 answers
4k views

What's a good way to use exceptions in a C++ project?

The basics: what I know I understand the basics of exceptions: If a function cannot perform its assigned task, it can signal it by throwing an exception, When writing a function, one must make sure ...
Eternal's user avatar
  • 245
-2 votes
3 answers
313 views

What is beyond ordinary c++, when trying to optimize a function?

Backstory: Writing a QImage to Sixel renderer. Feel like I have optimized it the best I can using basic c++. I have heard suggestions here or there that you can utilize things like GPU, SIMD, insert ...
Anon's user avatar
  • 3,649
1 vote
3 answers
522 views

Why does C allow escaping apostrophes / single quotation marks in string literals

As far as I can tell, the strings "It's me" and "It\'s me" are always identical. There seems to be no reason when a programmer needs to escape '. Yet, I could not find and ...
user2468852's user avatar
1 vote
2 answers
148 views

Proper place to validate JSON in an ASP.NET core app

I am building an ASP.NET Core 10.0 web-app using .NET's MVC model w/ Kestrel to serve it. The app will deploy on an Azure VM. It's a personal project, therefore, I decided to go with Cosmos DB as the ...
AKUMA no ONI's user avatar
2 votes
3 answers
1k views

Scope of integration tests

I'm programming a .NET WebApi application from services. What is the scope of an integration test within the following schema? Order creation scenario: Order is created -> stored in db -&...
Petr Klekner's user avatar
2 votes
2 answers
291 views

Designing Password Recovery for an Offline-First Password Manager

I'm designing a password manager app for Android that prioritizes offline first security the idea is to store the vault locally and avoid any cloud dependencies during normal usage. However, I'm ...
dev4Life's user avatar
16 votes
10 answers
5k views

C#'s Aversion to Array

I have noticed in documentation, looking at open-source code bases, and just a general sense in the industry that C# developers largely prefer to use List<> or IEnumerable<> over simple ...
K0D4's user avatar
  • 423
4 votes
4 answers
216 views

Modeling superstate and substate combinations in DDD

I am designing an analytics application using domain driven design and test driven development. I am having difficulty modeling the following requirement: The application shows a workitem's state. ...
Afelium's user avatar
  • 51
0 votes
2 answers
138 views

Scaling/microservices approach to reading files from same directory

My company receives files via SFTP. We currently have a service running on a timer that: polls the inbound directory moves files to an 'In Progress' directory processes files (queueing messages for ...
Ace's user avatar
  • 3
1 vote
2 answers
196 views

Classpath hell: independently updated apps with shared dependencies

This is how our desktop applications are launched. In this case, it's called DesktopApp (I changed the actual name). As you see, the dependencies are hard-coded, including their versions. In the ...
Sergey Zolotarev's user avatar

15 30 50 per page
1
3 4
5
6 7
4290