News for hackers. Stuff that matters.
Re:In Praise Of –Dry-Run by cake-rusk on Sunday February 01, 2026 @04:40AM (#46844847)
> 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/

Re:In Praise Of –Dry-Run by awesome_dude on Sunday February 01, 2026 @01:24PM (#46848128)
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.

Re:In Praise Of –Dry-Run by cake-rusk on Monday February 02, 2026 @02:27AM (#46853388)
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).
Re:In Praise Of –Dry-Run by awesome_dude on Wednesday February 04, 2026 @02:39PM (#46890593)
I have to ask - I like some of the paradigms of Functional programming (IMO it makes concurrent programming a lot easier because state is never shared)

Why hasn't it cut through, like OO did?

and

Beam has been around since the 90s, had a good marquee project (RabbitMQ) but still has low adoption

Re:In Praise Of –Dry-Run by cake-rusk on Thursday February 05, 2026 @08:38AM (#46899513)
I am not sure I if I can speak to that in general but personally I discovered functional programming late. Object oriented programming was all the rage when I got initiated and that is all that was taught in colleges.