Hot answers tagged

5

Refactoring Lots of people have written tomes and tomes on the subject. Martin Fowler has some good advice. Highly recommend looking through his work, also take a look at Kevlin Henney. Sprout and Split The problem is that you are writing a god class. Which is not a bad first approximation when you don't know how to solve a problem. Its just not a great ...


3

Prefer early composition over late inheritance: The class of an object has to be known at creation, and most languages do not allow to change it later. So, if you create a transaction, it IS a Transaction (inheritance); If the object has to change afterwards, it must be via its state: the transaction may HAVE some properties/behaviors depending on the ...


2

It's not possible to know for sure whether caching your data in Redis would be worthwhile without more information, but: Don't jump to the conclusion that you need to cache the data in Redis. Every dependency you add to a project has a cost. Once you add Redis, you have added one more potential source of problems. When debugging your program, you will now ...


1

It sounds like you want to submit a form from your front end. I don’t know how React works, but they probably POST the form data to an endpoint you specify, and they probably let you choose between form encoding and json encoding Your endpoint is provided by API gateway, which lets you forward the request to your Lambda function. Your lambda will write to ...


Only top voted, non community-wiki answers of a minimum length are eligible