|
|
|
|
|
by tiborsaas
1930 days ago
|
|
> Is it that expensive to separate your business logic from UI and write the small UI layer Not sure what apps you've built, but usually that business logic is the minority of the codebase. The rest of the stuff is boilerplate, like drawing boxes, describing layouts, handling events, managing state. All this has nothing to do with business logic. Ideally, I want to write it once that I want a row of buttons what colors they have and what function should be called when the user clicks on it. I did what you describe and extracted all the logic in a small component I manage and the result was very banal, extremely straight forward code with was essentially "business logic". The 90% rest was building the UI based on it. |
|