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