zencilencer

zencilencer

Is Elixir good for getting to know a programming language for the first time?

Hello everyone, let me ask about elixir as the first language of a prospective programmer for his first project, is it worth it?

I have seen the Elixir ecosystem which doesn’t seem like a bad idea to make it the first language, one of the most interesting things is its ‘fault tolerance’ behavior which amazes me.

If we talk about in college, generally my university teaches oop then Java or Python as a learning material for a prospective programmer to know the first language as well as the language for his first project, because the general elixir is not common because in this case it is a functional language, then is it worth it?

Even though it seems subjective, I want to make sure that I am in the right place to invest more of my time in studying elixir or maybe even contributing to it. Perhaps could you provide some insight into this?

Thank You

Most Liked

dimitarvp

dimitarvp

I absolutely encourage you to pick a functional language as your first, yes.

It will teach you about immutable state and variables and how do you confine your logic to changing just the output of a function and not go back and modify the input parameters given to it – a mistake many mainstream languages allow you to do and that only serves to confuse people.

Especially Elixir’s pipes – the |> operator – will help you think in a good, logical and graspable way about how your functionality is assembled together. Get data A, transform it to A1, then transform to A2, then to A3, then eventually return that to your caller.

As @D4no0 said: avoid frameworks while you are working on understanding the language. Only use the stdlib. Pick a problem you would want to solve and try to implement it in vanilla Elixir. An exception to this is if you want to jump straight to web / API development but I don’t advise you to start with this right away.

Start with the official introduction and finish it from top to bottom, including the Mix / OTP optional parts (macros and metaprogramming you can skip for now). After you have gone through that, try your first mini project (again, vanilla Elixir). If you are still not confident enough you can ask here for more help and also go through Exercism’s Elixir track.

D4no0

D4no0

If you are just starting, any language will do, however I would advice to avoid using libraries/frameworks for your first projects, try and build something from scratch with just the tools provided by the language.

The scope of the university is to teach you concepts, not programming languages. I would generally encourage you, if you have freedom of choice, use as many languages as humanly possible in your laboratory works. When you will start working, you will no longer have the time or energy to explore exciting and new things.

One of my teachers, that was very old said the following when we first met: “The scope of higher education is not specialization, but to extend your world”. This is why you should try out everything you can put your hands now on.

Should you give a try to elixir? Absolutely! also try out lisp, erlang, haskell, prolog. All of these languages have different great concepts at their core, don’t limit yourself to broken oop taught by popular languages on the market.

Industry-wise, understanding the functional paradigm is one of the aces of great developers. Those principles can be applied in any modern language.

AstonJ

AstonJ

Also take a look at some of our older threads on this topic:

https://forum.elixirforum.com/t/is-elixir-a-good-first-language/183

This book would also be useful to anyone new to functional programming:

And more here:

:023:

Where Next?

Popular in Questions Top

vertexbuffer
Hello, can anybody help here..? I have a list of players and I what to delete an element, but every for loop the list is reverting to ori...
New
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
qwerescape
Is there a way to get the call stack or stack trace at any point in the code? Not from exceptions, but an expression that returns how the...
New
Patoshizzle
After calling mix ecto.create I get this error: 17:00:32.162 [error] GenServer #PID<0.412.0> terminating ** (Postgrex.Error) FATAL...
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
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
itssasanka
Hi all, Trying to get some more clarity over utc_datetime and naive_datetime for Ecto: The documentation above suggests that while ...
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
komlanvi
Hi everyone, I was playing with phoenix liveView but I run into an issue. I have a form and want to validate each input text when the te...
New
shijith.k
I am trying to start a new phoenix project with elixir 1.9, but mix phx.new does not work. It says that ** (Mix) The task "phx.new" could...
New

Other popular topics Top

marius95
Hello everyone, I try to use an Javascript Event Handler in my root.html.leex file. Therefore I created a function in the app.js file: ...
New
Harrisonl
We have an ECS cluster with 4 services, where each task joins a single cluster, via discovery ECS discovery service. Currently when I de...
New
chrismccord
As promised, the first release candidate of Phoenix 1.3.0 is out! This release focuses on code generators with improved project structure...
New
Patoshizzle
After calling mix ecto.create I get this error: 17:00:32.162 [error] GenServer #PID<0.412.0> terminating ** (Postgrex.Error) FATAL...
New
johnnyicon
Hi all, I’ve just started learning Elixir and Phoenix Framework, so please pardon my n00bness at this stage. I’m trying to use Postgres...
New
chrismccord
This release brings a number of exciting features, including integration with the new Phoenix LiveDashboard and Phoenix LiveView. There h...
New
JorisKok
I have a server on AWS, and was running a load test using artillery. When looking at the Phoenix dashboard I see the Ports going to 100% ...
New
hariharasudhan94
lets say i have a sample like a = 20; b = 10; if (a > b) do {:ok, "a"} end if (a < b) do {:ok, b} end if (a == b) do {:ok, "equa...
New
shijith.k
I am trying to start a new phoenix project with elixir 1.9, but mix phx.new does not work. It says that ** (Mix) The task "phx.new" could...
New
joaquinalcerro
Hi there, I am working with Ecto-Postgresql and I need to call all of the records from a specific table but the table has 40,000 records...
New

Latest on Elixir Forum

We're in Beta

About us Mission Statement