Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • There was permissions checking code at one point where the design was to check if a user has the permission to do something before calling an API that needed permission for. But this was a problem because a hacker could call the API directly and bypass the permission.

  • In other projects I have seen people use promises to get a template and some data and combine the results together. The design problem to be solved there is a better way to get templates to eliminate this complexity.

  • Getting ID of the “primary node” before sending information to it. This is really an implementation detail of the backend which shouldn’t be something the front end is dealing with.

In conclusion I would say it’s really good thing not to have a Javascript library which supports promises. It’s an example of not letting edge cases complicate a core simple design. Your code is simpler and faster without them. Other people will appreciate that your code is easier to understand. Let’s get less siloed.