AstonJ

AstonJ

Which areas of Elixir did you find confusing to begin with?

For me (and I guess many others?) it was (so far anyway) probably the match operator and the concept of pattern matching :icon_redface: :lol:

Most Liked

sashaafm

sashaafm

For me I think it’s been mostly OTP/concurrency, but that’s because I’ve never truly grasped these concepts from a theoretical standpoint as well as in other languages. Although Elixir has been a pleasant surprise to learn about this subject.

h4cc

h4cc

My biggest problem is the OOP-Thinking in my head. I know that Elixir instead is processing a stream of data with transformation functions, instead of modeling and modifying objects.

Also i was in lack of patterns to use like i know from OOP. Even when these will not be the same, there must be a “common knowledge” useable for Elixir.

uranther

uranther

The most confusing thing for me is the syntax. I find it mostly natural until I want to do something in particular, then I am constantly stumbling about where to put parens or commas or colons, and the compiler error messages are too vague. I think I need to read that Metaprogramming in Elixir book to really know what’s going on, since most of the language constructs are really macros, e.g. “if”. Many of the peculiar usages are not covered in the “Getting Started” guide. For example, did you know you can |> pipe into a case construct, or pattern match its output to a var? This article on with was particularly helpful to show these syntactic peculiarities. Maybe I will get a better hang of it while going through Programming Elixir 1.2.

Where Next?

Popular in Discussions Top

vans163
So useless benchmarks aside, Its possible to write a webserver that can serve 300k requests per second (perhaps more with optimizations)....
New
mmmrrr
Just saw that dhh announced https://hotwire.dev/ Is it just me or is this essentially live view? :smiley: Although I like the “iFrame-e...
New
cvkmohan
The upcoming Phoenix 1.6 release looks very interesting. Became a habit to watch the commits - and - what they are bringing in. phx.gen...
New
nunobernardes99
Hi there Elixir friends :vulcan_salute: In a recent task I was on, I needed to check in two dates which of them is the maximum and which...
New
AstonJ
Are there any Elixir or Erlang libraries that help with this? I’ve been thinking how streaming services like twitch have exploded recentl...
New
New
AstonJ
If a newbie asked you about Phoenix Contexts, how would you explain the basics to them? Feel free to be as concise or in-depth as you li...
New
Crowdhailer
I’ve been hearing much about the new formatter and it’s something I have been keen to try. I find examples buy far the most illuminating...
248 19204 150
New
jesse
Hi everyone, I hesitated to post this here because I don’t want you to think I’m spamming, but I’ve been working on a Platform-as-a-Serv...
New
sergio
Kind of like when jquery came out, it was super necessary. Existing drag and drop libraries have a bunch of baggage to support old browse...
New

Other popular topics Top

JeremM34
Hello, how can I check the Phoenix version ? Thanks !
New
stefanluptak
Hello everybody, usually, I use a 29" ultra-wide monitor for VSCode which can easily accomodate explorer (files panel) + file with code ...
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
gausby
I asked this very same question on twitter and got some interesting feedback, but I thought it would be a good question to ask here as we...
1207 39297 209
New
RisingFromAshes
I’ve read in another post that it may be possible with a router helper - but I couldn’t find an appropriate one, and tbh, I’m still just ...
New
fayddelight
I tried installing elixir 1.11.2 erlang 23.3.4 via asdf in my zsh shell. Enabled the versions locally and globally. When I list them ...
New
ashish173
I am using Ecto timestamps with postgres, I can see the timestamps() use the :naive_dateime but for my use case I wanted to store the ti...
New
romenigld
I am trying to run a deploy with docker and I successfully runned with this command: docker build -t romenigld/blog-prod . but when I t...
New
AstonJ
We’ve put together this wiki for Phoenix LiveView - please feel free to add any info you feel is worth including. What is Phoenix LiveV...
New
marick
I had some trouble figuring out how to make many-to-many associations work. Once I got it working, I wrote a blog post. Because I’m a nov...
New

We're in Beta

About us Mission Statement