Comment

Comment by berkes

My immediate though of the Swift Example Code was "but where does the business logic go".

This trivial example lacks it, and places it simple logic inside the UI code. But what if we want to protect against negative numbers? Or want to increase the number with larger increments if we hold the button pressed? Etc.

Your Delphi setup isolates business logic from UI. Which may seem "overly complex" in trivial demoes, but will help you the very moment you write the first test or add some business logic.

It's also why I see so many React apps spiral into an unmaintainable mess within days after their "git init".

parent berkes 2 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton