patrickdm

patrickdm

Hello, I will start soon to teach programming basics to a friend who’s is totally new to the subject. I’d really like to use Elixir as her first ever programming language. Would you make the same choice? Or do you think I’d better go with something more mainstream and object oriented like python, ruby, or even javascript (and staying away from all its quicks). I feel FP far more intuitive and natural (but that’s the way my brain works) so Elixir would be my obvious first choice. what do you think about it? Are there any drawbacks I’m not considering? Thank you for your valuable opinions.

Showing Posts 1 to 10

alice

alice

I am also a beginner at programming with some basic experience in JS and was going to ask whether learning Elixir as a first language is a good idea. IMO FP is also more intuitive and from what I read might be easier to learn if you have no prior experience in OO.

patrickdm

patrickdm OP

Hello Alice, did you start studying Elixir already? If so, how your prior experience with Js has influenced your Elixir learning? Was it helpful or you find it somehow misleading due to the differences in data mutability and the usage of imperative constructs like i.e. for-loops? Thank you for your contribution!

mindriot

mindriot

It maybe could be a good choice in some cases, I’m not really in a position to judge that. One thing I do think is important though is to think about the outcome. She would like to learn a programming language presumably for a reason, how does elixir specifically fit into that context. For example if she would like to make a mobile game then it probably isn’t a very good choice and she will likely have to learn an OOP language after to get there so the value in learning elixir is first fairly low with a high cost of time commitment. Similarly if she is thinking of a career change but there are no elixir jobs in the area she lives then it likely won’t further her goal that much in comparison to investing the time in something that has those career prospects.

alice

alice

The only thing I noticed was that the author of the online course kept saying that functional programming is not intuitive and I was like what are you talking about OO is not intuitive this is totally intuitive - input and output, what’s more intuitive than that. lol.

dimitarvp

dimitarvp

I remember a linked article on HN 1-2 years ago, written by several CS professors, that students who start off with functional programming can then very easily learn imperative / OOP programming but the reverse has been proven to be not true: if you start with imperative and OOP then it’s really hard to rewire your brain to work with FP. It does happen but it takes more time and effort.

So yep, Elixir as a first language would work better.

patrickdm

patrickdm OP

Thank you @mindriot, I agree with your considerations. She is totally new to programming, but feels interested in learning it’s rudiments to start with. There are no actual plans for the possible outcomes yet, first we’ll need to see if it is something she like to do for real. It is more a challenge I proposed to open some opportunity for her to get out of her comfortable zone of work’s field, as her present position is getting more and more tight and unpleasant for her. I believe that learning something new could boost her self esteem and lift her point of observation of the future. Also learning to program is something that actually has a concrete applications for a new job to come. Of course I am planning to expose her to HTML and some bits of Js, for their vast usage in current the market. But she needs to take her very first baby step, so for the time being we will forget about the direct outcome. (BTW, I’m a freelance dev, using Elixir/Phoenix for most of my customers projects, and I could easily see her helping me out with it, so there is also some kind personal interest in it :wink: but it is too early to even speak about that idea). Thank you for you valuable insight.

alice

alice

I am learning Elixir now, I’d like to help you with your work too if you need an assistant. Cheers.

mindriot

mindriot

In that case it would seem like the main goal here is to make it as enjoyable a start into the world of code as possible. For that I’d see Elixir as an excellent choice.

patrickdm

patrickdm OP

Thank you @dimitarvp I have the very same feeling about it. Learning to program with the functional paradigm teaches a sane mental discipline and you can then build on new paradigms applying solid reasoning processes that make cleaner and safer code! I will search for that article, thank you for pointing me to it.

patrickdm

patrickdm OP

Thank you Alice, your help is welcome! I’ll keep you posted! :slightly_smiling_face:

Where Next? Top

Trending in Discussions Top

cblavier
Hey there, It’s been more than a year since we started using LiveView as our main UI library and building a whole library of UI componen...
New
wmnnd
Hey folks, I wanted to share with you a project I’ve been working on for a while: It’s an Open Source (AGPLv3) newsletter tool. Think Ma...
New
axelson
Hi there! :wave: @frigidcode and I (but mostly him) have been running an Elixir Book club, we’re almost done with Designing Elixir Syste...
New
alexslade
Fly’s CEO posted this recently - Turn And Face The Strange · The Fly Blog It says that Fly is going all-in on sprites, which is a worry ...
New
sntran
In my third year of college, around 2010, I found Erlang. A few years later, I found Elixir. I liked the ideas at once: many small proces...
New
Ganna
Hi everyone, I have 8 years of production experience with Erlang/OTP and I’m just starting to get to know Elixir. What would you learn f...
New
gtcode
I’ve been tinkering with Lynx (by José) via hold_ledger. I used AI to write the code, a separate specification, the tests, and the Lean p...
New

Other Trending Topics Top

dominicletz
Hey there, I haven’t seen a list of useful Elixir specific skills for the popular AI tools yet so I’m starting one here with my first. ...
New
mudasobwa
I fully migrated to my own harness from Anthropic/Gemini and I think it’s time to share it. Welcome DSH, the DeepSeek Harness, fully writ...
New
KristerV
Hey. Is there anyone here who creates agents in their apps? Not talking about using agents, but creating them. I’m finding it pretty diff...
New
OndrejValenta
(I just needed to vent somewhere and LinkedIn is full of hope, or hype, I’m not sure which exactly) AI dream has many faces, but general...
New
webofbits
With AI doing more of the implementation work, I’ve been wondering how much coding I should deliberately keep doing myself. My main conc...
#ai
New
kip
In 2021 I started a new library called Tempo with the objective of modelling time as a set of intervals - not as instants. In 2022 I gave...
New

We're in Beta

About us Mission Statement

Options

Thread Display Mode




Thread Preview

Skip Thread Previews