apoorv-2204
How a simple problem like of inheritance or any other problems are mapped to functionalD and in OOD , what are their differences in their design model.?
If we been given a problem let say x to design and model it.How it would differ for the OOD and FD?
Lets say for entities like Person, Man, Woman , Father ,Mother, lawyer student?
How we design a future proof software? How we deal differently , with maybe upcoming future complexity in software? for both the designs?
Like in more complex situation like designing of vending machine , parking lot ,etc.How those OOD maps to functional. In functional there are just transformation of data.
Trending in Discussions
As the title says, please share what you’ve been up to with Elixir. Whether that’s been learning it, looking into it, making stuff with i...
New
Hey there,
It’s been more than a year since we started using LiveView as our main UI library and building a whole library of UI componen...
New
I am happy to introduce the very α version of the new programming language compiled to BEAM.
Welcome Cure.
It has literally three kille...
New
Quite interesting article Google brought me. Didn’t find any mentions about it here.
What do you think in general? Would you use togethe...
New
Hi everyone!
The first release candidate for the Expert language server project is now available!
We’ve published a press release detai...
New
A little off-topic, but I feel like people here have a good head on their shoulders.
I used to be quite good at making software. Was luc...
New
Hi there! :wave:
@frigidcode and I (but mostly him) have been running an Elixir Book club, we’re almost done with Designing Elixir Syste...
New
Other Trending Topics
Edit: 2026 May 15 - This post is archived.
Mob is alive!!
Main docs: mob v0.7.11 — Documentation
A bit of explanation for the slightly c...
New
Hey, I’m Jesse and I’m the main contributor behind Dexter, a full-featured, lightning-fast Elixir LSP optimized for large codebases. It s...
New
Hobbes is a low-level distributed database for the Elixir programming language.
Hobbes provides a simple, safe, and scalable storage lay...
New
ExRatatui lets you cook up rich terminal UIs in Elixir, powered by Rust’s ratatui via Rustler NIFs. Build interactive terminal applicatio...
New
Just published claude-code-elixir, a plugin marketplace for Claude Code with Elixir support. These are the plugins I’ve been using for my...
New
Xamal is a deployment tool for Elixir apps that deploys native releases to bare metal servers over SSH. It’s a port of GitHub - basecamp/...
New
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #library
- #deployment
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #elixirconf
- #channels
- #exunit
- #discussion
- #code-sync
- #podcasts
- #javascript
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ai
- #ecto-query
- #elixirconf-us
- #blog-post
- #elixir-ls
- #phoenix_html
- #iex
- #graphql
- #genstage
- #websockets
- #supervisor
- #advent-of-code
- #distillery
- #processes
- #elixirconf-eu
- #api
- #forms
- #metaprogramming
- #hex










Showing Posts 1 to 8- Show Best Posts
- Show All (oldest first)
- Show All (newest first)
adamu
– Fred Brooks
apoorv-2204
what if we build Minecraft in elixir?
benwilson512
There have been quite a few FP vs OO threads lately, I would consider reading through and contributing to one of those instead of starting a new one. Topics tagged functional-programming
D4no0
What if we build elixir in minecraft?
apoorv-2204
thats awesome.
imagine meme
get this man a shield
you didnt have to cut me off meme
brain exploding meme.
ps: I cant post meme, I will get banned
olafura
For this specific example of Person then I would look into Protocol. It focuses on what functionality you need from the data structures you have.
I’ve always been a bit puzzled by teaching OOO as you have a base class of Animal and then have it inheriting from that. Because it’s the wrong lessons often and makes people over engineer their designs.
Classes are about how you store things in memory and you use inheritance to be able to access internal structures.
Elixir is very nice for a flow processing where you have a structure and are modifying in each step, eg:
JSON |> Struct |> Email message |> Send Email
With Elixir and other functional languages you know can know exactly where a problem originated while with Classes you are sort of scratching you head and wondering how did this variable get messed up.
For something like vending machines it’s just a state machine and I feel like it fits better than Classes.
LostKobrakai
Ducktyping can work well in functional programming. E.g. take elixirs datetime handling. You can do
DateTime.utc_now() |> Time.to_iso8601()and it will work, because the fieldsTime.to_iso8601expects are a simple subset of the fields%DateTime{}holds. No need for any inheritance.adw632
Some essential rules:
Look at the Enum module, it can work on data elements of any type, so think in terms of steps or an algorithm and really let the data be just data.
For true OO semantics look at Elixir process modules such as genservers or liveviews which are objects as per the Alan Kay definition, they accept messages as the only means of interacting with them and manage private state in their own process context.