Skip to content

Step-1-Result-Monad#6

Open
fmt-Println-MKO wants to merge 8 commits into
mainfrom
Step-1-Result-Monad
Open

Step-1-Result-Monad#6
fmt-Println-MKO wants to merge 8 commits into
mainfrom
Step-1-Result-Monad

Conversation

@fmt-Println-MKO

@fmt-Println-MKO fmt-Println-MKO commented Jan 25, 2025

Copy link
Copy Markdown
Owner

This pull request introduces the use of a Result Monad to improve the error handling and response handling for the orders data source. The key changes include:

  • Implemented the Result monad for error handling throughout the orders service and data source
  • Updated the GetOrder, GetAllOrdersForUser, and order storage methods to return monadic results
  • Improved the order insertion logic in the orders data source
  • Simplified the error handling and response handling in the orders service

These changes aim to provide a more robust and functional approach to handling errors and responses in the orders domain, making the code more maintainable and easier to reason about.


This is part 1 of 2 in a stack made with GitButler:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant