elixirboy Profile Banner
Max ▷ Elixir Profile
Max ▷ Elixir

@elixirboy

Followers
602
Following
2K
Statuses
958

Have *you* fallen for @elixirlang yet? TIL's and reflections on Elixir. By @mxgrn

Kyiv/Himalayas
Joined April 2023
Don't wanna be here? Send us removal request.
@elixirboy
Max ▷ Elixir
2 days
@ChadWilken @kyrylosilin Also, instant search *across several libs* is a time saver for me.
0
0
1
@elixirboy
Max ▷ Elixir
4 days
@DNAutics @docp wouldn't it feel a bit hackish though?
0
0
0
@elixirboy
Max ▷ Elixir
11 days
@crbelaus @lostkobrakai That's an interesting take ✍️
0
0
0
@elixirboy
Max ▷ Elixir
11 days
Apparently, there's already put_private for that:
@elixirboy
Max ▷ Elixir
4 months
LiveView pros, have you considered using Process.put/2 and Process.get/1 instead of socket assigns in those cases when that data wouldn't change during the lifetime of a LiveView? Example: I pass something in a session to a LV that I want to be accessible from its components.
0
0
1
@elixirboy
Max ▷ Elixir
11 days
@src_rip @TylerAYoung @snajper47 @ATimberlake Well, 'may' is the word I have an issue with here. Adding something like that signals that it's being used _somewhere_, while it's still there only for testing. A head-scratcher. Then, think of all the naming inconsistencies it'll introduce, as opposed to a clear convention.
1
0
2
@elixirboy
Max ▷ Elixir
12 days
@src_rip @TylerAYoung @ATimberlake We use it for that 1% only, of course!
0
0
2
@elixirboy
Max ▷ Elixir
15 days
@thmsmlr Second default in my case is a Telegram miniapp.
0
0
1
@elixirboy
Max ▷ Elixir
17 days
TIL: You can define `fetch/2` in your struct-defining module and have it return anything you want for the `[]` operator: #ElixirLang
Tweet media one
3
6
42
@elixirboy
Max ▷ Elixir
21 days
@barkerja_ I'm exploring avante.nvim with Claude, and so far it's been great.
0
0
0
@elixirboy
Max ▷ Elixir
21 days
@barkerja_ Let's talk Telegram miniapps. I want to be able to open a miniapp to authorize with Google API (to be able to write to spreadsheets), and then somehow use that authorization to send requests to the API from my Telegram bot (in fact, from a server). Is it even doable?
0
0
0
@elixirboy
Max ▷ Elixir
21 days
@barkerja_ I need a TipTap editor extension that would allow pasting a URL over selected text such that it would turn the selected text into a link. Know what I'm talking about?
0
0
0
@elixirboy
Max ▷ Elixir
21 days
@barkerja_ Let's do the next step. The user enters a word (or expression) in Telegram. We need to call OpenAI API to identify, what language that expression is most probably in, then 1) reply to the user the detected language, 2) store the expression in the spreadsheets, as before.
0
0
0
@elixirboy
Max ▷ Elixir
21 days
@barkerja_ The User schema contains everything that's needed to have access to user's Google Spreadshits. Update my BotController such, that if the user sends 'test', a new line with text 'test' is added to a spreedsheet named 'test'.
0
0
0
@elixirboy
Max ▷ Elixir
21 days
@barkerja_ Yes, velocity is insane. I should have said "most of your *new* code", though. For now.
1
0
0
@elixirboy
Max ▷ Elixir
26 days
@atomkirk One example: what relevance does the absence of free will have when it comes to teaching children to live peaceful and happy lives, as opposed to harming others?
1
0
0