New answers tagged

0

Should default settings be considered as business rules [...] There are many posts explaning what business rules are exactly, but in the simplest definition I'd say business rules are the reason the application exists. Without business rules, there wouldn't be a need to create a program. Business rules can have defaults, meaning if the user interface allows ...


2

A Default value is a piece of Business Logic. Kevin takes an order to photocopy a sheet of paper Kevin goes to the printer Kevin sees that the piece of paper is A4 The customer did not specify the size of the photocopy Kevin deduces from this lack of information, and the original being sized at A4 that the copy should be A4 Kevin selects the A4 Copy option ...


0

Frameworks and Drivers. The outermost layer is generally composed of frameworks and tools such as the Database, the Web Framework, etc. Generally you don’t write much code in this layer other than glue code that communicates to the next circle inwards. This layer is where all the details go. The Web is a detail. The database is a detail. We keep these things ...


1

Yes, the implementation of the outermost layer depends on an external system (database, service, library). You've said: So I guess this means that the data access is really in the most outer layer: Maybe for this specific example, there is no real use for the interface adapters layer? The Data Access object (which may be a single class, or a collaboration ...


2

Idiomatic means "natural and correct". The file structure of an application might look or feel natural, correct, or the opposite. But one cannot state only one file structure for a whole language is idiomatic. Yes, you'll have to adapt your implementations, but that is another problem. Should I be using the second file structure, even though it ...


-1

You can give them IDs for different styles and for common styles give them common classes. #box1 { color : blue; height :100px;} #box2 { color : red; height :120px;} .box12 { align-items: center; width : 345px;}


0

In my experience, attempts to write reusable CSS often lead to very hard to maintain code. The problem with this idea is all your components across the application are tightly coupled together. What happens if you suddenly want one of the components to vary in its behaviour differently from the others? In practice, different components are always likely to ...


Top 50 recent answers are included