arcanemachine

arcanemachine

What took you way too long to figure out?

I was working on an Ecto migration and I needed a timestamp. So, for the nth time, I looked up the different data types for timestamps, and I saw the usec variant (e.g. :utc_datetime_usec), then I searched the docs for the nth time to see if that is the more precise variant.

And then it hit me: The ‘u’ in usec stands for ‘micro’, as in ‘microseconds’. Which is exactly what the ‘usec’ data type is for. I thought it was some random database jargon. I just never made the connection. :exploding_head:

So, Elixir Forum members: What took you way too long to figure out?

Most Liked

arcanemachine

arcanemachine

On HexDocs, the width of the side panel is adjustable. This can be used to read those really long module names that don’t fit in the sidebar at its normal width.

The draggable handle is pretty small, so I added a screenshot with a poorly-drawn red arrow to highlight it. Works on Chrome and Firefox (and maybe Safari? :man_shrugging:).

25
Post #6
fmn

fmn

quote and unquote. finally clicked thanks to Saša’s incredible Understanding Elixir Macros series. i swear his narration and answers were exactly 30 seconds ahead of me, asking questions :slight_smile:

14
Post #5
billylanchantin

billylanchantin

require takes an :as option:

require Explorer.DataFrame, as: DF

I’d been doing alias ..., as: ... + require for forever.

13
Post #3
dimitarvp

dimitarvp

That hard work almost never pays off, not when you are working for other people that is.

…wait, we are talking about Elixir, right?

It took me an embarrassing amount of time to [mostly] understand what does LiveView do but then again I always hated anything UI-related so that likely contributed a lot. Brain resists learning stuff it doesn’t like and all that.

bennydreamtech23

bennydreamtech23

Multiple select, I used two different libraries and tried using CSS and JavaScript before it finally work. Even give up before I saw the live_select library and was able to achieve what I wanted to do with it
https://hexdocs.pm/live_select/LiveSelect.html
Still contemplating on doing a video on my YouTube channel to explain it

Where Next?

Popular in Chit Chat Top

maennchen
Following up on the discussion on Elixir Slack. It would be really cool if hex.pm would provide a feature like the “Report A Vulnerabili...
New
Qqwy
Hello there, everyone, I just listened to the ‘break it down like a fraction’ episode of Elixir Outlaws on my way back home. It is mostl...
New
arcanemachine
I was working on an Ecto migration and I needed a timestamp. So, for the nth time, I looked up the different data types for timestamps, a...
New
FlyingNoodle
Hi all I have been doing some pretty intensive research over the last few days around agents/vibe coding. I tried some commercial offeri...
New

Other popular topics Top

srinivasu
How to handle excepions in elixir? Suppose i have A, B, C ,D, E modules. and each module has get() function. A.get() method will call th...
New
bsollish-terakeet
Credo is smart enough to check for (something like) this: assert length(the_list) == 0 with this response: Checking if an enum is empt...
New
quazar
How to set Jason to encode all fields in ecto schema, I don’t care about security and implementing only is taking long list of attributes...
New
SoCreat
i’m a new one to elixir which editor can i use vs code? or atom? Thanks! :smiley:
New
freewebwithme
Using vs code and installed ElixirLS: support and debugger. And I got an error popped up on start up says Failed to run ‘elixir’ comma...
New
alice
Hey, Just curious what are the main benefits of Elixir compared to Clojure? When is Elixir more useful than Clojure and vice versa? Th...
New
electic
Hi, I am new to Elixir. I am trying to use the DateTime component to insert a date into MySQL however the there seems to be no way to fo...
New
Fl4m3Ph03n1x
About me? ( if you have nothing better to do than reading about some random guy in the internet :stuck_out_tongue: ) Hello all, this is ...
New
TunkShif
This post is an instruction guide to help you setup your Neovim for Elixir development from scratch. It includes general information on h...
273 38985 115
New
jay1
Why is it that the mnesia database isn’t the most preferred database for use in Elixir/Phoenix?
New

We're in Beta

About us Mission Statement