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

lastday4you
I wanted to check elixir version in phoenix because i found that my elixir is 1.5 but when i use Enum.chunk_by it said the function is un...
New
fireproofsocks
I’m working on defining a simple Ecto schema for a table (in PostGres), but I don’t see where I can define a column as NOT NULL. Conside...
New
vrod
I am using the Starship cross-shell prompt – it seems pretty nice, but I get some errors: [WARN] - (starship::utils): Executing command ...
New
SoCreat
i’m a new one to elixir which editor can i use vs code? or atom? Thanks! :smiley:
New
vonH
In asking this question I am more interested about the expressiveness of the language itself and less concerned about the availability of...
New
KronicDeth
Elixir plugin for JetBrain’s IntelliJ Platform (including Rubymine) This is a plugin that adds support for Elixir to JetBrains IntelliJ...
289 35421 110
New
danschultzer
None of the current solutions worked well for me, so I went ahead and built a user management system from scratch. This project took far...
548 27727 240
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
vonH
When I run the Plug and I recompile I wind up having to use Ctrl C to quit iex and start again. Witht the help of rlwrap I can use the cu...
New
lucidguppy
I have a super simple question about elixir - how would I take a file like this foo bar baz and output a new file that enumerates th...
New

We're in Beta

About us Mission Statement