hq1
Elixir Function of the Day - a start page for alchemists!
I had this silly idea the other night and face rolled a quick & dirty prototype today: https://elixirfunctionoftheday.com/
The idea is to preload all the most significant apps out there (standard library, ecto, phoenix etc.) and render a documentation page for one random function. Those rotate on 24h basis. Given they’re random, there is a chance to stumble upon something interesting.
I have some improvements stuck in the pipeline, stay tuned.
Please share it if you like it
Cheers.
Most Liked
axelson
Neat idea! Are you able to add a link to the documentation/hex package as well?
hq1
Thanks! Most certainly, coming soon! Apart from just linking directly to hexdocs I want to make sure all the linkable symbols in the documentation section itself are also properly recognized. This is doable with ExDoc.Formatter.HTML.Autolink but I haven’t fully figured out that interface yet.
hq1
FWIW I made some improvements live since the original posting:
- the function always links to hexdocs.pm
- there’s a “share on twitter” button now, I hope it works. I wanted to avoid vendor’s JS spyware so I came up with a custom button; can’t really tell whether that’s good enough - someone with twitter, please use it for science

- added a “roll the dice” link that lets you explore random functions on demand
- everything should feel significantly snappier, went from 0.1s to 0.007s max in my microbenchmark for random access
Many people suggested tightly coupled twitter/RSS integration. I’m not a fan but I’ll look into it soon-ish.
Coming up next:
The closest priorities are not really user-facing. I need to figure out how to deploy the site with proper erlang release/container (possibly docker), so that:
- loaded apps (and thus, functions in the pool) are somewhat constant and determined by the release configuration (embedded release, currently
ectoandpostgrexdo not seem to be included due to some misconfiguration - to be investigated) - I can develop a deployment pipeline that enables me to push it to a random ubuntu host I already own, rather than throwing
at heroku
If there’s anyone out there willing to help - kindly consider this a call for action ![]()
The repo is at GitHub - aerosol/fotd: Elixir Function of the Day · GitHub
Thanks!
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









