Nopp

Nopp

Are there any books that cover achitecturing applications?

Hello there,

i have a lot to read and to learn, but are there some books, that are focussing on how i “should” plan the architecture of my software? Are there any best practices?

I hope my question is clear :slight_smile:
Greetings

Most Liked

david_ex

david_ex

It’s not a book, but this is an excellent article on how to structure software in OTP: https://ferd.ca/the-zen-of-erlang.html

Speaking of onion architecture, Scott Wlaschin has a lot of content on the web about DDD from a functional point of view, although he uses F# https://fsharpforfunandprofit.com/ddd/ You’ll also find lots of videos of his talks, and a book: https://pragprog.com/book/swdddf/domain-modeling-made-functional

Note that all of it won’t be applicable to Elixir (static typing, etc.).

easco

easco

On that point, I heartily recommend Greg Young’s talk on The Art of Destroying Software:

https://vimeo.com/108441214

Nopp

Nopp

But this describes mainly the syntax and how to perform specific tasks.
I want to know how to plan my software from beginning to end, for longevity, renewability and best pratices for the architecture itself.

In HTML there is the header, then body, then footer etc. Strict that. Simple. (I know, bad example)

Are there any best pratices like this for other applications, like client-server software?
Clearer what i want to know? English is not my main language, sadly…

svarlet

svarlet

It looks like you are (rightfully then) asking about architecture, which is merely affected by your choice of programming language. Your architecture should certainly not be depending on phoenix or ecto or whatever framework. Those are implementation details, they should not dictate how you build stuff.

If this sounds like what you’re after, I would suggest reading more about an architecture called with many names: Ports and Adapters / Clean Architecture / Onion Architecture.

There are others but this is certainly one you should check :wink:

aaronrenner

aaronrenner

Phoenix Core Team

I just gave a talk along similar lines at ElixirConf: https://www.youtube.com/watch?v=Ue--hvFzr0o.

It covers many things like creating a public (code-level) API and several internal APIs, in an effort to keep your application structured and easy to change down the road. It also covers how to test complex applications, and how to isolate Ecto to the areas of the app that it’s good at.

Hopefully this helps. :slight_smile:

Where Next?

Popular in Chat/Questions Top

Iex.new
Hello!, I just started this week to discover Elixir. I’m a PHP-Programmer and did some sutff in Go too. The more I read about Elixir t...
New
William
I would like to know that is there any online source for learning Phoenix Framework for building E-Commerce Store? Any advantage on build...
New
pietrofxq
I’ve bought the following books: Programming Elixir 1.6 Programming Phoenix 1.4 Programming Ecto Functional Web Development with Elixir...
New
markdev
What are the best beginner resources for learning Elixir and OTP (not Phoenix) in 2018?
New
svetarosemond
I’m planning on purchasing Elixir in action second edition, and I was wondering if anyone could tell me based off the first edition, does...
New
maqbool
what books/Resources do you recommend to learn about distributed system(theory)?
New
g5becks
Hello everyone. So I just got done reading all of the introduction to Elixir and working through the basics of the language. I am not new...
New
Allyedge
So, I want to get an Elixir book, but don’t know which one to get. Both Programming Elixir 1.6 and Elixir in Action looks interesting, b...
New
venomnert
Background I have been a backend elixir developer for about 3 years now. I have been mainly working on simple CRUD applications. Context...
New
shansiddiqui94
Greetings Elixir Developers, My name is Daniel, and I am taking my first step to learn all about the Elixir language. Currently I have a...
New

Other popular topics Top

pmjoe
I have a relationship of love and hate with Elixir. Lots of things are just absolutely right, but there are some things that are kind of ...
New
openscript
Hello! Sorry for this astonishing simple question, but I’m really stuck. I try to set up the intellij-elixir plugin, but I don’t know ho...
New
ycv005
I have followed this StackOverflow post to install the specific version of Erlang. And When I am running mix ecto.setup then getting fol...
New
SoCreat
i’m a new one to elixir which editor can i use vs code? or atom? Thanks! :smiley:
New
fireproofsocks
I’m working on defining a simple Ecto schema for a table (in PostGres), but I don’t see where I can define a column as NOT NULL. Conside...
New
lastday4you
I wanted to check elixir version in phoenix because i found that my elixir is 1.5 but when i use Enum.chunk_by it said the function is un...
New
script
If I have a string “1000 cfu/ml” . I want to remove the characters and / and space . So the string is like this "1000" What is the ...
New
stefanchrobot
What’s the safe way to decode a JSON string into a struct? I want to avoid calling String.to_atom. Jason.decode can give me a map with st...
New
rms.mrcs
Hi, I need to transform a list of numbers into a map where the keys are the indexes and the values are the original values of the list....
New
shahryarjb
Hello, I have map which I want to convert it to string like this: the map: %{last_name: "tavakkoli", name: "shahryar"} the string I ne...
New

We're in Beta

About us Mission Statement