Code Monkey home page Code Monkey logo

polysemycleanarchitecture's Issues

Introduce more sophisticated examples

This article was a pleasure to read, but as for a beginner I am it left some questions unanswered. I understand that this article is not an ultimate guide to haskell, but still I hope for some clarification on these cases.

  1. Where data validation should be implemented? Does one provide smart constructors which return Validation type or it should be done in use cases layer and domain layer itself left only to work on valid data?
  2. Some computations are better handled by the database engine. Say, we want to get all historical reservations by one person, maybe ordered by date or size of reservation. Of course this could be done purely, but database engines provide their capabilities for performing such actions and in some cases they may be more performant. Is this the price we pay for using this architecture or a there implementations for that? Also when database grows too big you probably don't want to load a whole table into memory, only a specific section of it. How does one implements data structure for such sectioning of data?
  3. How to apply multiple interfaces to same use cases? Say, I want a REST API but also a WebSockets server running simultaneously and sharing the same state. But also additional interfaces should be completely optional and for an app to function at least one has to be provided.

While this may sound somewhat offtopic, I personally think these are general questions, answers to which may help build an understanding of whole idea and some intuition on applying it.

Change the server in interpreter?

Hi there, thanks for the write up.

I'm wondering if we want to change the server to serverless, is it easy to do that? If we treat the server is an effect, can we just change the interpreter?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.