virspirit

virspirit

Ruby on Rails Dev into Elixir *Recommended / Advice needed

Hello guys, I’m really new here in Elixir, my team background is in Ruby on Rails, and we have built our chat solution using Rails backend (with PubNub real-time infrastructure).

We’re looking to switch and plan our tech stack into something more scalable (in term of chat and workflow- like zapier) in the future. Therefore, we are looking to either switch to Golang and Elixir.

Is there any recommendation in terms of the framework? How does the security encryption and all the functionalities worked (online, typing indicator and etc) works in Elixir?

Hope someone experienced can give some direction

Most Liked

kokolegorille

kokolegorille

Hi and welcome,

As it is an Elixir forum, You might have strong opinion for Elixir, but here are some good/bad parts for Elixir.

  • Phoenix is very similar to Rails, and this might be easy to switch
  • Elixir syntax is Ruby like
  • Elixir really fits chat like application

On the bad part

  • Elixir is not Ruby, and the learning curve might be higher, because You need to switch from OOP to Functional programming
  • There are probably more packages availale in the Ruby world than in Elixir, although I could replicate my RoR dev to Elixir/Phoenix

Also there is no Active Record, but Ecto… no callbacks, but multies.

What’sApp was built with Erlang, so You see You might have all functionalities available for languages running on the BEAM :slight_smile:

kokolegorille

kokolegorille

Mixing 2 technologies for the sake of productivity might be possible, but in the long term, You should stick to one framework… it adds some complexity when trying to communicate between both applications.

You can have a look at a chat application in Elixir here.

Where Next?

Popular in Questions Top

Brian
What is the proper way to load a module from a file in to IEX? In the python world, doing something like this pretty standard: from ....
New
sergio
In Ruby, I can go: User.find_by(email: "foobar@email.com").update(email: "hello@email.com") How can I do something similar in Elixir? ...
New
gshaw
What is the idiomatic way of matching for not nil in Elixir? E.g., First way: defp halt_if_not_signed_in(conn, signed_in_account) when...
New
sergio_101
I am VERY much an elixir newbie. I have taken one elixir course and one phoenix course on Udemy. During that course, I saw the instructor...
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
dokuzbir
Hello, I am trying to convert my lists to string without losing brackets.For start i have 3 map. They look like these buyer = %{ id: ...
New
vac
Hi, I'm quite new in Elixir and I'm trying to format a string to a PEM format. I have the certificate value like MIIDBTCCAe2...... and ...
New
Phillipp
Hey, I have a NanoPi-M3 and try to install Elixir on their Ubuntu image. I followed the Raspberry Pi installation instructions from the ...
New
WestKeys
Currently suffering from paralysis by [HTTP client] analysis. This is rather unusual in Elixirland as there tends to be consensus on the ...
New
beno
I will often find my self writing things similar to: case some_value do nil -> something() "" -> something() _ -> someth...
New

Other popular topics Top

JakeBecker
TL;DR: I’ve just released an implementation of Microsoft’s IDE-independent Language Server Protocol for Elixir. It adds language support ...
1140 51847 244
New
yawaramin
In the Dialyzer docs ( http://erlang.org/doc/man/dialyzer.html#requesting-or-suppressing-warnings-in-source-files ), there is a way to tu...
New
albydarned
Hello all! I am typing this post from my new MacBook Pro with the M1 chip. I’m loving it so far, and will probably use it as my daily dr...
New
AstonJ
You’re a programmer, so you don’t need spoon feeding with the conventional drivel about “this is an integer.” No. You need to know what’s...
New
hariharasudhan94
I would like to know what is the best IDE for elixir development?
New
mcarvalho
What is the difference between System.get_env and Application.get_env? For example, what are best practices to use one versus another.
New
aadeshere1
I have a another noob question about loop. Since elixir is immutable, while loop is not directly possible. total = 10 while total != 0 ...
New
minhajuddin
I have seen a lot of code which picks the first element from a list using Enum.at(0) instead of List.first. Is there a reason why people ...
New
ovidiubadita
Hey all, I discovered Elixir and I love it. I always wanted to learn a functional programming and I intended to go for Haskell, but afte...
New
skosch
To my knowledge, put_in, Map.update etc. all have the one limitation of not automatically creating intermediate keys when needed (for exa...
New

We're in Beta

About us Mission Statement