@dkuku.bsky.social
#myelixirstatus
Use string interpolation in ecto fragments:

`date_part('year', #{user.birth_date}) BETWEEN #{start_year} AND #{end_year}`

dev.to/dkuku/simpli...
Simplifying Ecto Fragments with Defrag: A Better Way to Write Database Queries
Simplifying Ecto Fragments with Defrag: A Better Way to Write Database Queries Working...
dev.to
March 7, 2025 at 10:51 PM
@thinkingelixir.com you missed the dbg changes in 1.18, it motivated me to write a short post about it.
dev.to/dkuku/enhanc...
Enhancements to dbg in elixir 1.18
Elixir 1.18 added some interesting, features but one that went under the radar was extended support...
dev.to
December 22, 2024 at 8:35 AM
Reposted
Couldn't sleep, so I merged a PR and made a new release for curl_req. Now supporting --data-raw, --data-ascii, and stripping $ from messages (frequently seen copying curl reqs from browser).

PR: github.com/derekkraan/c... (h/t @dkuku.bsky.social)

Pkg: hex.pm/packages/cur...

#elixirlang
dk-handle_data_raw by dkuku · Pull Request #16 · derekkraan/curl_req
Hey @derekkraan I often copy curl requests from the browser. In my case the data is always under the key data-raw which does the same as --data but does not support @ which is reading from file or ...
github.com
November 28, 2024 at 9:07 AM