Skip to main content

Questions tagged [validation]

Tags for questions related to validating data.

1 vote
2 answers
184 views

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 ...
JAYD3V's user avatar
  • 119
5 votes
3 answers
435 views

I'm having a hard time of understanding at what point is multiple layers of validation protection necessary rather than a single point of failure and if the performance hit is a concern Lets say you ...
Observable Stone's user avatar
13 votes
13 answers
3k views

Suppose the code's inside some FullName class And suppose I want only capitalized name elements (let's ignore the fact that in some cultures, name elements may start with a lower-case letter) Should I ...
Sergey Zolotarev's user avatar
1 vote
4 answers
557 views

In order to make sure methods fail fast under invalid arguments, I usually do validation at the start of a method. If I'm verifying multiple predicates, this leads to a few lines of checkNotNull or ...
EarthTurtle's user avatar
1 vote
3 answers
354 views

I'm currently designing a multi-layered application and am trying to figure out the best practice for error handling within the Business Logic Layer (BLL). Should I handle errors directly within the ...
Marko Sami's user avatar
0 votes
3 answers
185 views

I have a task to develop a test framework - or a test suite, if it makes more sense - that aims to validate properties over a large set of XML files. Our codebase is basically like this: JSON input ...
Incognitex's user avatar
3 votes
4 answers
2k views

We're working on a new project (backend, API), following the "clean code" and "clean architecture" principles (described in Robert Martin's books), dividing our application into ...
LNK's user avatar
  • 139
0 votes
1 answer
158 views

I'm working on a library of C++ wrappers/bindings, for another, C-ish, API. The C'ish API has a "launch" function, which, among other things, takes a launch configuration structure (well, ...
einpoklum's user avatar
  • 2,808
1 vote
2 answers
280 views

I am creating an API proxy that acts as a bridge between our frontend application and an AWS opensearch server. This proxy has additional features such as retries and timeouts. One of the features I'm ...
lightning_missile's user avatar
0 votes
1 answer
96 views

I have a budget entity in my domain which can be closed by the user if the budget is open. This means if the budget opens today and closes in seven days, in between this time I can close it, not ...
Bernardo Benini Fantin's user avatar
10 votes
6 answers
6k views

Let's say, in a rather big application suite with multiple more or less integrated products, data is stored across multiple databases. Some of them are SQL-ish DB clusters, some are MongoDB clusters. ...
cis's user avatar
  • 255
2 votes
1 answer
673 views

My company, which specializes in logistics and transportation, delegated the majority of the backend microservices to our team. All of the microservices (which our team inherited from "past ...
lecarpetron dookmarion's user avatar
0 votes
0 answers
70 views

I created an abstract class to represent a vertex in a tree structure. Later, a requirement was introduced where certain types of vertices are not allowed as descendants of certain other vertices. So ...
Cave Johnson's user avatar
2 votes
1 answer
655 views

We're currently exploring CQRS in our future applications. To give a bit of a background, we use a simple CRUD-style service before something like this. Old Pattern: Controller Command/Service Model ...
Lawrence's user avatar
  • 135
1 vote
1 answer
245 views

I have a lot of classes that have numeric values that are configurable by the customer during runtime and should be clamped between a min and a maximum value. The value changes should also be logged. ...
Cédric Moers's user avatar

15 30 50 per page
1
2 3 4 5
19