Nopp

Nopp

Completely new to programming and Elixir

Hey guys and girls,

i am completely “new” to programming, recently played a bit with Python, Ruby and PureBasic, but i want to try something different (PureBasic was a lot different too, though…), so i came across different slant suggestions for Elixir and i want to give it a try.

I am a system administrator and have a small startup myself located in germany, so please beware that my english will have some errors :slight_smile:
In the future i want to be able to offer more than just System administration and consulting in this topics.
I want to have the knowledge to build “small” or even bigger (web-)applications myself or in a small team and i think Elixir as the backend can help me with that.

My questions are:

  1. What yould you think is the best way to get me started through funtcional programming and Elixir as the language?
  2. Regarding Elixir itself: How can i imagine that Elixir need to have BEAM installed? Is this like the Java Runtime Environment most clients have installed?
    So if i have a client Software written in Elixir, the client has to install BEAM with it?
    And if i have a Webapplication the webserver has to run BEAM i suppose?

I hope i made everything clear!
Greetings from germany,

Nopp

Most Liked

leifericf

leifericf

Hi, @Nopp and welcome to the community!

I won’t be able to give you a specific answer for your questions about learning functional programming in general and your questions about BEAM, but I can share some of my thoughts on learning Elixir.

My approach to learning Elixir has been to read books and do practical exercises. I can recommend Programming Elixir and Programming Phoenix to get a flying start.

If you are completely new to programming (depending on your current level), you might want to check out Learn Functional Programming with Elixir before you move on to Programming Elixir. I have not read this book myself, so I cannot personally vouch for it, but I have heard good things about it.

Since The Pragmatic Bookshelf is one of our community sponsors, you can get a generous 35% discount on those books and others by using the coupon code: ElixirForum

I also listen to these three podcasts: ElixirTalk, Elixir Outlaws and Elixir Mix. I have found that listening to experienced developers talk about their way of thinking when solving problems is very beneficial to my learning process, as it help me to “think like an Elixir developer.”

Other than that, I like to share my thoughts and experiments on this forum to get feedback.

Different people learn more effectively by different methods, so I’m not sure whether this approach would work for you. This is just my preferred approach to learning.

stefanchrobot

stefanchrobot

Welcome to Elixir! :smiley:

  1. I’d suggest you go through Elixir for Programmers or Programming Elixir. The latter has a lot of exercises which is a great thing to do if your programming experience is limited. After that, I’d suggest Elixir in Action to understand the power of BEAM.
  2. Yes, BEAM is the VM required for Elixir (Elixir+BEAM is like Scala+JVM, just better!). When you’re going to release your software, you’d probably use something like Distillery that will package BEAM and your code as one deployment unit. Or you might want to use PaaS like Gigalixir where everything is taken care for you.
benwilson512

benwilson512

Author of Craft GraphQL APIs in Elixir with Absinthe

Hey @Nopp welcome!

Let me see if I can address your questions:

  1. I personally feel like Search is the best introduction to the language for folks who are newer to programming. It has a very gentle learning curve, and has lots of little examples to work with.

  2. The vast majority of programs written in Elixir / Erlang run on something like a server, they are not generally programs that people install and run on their individual computers. That said, there are basically two ways you can run Elixir programs: compiled and run on the same computer, and as a packaged release.

  • Compiled / Run in the same computer: For development work, you’ll want to have erlang and Elixir installed on your computer in full so that you can compile and run the code that you write. Personally I’m a fan of using GitHub - asdf-vm/asdf: Extendable version manager with support for Ruby, Node.js, Elixir, Erlang & more · GitHub to get these installed.

  • As a release: Once you’ve got a working program you can build what’s called a release. A release is a self contained package that includes your compiled code AND the BEAM. This means that if you go put this on your server you can execute it even if the server does not have the BEAM installed at all! Here’s the catch: The operating system that you run the package on needs to match the operating system it was built on.

Where Next?

Popular in Chat/Questions Top

ericdouglas
I think that would be really interesting to have official books created by the community about all kinds of development we can do with El...
New
Chawki
hi,i’m new to programming world i had learned front-end( javascript,react.js) and i wanna learn a back-end programming language i thought...
New
RKC07
I’m new to elixir. I did some coding in python and C. I want to learn elixir for starting my career in web development. I need suggestion...
New
dogweather
Can anyone recommend books/courses/videos that use real-world Elixir? E.g.: Idiomatic error handling design, whether it’s {ok/error, .....
New
wolfiton
Hi everyone, How can i retrieve the name from a structure like this? %{"id" => "1570", "name" => "Croque Monsieur"} My test loo...
New
AstonJ
It’s been a while since we asked this - I’m sure others (especially newcomers to the language) will be interested to hear how you’ve all ...
New
New
Sujit
Hi Team From the title, I am entirely new to programming and i am interested in learning elixir but not sure where to start. Can someone...
New
younes-alouani
I’m studying Phoenix Framework but I want to understand basics first. Which book/mooc explains better the Design of Network-based Softwar...
New
tom_s
Hello Elixir Community! I’m new to functional programming in general and to Elixir in particular but I’m very intrigued and would like t...
New

Other popular topics Top

sen
Hi All, I set a environment variables in dev.exs , like below code. when i start server, how can i set the ${enable} value? thanks. d...
New
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
malloryerik
Hi, this is for people who, like me, have had some friction using .html.heex templates in VSCode. The solution seems to be, in a hyphena...
New
New
sorentwo
Hello! tl;dr Announcing Oban, an Ecto based job processing library with a focus on reliability and historical observability. After spen...
985 42920 311
New
electic
Hi, I am new to Elixir. I am trying to use the DateTime component to insert a date into MySQL however the there seems to be no way to fo...
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
jay1
Why is it that the mnesia database isn’t the most preferred database for use in Elixir/Phoenix?
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
vonH
In asking this question I am more interested about the expressiveness of the language itself and less concerned about the availability of...
New

We're in Beta

About us Mission Statement