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. ![]()
So, Elixir Forum members: What took you way too long to figure out?
Most Liked
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?
).
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 ![]()
billylanchantin
require takes an :as option:
require Explorer.DataFrame, as: DF
I’d been doing alias ..., as: ... + require for forever.
Popular in Discussions
Other popular topics
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #channels
- #elixirconf
- #exunit
- #discussion
- #code-sync
- #javascript
- #podcasts
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixir-ls
- #phoenix_html
- #iex
- #blog-post
- #graphql
- #genstage
- #ai
- #websockets
- #supervisor
- #advent-of-code
- #elixirconf-us
- #distillery
- #processes
- #forms
- #api
- #metaprogramming
- #security
- #performance










