Skip to main content
Best practices
1 vote
2 replies
45 views

I’d like to ask about best practices for using a finite state machine to handle different enemy behaviors. I already created a state machine for my basic enemies with the following behavior: ...
TryingToImprove's user avatar
Best practices
0 votes
1 replies
55 views

I am looking for advice on how to best pass around the fit results from a (Python) script to another script. Currently, I am exporting the best-fit parameters and function names into a YAML file. I ...
Lost_Soul's user avatar
Best practices
3 votes
3 replies
68 views

I’m part of a team of 10 developers, and recently our product team requires us to use feature flags for almost every new change. The idea is that they can always “roll back” to the previous behavior ...
Jon's user avatar
  • 464
Best practices
0 votes
0 replies
47 views

I’m currently working on a personal Android project using Kotlin and Android Studio, following a basic MVVM architecture: ─main │ ├───java │ │ └───com │ │ └───example │ │ └───...
alex_pythooon's user avatar
Best practices
0 votes
3 replies
77 views

I’m studying and implementing the Composite design pattern in C# for a university project. In most textbook examples (GoF, Refactoring.Guru, etc.) the class hierarchy looks like this: Component ├── ...
user31880897's user avatar
1 vote
1 answer
86 views

What is the best practice for creating an object based on the value of a string argument? I am loading my configuration from a file and passing the string as an argument that gets mapped to a specific ...
mike erbaturakis's user avatar
Advice
0 votes
0 replies
30 views

Question: I'm building a testing system for a data quality SaaS app where tests are entirely props-driven (similar to React component testing philosophy). Goal: Create reusable, composable test ...
Vijay Savaliya's user avatar
Best practices
1 vote
2 replies
58 views

I am trying to create a full SwiftUI Document app (using swift 6, as it matters). Apple doc says that the Document init(configuration:)and fileWrapper(configuration:)are called on a background thread -...
AirXygène's user avatar
  • 3,061
1 vote
0 answers
79 views

TL;DR Suppose a Python library defines an interface meant to be implemented by third-party code. How could this library provide a factory function that creates instances of those implementations, with ...
mgab's user avatar
  • 4,054
0 votes
0 answers
82 views

I wanted to create a flexible MessageProcessor, depending on the SupplierType(= enum) and depending on which MessageProcessor comes out a different Message-object will be used. The current situation ...
zhrgci's user avatar
  • 716
-1 votes
0 answers
160 views

I'm developing a game with Unreal Engine 5.4.4 and C++ using Visual Studio 2022. From a Character class I’m calling a GameMode’s method that will destroy this Character class that is calling the ...
VansFannel's user avatar
  • 46.2k
Best practices
2 votes
4 replies
118 views

Follow-up on this question: Singletons: good design or a crutch? It is true, that using singletons can make testing harder, and bugs can hide behind them. GoF defines singleton to use when: Global ...
zerocukor287's user avatar
  • 1,686
Best practices
3 votes
1 replies
112 views

I am creating an E-Commerce app. It has Category and Product classes. Both have multilingual descriptions, so, tables with title, description, meta-*, etc. and unique key (id, language_id). To add ...
qarabala's user avatar
  • 178
3 votes
1 answer
82 views

I’m refactoring my Laravel application to follow a clean architecture approach with clear separation of concerns: Controller → Service → Repository The Controller handles the HTTP layer,the Service ...
Lana Hanna's user avatar
-1 votes
2 answers
158 views

I complete the implementation of a VM (ALU part) by adding operations to a Coprocessor. In this sense, I'm looking for a C++ design. Through a template, the VM is instantiated in 2 ways : A first ...
bitmap kid's user avatar

15 30 50 per page
1
2 3 4 5
2145