Here’s what I’ve learned today (20th January 2021):
Phoenix is a mess: it’s hard for newbies like me, but i do like the LiveDashboard thing. Gotta look into how to get that thing on Raxx
Raxx is amazing with comprehensible defaults and minimalism, everything is easy to find and I get to choose if I want ecto etc. However, my console is filled up with deprecation warns (*ahem* @CrowdHailer )
I learned most of the cool stuff (such as the pipe omg ) the past week, “sadly”. Hopefully future journals will be interesting enough though, as I have found the interface for me; Raxx.
You can make a new folder inside lib, and run code from there as if it were a module. I’m gonna write my own private module called Metro (nodejs has express) to make some request modifiers
Speaking of requests, sorry @crowdhailer but Raxx is super slow for some reason, 500ms is not ok for an api
Maybe Raxx Kit is doing something odd that slows down the entire thing. I made a plug app that does the same things and i get around 30ms when fetching data from database and around 5ms when sending a hardcoded response
If you’re making custom private modules in /lib/, don’t name the folder something that starts with a dot, it will ignore everything that’s inside a dotted folder
Managed to create a pretty neat router with plug, which basically takes the request, checks what version it is and then it goes to the next router (users, auth etc) which then sends the request to an action
Day 99999 of not received the book, fingers crossed for Monday or Tuesday!