hq1

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 :slight_smile: Cheers.

Most Liked

axelson

axelson

Scenic Core Team

Neat idea! Are you able to add a link to the documentation/hex package as well?

hq1

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

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 :slight_smile:
  • 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 ecto and postgrex do 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 :money_with_wings: at heroku

If there’s anyone out there willing to help - kindly consider this a call for action :stuck_out_tongue_winking_eye:

The repo is at GitHub - aerosol/fotd: Elixir Function of the Day · GitHub

Thanks!

Where Next?

Popular in Discussions Top

Fl4m3Ph03n1x
Background A few days ago I was listening to The future of Elixir from Elixir Talks, with Dave Thomas (@pragdave ) and Brian Mitchell. I...
New
ricklove
I was just introduced to Elixir and Phoenix. I was told about the 2 million websocket test that was done 2 years ago. From my research, t...
New
AstonJ
I’ve just started the Phoenix part of the utterly brilliant online course by @pragdave. On generating the Phoenix app he uses the --no-ec...
New
AstonJ
Please see the new poll here: Which code editor or IDE do you use? (Poll) (2022 Edition) It’s been a while since we first asked this, I...
208 31142 143
New
jer
I’ve been using umbrellas for a while, and generally started off (on greenfield projects at least) by isolating subapps based on clearly ...
New
Qqwy
I would like to spark a discussion about the static access operator: .. For whom does not know: it is used in Elixir to access fields of...
New
wmnnd
The Go vs Elixir thread got me thinking: Would it be too hard to implement a simple mechanism for creating Go-style static app binaries f...
New
opsb
We’re considering our architecture from a viewpoint of scaling our traffic heavily over the next 6 months. Our current deployment is runn...
New
sergio
Kind of like when jquery came out, it was super necessary. Existing drag and drop libraries have a bunch of baggage to support old browse...
New
paulanthonywilson
I like Umbrella projects and pretty much always use them for personal Elixir stuff, especially Nerves things. But I don’t think this is ...
New

Other popular topics Top

sen
Hi All, I set a environment variables in dev.exs , like below code. when i start server, how can i set the ${enable} value? thanks. d...
New
sorentwo
Hello! tl;dr Announcing Oban, an Ecto based job processing library with a focus on reliability and historical observability. After spen...
985 42920 311
New
mcarvalho
What is the difference between System.get_env and Application.get_env? For example, what are best practices to use one versus another.
New
JeremM34
Hello, how can I check the Phoenix version ? Thanks !
New
jerry
Good day to you all. I have been struggling to get a query involving like and ilike to work. Can anyone assist me on this, please? pro...
New
chrismccord
This release brings a number of exciting features, including integration with the new Phoenix LiveDashboard and Phoenix LiveView. There h...
New
stefanchrobot
What’s the safe way to decode a JSON string into a struct? I want to avoid calling String.to_atom. Jason.decode can give me a map with st...
New
Qqwy
Original source of discussion: This topic on the Pragmatic Programmers’ Functional Web Development with Elixir, OTP, and Phoenix forum. ...
New
saif
Hello everyone, Long time lurker first time poster here. I’ve recently begun working on Elixir full-time again! :raised_hands: It’s been...
New
hariharasudhan94
Lets say I have map like this fetching from my database %{"_id" => #BSON.ObjectId<58eb1a7a9ad169198c3dXXXX>, "email" => ...
New

Latest on Elixir Forum

We're in Beta

About us Mission Statement