Skip to main content
5 votes

Mixing up UML and non-UML diagrams

Design documentation is meant for people. Machines don't care. People care because these documents help them build the system or maintain it. Worse case scenario, the documents are a box-ticking ...
Greg Burghardt's user avatar
4 votes
Accepted

Best practices for setting up a test suite for a python library?

I think this question is not necessarily restricted to Python or the tools you mentioned - it is always the same situation whenever you develop software in an environment which differs from the ...
Doc Brown's user avatar
  • 209k
4 votes

Mixing up UML and non-UML diagrams

Diagrams are only tools to express ideas, and you should always use tools that best suit your needs. Some modeling languages, such as C4 even explicitly foresee a mix of diagrams, with high level ...
Christophe's user avatar
  • 78.4k
4 votes

Mixing up UML and non-UML diagrams

Someone did a survey : A survey on the practical use of UML for different software architecture viewpoints While the top popular viewpoints for the UML-based software architecture modeling are the ...
Ewan's user avatar
  • 77k
3 votes

Handle hierarchical relationships between large number of enums

The flags are used in code to perform different operations on the data (for example a certain function handles metal objects, another one uses liquid containers etc). New labels might be added to the ...
Ewan's user avatar
  • 77k
3 votes

Handle hierarchical relationships between large number of enums

Modeling flags/labels in code It is not really clear from your contrived example whether your approach #1 means "an object with these flags, plus some extra, non-flag properties not mentioned&...
Doc Brown's user avatar
  • 209k
3 votes

Designing a Distributed System for Indigenous Data Sovereignty Across Nations

Here is a technology of the 80's that could be applied to the task: usenet Let there be a community of servers, with indigenous roots or otherwise, that agree to gossip with one another, flooding ...
J_H's user avatar
  • 7,338
3 votes
Accepted

How do I properly organize JavaScript files for web development?

All of the approaches you have outlined are valid. I've used many of those myself. The needs of the application have clearly grown. Your description illustrates this gradual increase in complexity ...
Greg Burghardt's user avatar
2 votes

Dependency injection - passing responsibility for dependency to a Client?

This all depends on how tightly coupled the data structure is to the export format. If you cannot use the same data structure to export to different formats, then there is no point in separating this ...
Greg Burghardt's user avatar
2 votes

Dependency injection - passing responsibility for dependency to a Client?

They are both terrible! First off PHP..... ..and don't get me started on space indentation!... Jokes aside. I think what you are missing is a Converter class and some read and write classes. eg public ...
Ewan's user avatar
  • 77k
2 votes

How to decide between keeping data within the code or in a database

The discount data for existing schemes should be able to evolve quickly without depending on development pipeline, because it's a common business operation. If today it's 20% off the most expensive ...
Christophe's user avatar
  • 78.4k
2 votes

Handle hierarchical relationships between large number of enums

One solution at least worth considering is to use the type system: interface IObject{} interface IContainer : IObject{ MaterialType Material {get;} } interface ILiquidContainer : IContainer {} ...
JonasH's user avatar
  • 5,724
1 vote
Accepted

Is providing a method of a domain entity with a data/ service provider object a bad design?

Too long to post as a comment, so I'll post it here. As a disclaimer, there are many approaches to solve problems in DDD. This is only how I view it based on how I have implemented things. ...
Joseph Ferris's user avatar
1 vote

Should Value Objects be used inside the DTO?

If you are able to use your value objects with thier built in validation on the client side of the DTO it begs the question of why you have a DTO at all. The purpose of a DTO in this case would be to ...
Ewan's user avatar
  • 77k

Only top scored, non community-wiki answers of a minimum length are eligible