• 0 Posts
  • 79 Comments
Joined 5 months ago
cake
Cake day: June 12th, 2024

help-circle





  • For me, as primarily a backend dev, the argument was that it’s a framework, unlike React, so you get an everything-in-one solution which is quite easy to setup and use.

    Given that Google still hasn’t killed this one yet, it’s also a mature platform with plenty of articles online on how to use it.

    IIRC the license was also better than React’s, at least last time I checked.

    Not sure on what the landscape looks like today, but when I was making the choice, the internet didn’t seem to consider other solutions to be competitive with either React or Angular.














  • You’re nitpicking.

    As it happens, it’s just an example to illustrate specifically the “extract to method” issues the author had.

    Of course, in a real world scenario we want to limit mutating state, so it’s likely this method would return a Commission list, which would then be used by a Use Case class which persists it.

    I’m fairly sure the advice about limiting mutating state is also in the book, though.

    At the same time, you’re likely going to have a void somewhere, because some use cases are only about mutatimg something (e.g. changing something in the database).