defmodule Rain.Accounts.User do
use Rain.Schema
That's it. No need to remap anything.
create table(:users) do
add :email, :citext, null: false
-^- No annoying remapping of primary_key
Instead of:
create table(:users, primary_key: false) do
add :id, :string, primary_key: true, null: false, default: fragment(Nanoid.generate())
Follow 🧵to see how simple it is to match your schema to this new setup! 🧵
#LiveView#MyElixirStatus#elixirlang
🌐 Days 4 & 5 #ElixirJourney:
Focused on style setup and system structure. 📁
Pleasantly surprised by how intuitive Elixir's structure feels. 👍
Syntax still a puzzle, but it's growing on me. 🧩
Next Up: Custom click events & drafting the login/home page. 🖱️🏠
#PhoenixLiveView
🛠️ Day 3 #ElixirJourney:
Dived into DB schemas: migrations, validations, relations.
Small hiccup with 'belongs_to' & 'has_many', but ready for a fresh look tomorrow. 🌄
Watched 2 insightful talks on Elixir's security & productive learning. 🎤
#MyElixirStatus#CodingAdventure 🎉
Check out his channel for top-notch guidance and YouTube videos. Whether you're a coding newbie or a pro, Jacob's got your back! 🚀 Today's takeaway: Great teachers light up the path. Thanks to him, I'm more fired up than ever for this coding voyage! 🔥🧭
@ElixirMentor
🌟 Day 2 of #ElixirJourney:
Dove into the deep end with ecto, mix, phx.gen... 🌊 Feeling: A bit like a sailor lost at sea amidst the vast ocean of Elixir's intense documentation.
📚🌪️ Beacon of Hope: Discovered Jacob, the 'Elixir Mentor' on Youtube!
🌟 Shoutout: in 🧵
🚀 Day 1 of #ElixirJourney: Finally diving into Elixir! Always curious, now committed.
🤓The learning curve's steep but exciting.
⛰️ Today's Failure?: Spent an hour crafting a standard API call that returns JSON.
#CodingAdventures#MyElixirStatus#elixirlang
Happy to share "How to measure your #softwareengineering team" using #DORAmetrics
👉 https://t.co/HeyvbTUnvo
I talk about collecting, visualizing, and using data to drive your teams performance.
Hope you find it useful! #engineeringmanager#techlead
Top 5 JavaScript Testing Frameworks on GitHub
1. Cypress - 42.5k ⭐
2. Jest - 41.4k ⭐
3. Mocha - 21.9k ⭐
4. AVA - 20.2k ⭐
5. Jasmine - 15.5k ⭐
Which one do you work with?
@perw As far as I know, Jest basically runs with a test runner for "simulating" your functions being invoked and ran. While Cypress actually mounts your components in a web server and runs the function based on however you specify it.
The times in my mind would be flipped.
Cypress vs jest update v1.
After doing a quick and easy setup with cypress component testing and jest I was shocked at the results.
Note: this is only showcasing the setup! Pictures in 🧵
Follow here for the repo: https://t.co/5r4qouuvSv
@perw @Cypress_io@TestingLib
@perw @Cypress_io@tech@testing @Programming I wish I could give you some good insights to those questions but at this moment I feel way too fresh into my replacement of Jest. Drop a follow and I'll promise to follow up on this topic in the near future.
Running a setup with nextjs 13 and the webserver interface over TI 😍
Been replacing my jest tests with cypress component tests and I feel it can be a very good contender. Especially if you already use cypress for e2e testing.
Have you tried it out? What are your thought? Would love to hear, down below! ⬇️
@Cypress_io@Tech@Testing @Programming