mekusigjinn

mekusigjinn

Updated demo code from Saša Jurić's "The Soul of Erlang and Elixir" video, for Elixir 1.12 and Phoenix 1.6

Hey all,

This is the original repo: GitHub - sasa1977/demo_system · GitHub

And this is my fork which has updated code to run under most up-to-date Erlang/Elixir/Phoenix. The original git repo has .tool-versions, so you can use asdf to install the correct version. Disclaimer is I don’t have asdf in my machine, so I just updated that file to the versions I have running.

And yes Phoenix 1.6 - esbuild and everything.

https://github.com/lovebes/demo_system

The video: https://www.youtube.com/watch?v=JvBT4XBdoUE&t=498s

Now you can follow along with the video using the latest versions!

Why I did this, besides making the video be more interactive:

I dunno about you but at work our team is the only team using Elixir, so we’re kinda on thin ice. We are a small team who’s trying to make a case that Elixir will help the entire engineering team.. I mean it’s either this or rewrite into Ruby (to match all other web app code), so I think/hope the case is not that hard to make.

Anyhow I always think and try to get a couple more steps ahead of a potential show-down of compare-and-contrast that leadership might ask. My go-to ammo was always the book “Adapting Elixir”, and the video: “The Soul of Erlang and Elixir • Saša Jurić • GOTO 2019”.

The video itself is AMAZING. I watched it I think about 7,8 times now.

Yes by itself will get the viewer to gain insights on the BEAM, and why Elixir will allow access to it.

However you know what’s better than just telling people to watch it?

A demo of it, ACTUALLY being run, while during a Lunch-and-Learn meeting or an engineering demo running a variant of it with business-focused use case. Yes. YOU actually doing the demo and explaining the power of BEAM.

So, that’s why I updated the codebase. To pick and choose some of the key components of Saša Jurić 's talk, ready for anytime I need to explain benefits of Elixir/BEAM.

To help guide myself I’ve generated some outline of his talk into a sort of a presentation outline so I can be able to give it on a heart’s notice, in a Google Doc.

Oh and by the way, how he did the graphs? Pure genius. He drew it using SVG! So LiveView updates the DOM, and SVG draws the graph, data populated by assigns.. it’s so lean. No D3.js or whatever, just harnessing the power of HTML5 to the max. Super lean.

And the way he used the processes to monitor, tally up stats, and bringing it into LiveView was quite a learning experience. I mean I’m not super experienced in “process flow design” so this was a really an eye opening experience. (Yes I know this was a demo so code might not be super clean). Even then, wow.

Where Next?

Popular in Discussions Top

arcanemachine
https://nitter.net/josevalim/status/1744395345872683471 https://twitter.com/josevalim/status/1744395345872683471
New
vans163
So useless benchmarks aside, Its possible to write a webserver that can serve 300k requests per second (perhaps more with optimizations)....
New
Nvim
Anybody knows a comprehensive comparison of Django and Phoenix, thanks for the help. Where are they similar? Where do they differ the m...
New
laiboonh
Hi all, I am trying to convince my team to use liveview over the current react. What are some of the points where one should consider us...
New
pillaiindu
In django there is a cache framework backed by memcached. Rails also puts a lot of emphasis on caching, and even the idea of russian-doll...
New
Fl4m3Ph03n1x
Background This question comes mainly from my ignorance. Today is Black Friday, one of my favorite days of the year to buy books. One boo...
New
und0ck3d
Hello everyone! A few days ago I’ve created a topic here about how people were creating CMSs with Elixir and Phoenix. I’ve been studying...
New
ben-pr-p
In general I’ve been sticking to this community style guide GitHub - christopheradams/elixir_style_guide: A community driven style guide ...
New
Owens
Hello all, I am developing a new mobile app with Flutter frontend and Phoenix backend. The mobile app has real-time task management and c...
New
AstonJ
Seen any cool LiveView demos, sample apps or examples? Please post them here! :003:
New

Other popular topics Top

siddhant3030
Hi, I have to write a raw query for one of my project. But till now I have used ecto queries and don’t have much experience writing raw ...
New
stefanluptak
Hello everybody, usually, I use a 29" ultra-wide monitor for VSCode which can easily accomodate explorer (files panel) + file with code ...
New
alice
Hey, Just curious what are the main benefits of Elixir compared to Clojure? When is Elixir more useful than Clojure and vice versa? Th...
New
SoCreat
i’m a new one to elixir which editor can i use vs code? or atom? Thanks! :smiley:
New
fayddelight
I tried installing elixir 1.11.2 erlang 23.3.4 via asdf in my zsh shell. Enabled the versions locally and globally. When I list them ...
New
romenigld
I am trying to run a deploy with docker and I successfully runned with this command: docker build -t romenigld/blog-prod . but when I t...
New
hariharasudhan94
Lets say I have map like this fetching from my database %{"_id" => #BSON.ObjectId<58eb1a7a9ad169198c3dXXXX>, "email" => ...
New
vegabook
I’m brand new to Phoenix and I have stripped one of the demo applications to the bone. I just want to get an svg up on the screen. Here i...
New
jononomo
For some reason my phoenix channels are working for me in my local dev environment, but as soon as I deploy via Docker, I get a 403 error...
New
svb
Hi! Currently I want to submit a form by pressing the Enter key. However, since my input field is of type “textarea” this is just adds a...
New

Latest on Elixir Forum

Elixir Forum

We're in Beta

About us Mission Statement