wintermeyer

wintermeyer

Please add examples with Ash documentation

First of all: I am a mediocre programmer. I am aware of that fact. I don’t try to hide it. But I also know that the majority of programmers out there are mediocre or worse. So I want to be a voice for them (us).

Second of all: I don’t use Ash every day. I use it and then I switch to something totally different because my work asks for it. Between my Ash programming there can be 12-16 weeks of Ruby on Rails programming. Sprinkled with some other programming languages or frameworks. That is the live of a consultant.

I am writing this post to share some light on the main problem people like me have: A ton of documentation we don’t understand. Mainly because most of it doesn’t contain a single working example. Maybe this is a generational problem. Maybe it is a language barrier problem.

Generation Problem

I started programming in the 1980s. In a time without internet. In a time without peers I could ask (I was for a long time the only kid with a computer in my home town). Books about programming were a) expensive and b) had to be ordered from the US (I live in Germany) which was a BIG deal in those times and it took weeks. I mainly learned by reading programs I found in computer journals. On printed paper :scream::wink:. For context: My first computer was a ZX 81 and didn’t had a storage devise. I learned not by theoretical explanations but by examples which I refactored. Give me a Hello World! and I thank you! In 9 out of 10 times I use Google to search for an Ash problem. Most times I find a “solution” but one I do not understand. If they included a working example it would make a huge difference. And by working I do mean working. Not something that looks like a working example but actually is missing a couple of key components.

Language Problem

I am German. I feel fine to communicate in English but every now and then I don’t understand a technical term. With a clean and working piece of example code I wouldn’t even have to understand the term. It would make such a big difference.

Bottom Line

I just wanted to share some light into a frustrating situation for us mediocre programmers who want to use Ash but who get stuck so often. If you read a question of us do not assume that we are too lazy to search for the answer but please assume that we really don’t understand what we found and give us a working example code which we can play around with. I don’t need to understand the 100 possible arguments of something. I only need a solution for my problem and from that I can go ahead and learn additional stuff.

Most Liked

zachdaniel

zachdaniel

Creator of Ash

This is something that I will be aiming to improve soon, primarily by overhauling our reference docs. This is one of the things that is next up on the docket.

zachdaniel

zachdaniel

Creator of Ash

There is also an aspect here of the methodology behind support. The way that we help people on forums etc. is not necessarily by providing a fully worked solution to their problem.

Please don’t get frustrated when someone links you to documentation they think will help. This is what is supposed to happen first. You can say “I read that but I don’t understand it”. And that gives us information on what needs to be improved on the docs. But just writing out a code example in response to a question is not how our documentation improves.

We don’t have full context of someone’s app, we don’t know what else your code base contains, or what else you do or don’t know. From your perspective you have one very simple problem and you know exactly what you don’t know. But we deal with folks at various skill levels with Ash all the time.

Regardless, as I mentioned in my original response, we have an explicit goal of going over all of the docs and adding examples to as many places as possible. Hopefully that will make some of this easier.

ken-kost

ken-kost

Check out Build something with Ash guided by Zach Daniel!.
Shout out to @PJUllrich and @zachdaniel, they made a great walkthrough. Haven’t watched it fully yet but I’m sure I’ll learn something along the way. :slight_smile:
git repo

Where Next?

Popular in Discussions Top

sashaafm
I’m trying to evaluate the best combo/stack for a BEAM Web app. Right now I’m exploring Yaws a bit, after having dealt with Phoenix for a...
New
pillaiindu
In django there is a cache framework backed by memcached. Rails also puts a lot of emphasis on caching, and even the idea of russian-doll...
New
AngeloChecked
What learn first? Rust or Elixir Hi Elixir community! I’m here because i want learn a new language. I’m a junior developer and mainly i ...
New
marciol
Please, let me know if this kind of discussion already took place in another topic . Hi all, how do you consider if is better to build ...
New
sergio
There’s a new TIOBE index report that came out that shows Elixir is still not in the top 50 used languages. It also goes on to call Elix...
New
restack_oslo
Hello, Please pardon me for any faux paux. I am 46 and this is my first time on a forum of any kind. I wanted to to get answers from tho...
New
ben-pr-p
In general I’ve been sticking to this community style guide GitHub - christopheradams/elixir_style_guide: A community driven style guide ...
New
tomekowal
Hey guys! I want to create a toy project that shows a chart of temperature over time and updates every 5 seconds. I feel LiveView is per...
New
AstonJ
Can you believe the first professionally published Elixir book was published just 8 years ago? Since then I think we’ve seen more books f...
New
opsb
We’re considering our architecture from a viewpoint of scaling our traffic heavily over the next 6 months. Our current deployment is runn...
New

Other popular topics Top

AstonJ
Posting this to see if we can make things easier for people to get into Neovim. If you use Neovim and have a favourite distro please let ...
New
gshaw
What is the idiomatic way of matching for not nil in Elixir? E.g., First way: defp halt_if_not_signed_in(conn, signed_in_account) when...
New
ovidiubadita
Hey all, I discovered Elixir and I love it. I always wanted to learn a functional programming and I intended to go for Haskell, but afte...
New
JakeBecker
TL;DR: I’ve just released an implementation of Microsoft’s IDE-independent Language Server Protocol for Elixir. It adds language support ...
1144 53690 245
New
chrismccord
This release brings a number of exciting features, including integration with the new Phoenix LiveDashboard and Phoenix LiveView. There h...
New
jay1
Why is it that the mnesia database isn’t the most preferred database for use in Elixir/Phoenix?
New
joeerl
Hello again - after a longish gap I’ve decided I really must dig into Elixir and see what’s been happening here - so I have a few questio...
New
pmjoe
I have a relationship of love and hate with Elixir. Lots of things are just absolutely right, but there are some things that are kind of ...
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
jononomo
For some reason my phoenix channels are working for me in my local dev environment, but as soon as I deploy via Docker, I get a 403 error...
New

We're in Beta

About us Mission Statement