GitHub avatar of jrowah

James Rowa

jrowah

View on GitHub
  • 8 Drops
  • 0 Comments
Screenshot preview of Passing match suffix to ecto's foreign_key_constraint/3

Passing match suffix to ecto's foreign_key_constraint/3

TIL that ecto's foreign_key_constraint/3 can match constraint names by suffix. You don't have to list every constraint by its full name. You write the...
jrowah

19 days ago

Comment count: 0
Screenshot preview of The amazing v/1 helper function

The amazing v/1 helper function

I may be late on this one but today I learned about the v/1, a helper function that retrieves the value from a previous expression by its line number ...
jrowah

1 year ago

Comment count: 0
Screenshot preview of Fine tuning routing for a better UX

Fine tuning routing for a better UX

Phoenix gives you a very cool and easier way to fine tune your routing and be able to effectively handle cases where, say a user has a typo in the url...
jrowah

1 year ago

Comment count: 0
Screenshot preview of Accessing localhost app on other devices in the same network for testing.

Accessing localhost app on other devices in the same network for testing.

Today I found a solution to a problem I had, but then the solution came with a whole new development experience I did not have in mind. Initially, I h...
jrowah

1 year ago

Comment count: 0
Screenshot preview of Simplify Pattern Matching with Map Updates

Simplify Pattern Matching with Map Updates

Imagine you have a nested map structure representing a user with preferences:...
jrowah

1 year ago

Comment count: 0
Screenshot preview of Pluralization using Gettext in Elixir.

Pluralization using Gettext in Elixir.

I was previously using this to pluralise,...
jrowah

1 year ago

Comment count: 0
Screenshot preview of Debugging assigns

Debugging assigns

How I quickly debug assigns inside heex templates...
jrowah

1 year ago

Comment count: 0
Screenshot preview of Adding binary id to phoenix apps

Adding binary id to phoenix apps

When generating a new phoenix application, you can pass the --binary-id flag to get uuids. However, it is possible to forget this and when you do you ...
jrowah

1 year ago

Comment count: 0