Programming

Programming

1461 bookmarks
Custom sorting
Add Tags with Ecto has_many, through in Phoenix - Tagging part 1
Add Tags with Ecto has_many, through in Phoenix - Tagging part 1
I want to add tags to products. And as usual there are a situation where a product can have many tags and a tag can belong to many products. However, in my opnion, the best option is to use a 'has_many :through' relationship. So for this, I need a table called tags and a join table called taggings. In this tutorial, I will go through how would do this.
·fullstackphoenix.com·
Add Tags with Ecto has_many, through in Phoenix - Tagging part 1
Setup a has_many / belongs_to in Phoenix
Setup a has_many / belongs_to in Phoenix
Something I do in EVERY project is to setup some sort of relation between resources. And even though Phoenix comes with generators for migrations and CRUD opeartions, you still need to modify the code to suite for the relations you want. In this short tutorial, I will go through my usual steps regarding setting up a basic has_many / belongs_to - relation.
·fullstackphoenix.com·
Setup a has_many / belongs_to in Phoenix
Postgrex Ecto Types
Postgrex Ecto Types
One thing I found confusing about Postgrex , the excellent PostgreSQL adapter for Elixir , was how to use PostgresSQL-specific data types (...
·blog.swwomm.com·
Postgrex Ecto Types
Phoenix LiveView LiveComponents
Phoenix LiveView LiveComponents
Components are a mechanism to compartmentalize state, markup, and events in LiveView. We can move a part of the LiveView's logic (and related template) into separate components. We start by moving the product card, the part inside the for comprehension, into a LiveComponent.
·poeticoding.com·
Phoenix LiveView LiveComponents
Step-by-Step Tutorial to Build a Phoenix App that Supports User Upload
Step-by-Step Tutorial to Build a Phoenix App that Supports User Upload
A step-by-step tutorial we see in depth how to build a Phoenix app from scratch, letting users upload their files using a multipart form. We learn how to easily run PostgreSQL with Docker, to receive uploads using Plug, and how to use Ecto to store upload details into the database.
·poeticoding.com·
Step-by-Step Tutorial to Build a Phoenix App that Supports User Upload
CUE
CUE
Validate and define text-based and dynamic configuration
·cuelang.org·
CUE
The Future of the GitLab Web IDE
The Future of the GitLab Web IDE
There are big changes in store for the Web IDE in the coming milestones.
·about.gitlab.com·
The Future of the GitLab Web IDE
A Byte of Coding Newsletter
A Byte of Coding Newsletter
A curated daily programming newsletter featuring technical deep-dives.
·abyteofcoding.com·
A Byte of Coding Newsletter
Brendan Carpio / elixir-pgp-wordlist · GitLab
Brendan Carpio / elixir-pgp-wordlist · GitLab
Convert hex strings to PGP word lists and vice-versa in elixir https://en.wikipedia.org/wiki/PGP_word_list Re-implementation of
·gitlab.com·
Brendan Carpio / elixir-pgp-wordlist · GitLab
Building an Elixir Encryption Engine with Erlang's Crypto Module
Building an Elixir Encryption Engine with Erlang's Crypto Module
Demystify encryption by taking a medium dive and building your very own encryption engine in Elixir. In this post, we'll build a light-weight Elixir library that leverages Erlang's :crypto to encrypt/decrypt sensitive data, and learn a little more about encryption along the way. Overview Our library will be able
·thegreatcodeadventure.com·
Building an Elixir Encryption Engine with Erlang's Crypto Module
Beginner's guide to writing testable code
Beginner's guide to writing testable code
Believe it or not, I spent 3 years of my career without knowing what testability really means, in fact, I never really heard that term until lately. I have been working on small-scale applications, writing tests for every feature I had implemented, b...
·keencoder.dev·
Beginner's guide to writing testable code
Exploring RStudio’s Visual Markdown Editor | R-bloggers
Exploring RStudio’s Visual Markdown Editor | R-bloggers
RStudio 1.4 was released in January 2021 and switched to calendar-based versioning as of 2021.09. Starting with 1.4, the IDE includes a visual markdown editor that works on any markdown-based document, such as .md or .Rmd files. Visual editing mode pro...
·r-bloggers.com·
Exploring RStudio’s Visual Markdown Editor | R-bloggers
ETS
ETS
Website for Elixir
·elixir-lang.org·
ETS
Bugs that the Rust compiler catches for you
Bugs that the Rust compiler catches for you
Over the decades, Humans have proved to be pretty bad at producing bug-free software. Trying to apply our approximative, fuzzy thoughts to perfectly logical computers seems doomed. While the practice of code reviews is increasing, especially with the culture of Open Source becoming dominant, the situation is still far from
·kerkour.com·
Bugs that the Rust compiler catches for you
Populating Ecto Database with Test Data Using Faker
Populating Ecto Database with Test Data Using Faker
When building a web application there is almost always some form of a database being utilized to persist the application's data.
·blog.codedge.io·
Populating Ecto Database with Test Data Using Faker
Create ghost loading cards in Phoenix LiveView
Create ghost loading cards in Phoenix LiveView
Unless you already didn't know, when a LieView component is mounted on a page, it runs the mount/2 function twice. One when the page is rendered from the initial request, and one one when the socket is connected. So if you have data that is slow or resource heavy to load, you should consider to wait until the socket is connected so the intial load is not in vein. A popular approach is to use ghost cards. A ghost gard is a loading placeholder that looks similar to the content that you try to load in but without actual data. In this tutorial I will show you how
·fullstackphoenix.com·
Create ghost loading cards in Phoenix LiveView
Elixir Examples
Elixir Examples
A collection of small Elixir programming language examples.
·elixir-examples.github.io·
Elixir Examples
So Many Ways to Update a Map with Elixir!
So Many Ways to Update a Map with Elixir!
Last week I got a pleasant refresher on updating maps. As I type this it sounds like such a basic thi...
·dev.to·
So Many Ways to Update a Map with Elixir!
Joy of Elixir
Joy of Elixir
Joy of Elixir is a gentle introduction to programming, aimed at people who already know some things about computers, but who have little-to-no programming experience.
·joyofelixir.com·
Joy of Elixir
Anonymous Functions in Elixir on Exercism
Anonymous Functions in Elixir on Exercism
Master Anonymous Functions in Elixir by solving 3 exercises, with support from our world-class team.
·exercism.org·
Anonymous Functions in Elixir on Exercism
Extract Lists from Text File in Elixir
Extract Lists from Text File in Elixir
I have a bit of an odd question, but I have read all sorts of Elixir documentation and textbooks in sort of an answer to this and have come up with nothing. I have a set of .txt files which each c...
·stackoverflow.com·
Extract Lists from Text File in Elixir