Sign in

Ryan Winchester

@winchester.dev
1.9K followers 236 following 437 posts

I write code and listen to chiptunes. Elixir nerd. My thoughts are your own.

PostsRepliesMedia
Ryan Winchester @winchester.dev · 18/09/2026
010
Ryan Winchester @winchester.dev · 22/05/2026
btw Ecto version 3.14 is out and has UUIDv7 support! #elixirlang
examples of Ecto.UUID with UUIDv7 suport
2339
Ryan Winchester @winchester.dev · 29/08/2025
If you use lazyvim, this is the only thing that worked for me gist.github.com/ryanwinchest...
170
Ryan Winchester @winchester.dev · 07/05/2025
it's just phoenix and postgres
83.9% Elixir, 15.1% HTML, 1.0% Other
190
Ryan Winchester @winchester.dev · 07/05/2025
you can just build things without a complicated tech stack or tooling
1151
Ryan Winchester @winchester.dev · 24/04/2025
And to avoid nesting `case` conditions, we can use `with`
Elixir `with` expression example
000
Ryan Winchester @winchester.dev · 24/04/2025
I don't know much about kotlin, so I looked up `when` and I'd use it for most things, too. I use `if` in the very specific case of a boolean expression I can't pattern match. A single if/else.
Elixir `case` expression exampleElixir `cond` expression example
200
Ryan Winchester @winchester.dev · 06/04/2025
Wish I was Elon’s kid so I’d never see him again
120
Ryan Winchester @winchester.dev · 06/04/2025
Grab him by the teslacles
120
Ryan Winchester @winchester.dev · 27/03/2025
How I thought war planning happens: A bunch of people around a table in a serious-looking setting.
How it actually happens: Some dude sitting on a toilet looking at his phone and typing in a group chat
0130
Ryan Winchester @winchester.dev · 12/03/2025
look at what they're doing to Elixir over on LinkedIn
an image showing an example of "DRY" code with inheritance on structs using Blueprint.Struct
7140
Ryan Winchester @winchester.dev · 21/02/2025
110
Ryan Winchester @winchester.dev · 21/02/2025
yeah, interesting
110
Ryan Winchester @winchester.dev · 20/02/2025
🤨
parseInt('1️⃣')
1

parseInt('2️⃣')
2

parseInt('3️⃣')
3
2273
Ryan Winchester @winchester.dev · 22/01/2025
I always remember this quote i.pinimg.com/736x/7f/ed/f...
030
Ryan Winchester @winchester.dev · 15/01/2025
/me looks up
030
Ryan Winchester @winchester.dev · 09/01/2025
why
JSON with date parts as floats
16344
Ryan Winchester @winchester.dev · 30/12/2024
Canadian lumberjack kicking Trump into a hole like in the movie "300" (2006), and shouting "THIS is CANADA!!"
0160
Ryan Winchester @winchester.dev · 29/12/2024
this you?
140
Ryan Winchester @winchester.dev · 28/12/2024
the office congratulations meme. left: my friend who thinks i'm a genius because i always know the solution to stupid problems. right: me who only knows because i spend my whole life stuck on stupid problems, most of them multiple times
0130
Ryan Winchester @winchester.dev · 23/12/2024
Just a small tractor and it could never be safely towed by a car. Loads of lumber, landscaping stuff, and dump runs that would also be way too much for a car.
130
Ryan Winchester @winchester.dev · 20/12/2024
Also, I've never really built furniture. However, built a few cabinets and a lot of outdoor structures and house framing for a living before programming. Someone who builds furniture might have some tricks up their sleeve for this. (structurally interesting photos of past projects attached)
030
Ryan Winchester @winchester.dev · 20/12/2024
i don't know how coffins are constructed but i'd play with this general idea, adding or removing more support depending on what it's like
110
Ryan Winchester @winchester.dev · 19/12/2024
i did it and i love it
0120
Ryan Winchester @winchester.dev · 18/12/2024
🤔
200
Ryan Winchester @winchester.dev · 17/12/2024
Young developers: While you are young, establish your dotfiles. Configure your editors and your operating system. Once you are married, with children, have a full-time job, a mortgage, side projects, etc. It's too late.
Modified bible verse:

[Put first things first.] Prepare your ~~work outside and get it ready for yourself in the field~~ dotfiles; and afterward build your house and establish a home.
5302
Ryan Winchester @winchester.dev · 13/12/2024
looks about right
word cloud image. "elixir" being the largest
2171
Ryan Winchester @winchester.dev · 10/12/2024
what happened, though
020
Ryan Winchester @winchester.dev · 07/12/2024
we're so back
"VSCODE" in neovim dashboard header
6631
Ryan Winchester @winchester.dev · 04/12/2024
skylight shaft
skylight shaft
020
Ryan Winchester @winchester.dev · 04/12/2024
when your school assignment said you can't "copy from the textbook. use your own words" so you look at the texbook and grab a thesaurus
Andrew Tate, standing like an angry toddler. Staring at the camera from the side, with guns behind him: "My unmatched perspicacity coupled with sheer indefatigability makes me a feared opponent in any realm of human endeavour."
2100
Ryan Winchester @winchester.dev · 01/12/2024
after helping my brother move, I spent the rest of the weekend shovelling insulation and opening my ceiling to prep for installing skylights why do i constantly do this to myself
attic hatch in wallvaulted ceiling attic, with piles of cellulose insulationvaulted ceiling cut open exposing truss and attic, viewing the underside of the roof deck
050
Ryan Winchester @winchester.dev · 01/12/2024
It makes the code more realistic and nicer to read. I also put the examples given in the description in doctests and test those as I'm working on the problem.
https://github.com/ryanwinchester/advent-of-code-elixir/blob/master/lib/advent_2024/day_01.ex
140
Ryan Winchester @winchester.dev · 01/12/2024
When I do AoC, I do all the string parsing in my test files. It's boring seeing everyone's string parsing. Just the logic, please.
https://github.com/ryanwinchester/advent-of-code-elixir/blob/master/test/advent_2024/day_01_test.exs
180
Ryan Winchester @winchester.dev · 01/12/2024
I wonder how many days I'll make it this time before it starts feeling like work? Day 1
https://github.com/ryanwinchester/advent-of-code-elixir/blob/master/lib/advent_2024/day_01.ex
3121
Ryan Winchester @winchester.dev · 29/11/2024
7 cdn.astrobin.com/thumbs/opvVT...
040
Ryan Winchester @winchester.dev · 25/11/2024
my wife is a teacher. i think sometimes it would be very hard not to laugh at some unintentional spelling mistakes
school assignment where someone not good at spelling yet wrote: "IN the Winter I like to drink hot cock"
4120
Ryan Winchester @winchester.dev · 24/11/2024
it's like `=` except it doesn't raise on a match error in a `with`, it aborts (so you'd short circuit and return the result) You can create a short-circuiting pipeline using `with`
010
Ryan Winchester @winchester.dev · 24/11/2024
choose one (I choose A)
420
Ryan Winchester @winchester.dev · 24/11/2024
coalesce function in #elixirlang
two `coalesce/1` functions. the first matches the first argument to nil and returns the second, and the second just returns the first argument
3283
Ryan Winchester @winchester.dev · 24/11/2024
New Brunswick, Canada
2371
Ryan Winchester @winchester.dev · 20/11/2024
i've decided it's time for a rebrand
4200
Ryan Winchester @winchester.dev · 18/11/2024
i don't think it counts my orgs
220
Ryan Winchester @winchester.dev · 09/11/2024
I made macros for the binary pattern matching to make the matching cleaner with the conventions of this encoding. For example If they say a field is uint64 then I can do foo::uint(64) instead of foo::little-unsigned-integer-size(64)
2100
Ryan Winchester @winchester.dev · 09/11/2024
Reason number 42069 to love #ElixirLang If someone gives you a layout diagram or table of a binary encoding.... you can just match on it
Elixir binary pattern-matching example
45914
Ryan Winchester @winchester.dev · 07/11/2024
2 months of ❌ on every commit as we were cranking out a pre-launch MVP for a conference deadline conference over and time to pay the piper... after 2 days finally get the ✅ in github
feels good
020
Ryan Winchester @winchester.dev · 04/11/2024
3497
Ryan Winchester @winchester.dev · 04/11/2024
@techsavvytravvy.com if you notice this getting the same amount of plays as always, it's because my kids don't like your music at all so they don't listen to it
160
Ryan Winchester @winchester.dev · 01/08/2023
In English, please. 🤣🤣🤣
000
Ryan Winchester @winchester.dev · 27/06/2023
Me and my new follower
000