top | item 46844847

(no title)

cake-rusk | 29 days ago

> I'm using MVC design patterns for some codebases, I'm using DDD plus Event sourcing and Event Driven for others.

All examples of OO nonsense. There is only one pattern you need (functions) (tongue-in-cheek): https://fsharpforfunandprofit.com/fppatterns/

Edit: Also consider using the ELM architecture instead of MVC: https://guide.elm-lang.org/architecture/

discuss

order

awesome_dude|28 days ago

I typically reach for Go when I am building things, bubbletea, a TUI library uses the Elm architecture and enforces it on people using it.

Did not like, Won't use again.

MVC is well understood and works perfectly in my experience.

edit:

Even though you were tongue in cheek about F# - this stood out on the page

> The functional programming community has design patterns and principles as well.

cake-rusk|28 days ago

IMO the ELM architecture only works with pure functions. It doesn't work with languages which cannot provide this compile time guarantee. Also functional programming needs a different mindset / training. You won't benefit from it until you understand what it actually brings to the table (and what it leaves out).