Kept building dashboards and internal tools that needed a login, but a full auth system felt like overkill and BasicAuth's dialog breaks your flow with no logout.
Built OneAuth: database-free, single-account, session auth for Plug apps. v0.1.0 is live 🎉
https://t.co/4L08LgmZHz
Hey Elixir friends! :) A real event system comes to Hologram - v0.10 is out! You can now handle keyboard, scroll, resize, click-outside and scroll-edge events, bind handlers to the window and document, and debounce or throttle the noisy ones, all in your templates with compile-time checks. To show it off, I rebuilt Space Invaders in pure Elixir, running in the browser with no game engine. Plus a new server-side middleware layer, and comprehensions and try/rescue now run the same on the client as on the server. More here: https://t.co/epwkW5Gt7s
@DNAutics To be fair, they don’t return the same things. The case will return an ‘ok’ if not found. Whereas the other two will be a ‘nil’. In this situation if I want result or nil I would go with the if. If I did not want a nil, I would use the case
@mpotra I have never had great luck composing multiple Ecto Multis together due to the unique keys and order. You have to know much of it upfront and can get complicated. These transactions are composable, meaning you can make a new transaction with transactions inside, it’s nestable.
New post about Repo.transact/2. After hearing about it from the Saša, I decided to try it out myself. It is amazing! I don't ever see myself using Ecto.Multi again.
https://t.co/itNEC0WivW
#myelixirstatus
@germsvel For fonts I always need to look it up and have found some outdated stuff. The api versioned routes I don’t find too difficult but don’t see many people talking about it. Subdomains I have never done but I know is possible and don’t see much talk about it
🔥🐥 In Phoenix 1.7, you can generate a verified route with a query string by adding an Elixir map or keyword list after a question mark. Way nicer than using the old route helpers!
#myelixirstatus
@kamilskowron Because it was Soo different I had to relearn all my muscle memory. Colemak has some similarities to QWERTY. I wanted a fresh start so I went with the completely different layout. Also Dvorak is more ´available’. For example on my MacBook laptop apple has it included in the OS.