Introduction
Speca is a flexible and powerful implementation of the data-class concept, used for interacting with external systems (like API DTOs) and organizing the flow of data between different domains, which is a key part of Domain-Driven Design (DDD).
The main feature of this library is that it is completely independent of third-party libraries and works exclusively with built-in data types. The logic of data transformation is handled by the code that uses the library, which allows for a highly flexible approach to each specific case.
Let your data define the specification. With Speca, you can express the rules and structure of your code directly through data, allowing you to maintain clean and simple architecture. Define how data should be interpreted and how it interacts with the rest of the system, and Speca will automatically ensure the correct handling of this data, freeing you from unnecessary code and simplifying maintenance.
Main Features
- Automatic population of public properties from an array. This eliminates the need to manually assign values to properties, speeding up the development process.
- Attributes for properties: provide flexibility in configuring the parsing and serialization process for each field, allowing customization to specific requirements.
- Lazy properties: use only the data that is actually needed at runtime, which can significantly improve performance.