DEV Community

Discussion on: Unit testing frontend code is (probably) useless

 
brense profile image
Rense Bakker

I never told anyone not to write backend code. I said most business logic resides in the frontend nowadays and that backends are typically only used to define a data model and do authentication.

We have a real problem here though:

A: According to you, emails have something to do with business logic? Or why else did you bring it up?

B: Serverless functions have nothing to do with business logic (your words)

C: Fact: you can send emails with serverless functions

A, B and C can't all be true... So what's it gonna be? Either A or B has to be false since C is a fact. Or are you one of those people who believe in alternative facts and you're just going to ignore the fact that you can send emails with serverless functions?

Also, there's a lot of other ways to deploy serverless functions besides Azure or AWS.