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:

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

And more here:

:023:

Where Next?

Popular in Questions Top

vonH
In asking this question I am more interested about the expressiveness of the language itself and less concerned about the availability of...
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
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
Werner
Hi, I’m using Ubuntu 18.04 and after updating to OTP-24.0 yesterday i have this warning when I run “mix local.hex”: 14:57:30.512 [warn] ...
New
jononomo
I am trying to figure out how Mix knows whether the environment is test, dev, or prod -- where is this set? Thanks.
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
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
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
baxterw3b
Hi guys, i’m new in the Elixir world, and i have to say, that i love it! i’m having some problem to understand anonymous functions with ...
New
vrod
I am using the Starship cross-shell prompt – it seems pretty nice, but I get some errors: [WARN] - (starship::utils): Executing command ...
New

Other popular topics Top

sorentwo
Hello! tl;dr Announcing Oban, an Ecto based job processing library with a focus on reliability and historical observability. After spen...
977 41022 311
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
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
grych
Hi folks, Few months ago I have announced the proof-of-concept of the library to manipulate the browsers DOM objects directly from Elixi...
639 49522 488
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
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
chrisalley
ExUnit now has describe blocks which is a welcome addition coming from RSpec. In the docs, it states that nested hierarchies of describe ...
New
beno
I will often find my self writing things similar to: case some_value do nil -> something() "" -> something() _ -> someth...
New
Fl4m3Ph03n1x
About me? ( if you have nothing better to do than reading about some random guy in the internet :stuck_out_tongue: ) Hello all, this is ...
New
josevalim
Hi everyone, One of the features added to Elixir early on to help integration with Erlang code was the idea of overridable function defi...
New

We're in Beta

About us Mission Statement