The result is Flappy Phoenix - you can play it now on Heroku.
Although real-time games aren’t really the goal of the project, it is so performant you can get pretty good results, so why not.
The source code is available on GitHub. It has some issues 😊.
I was recently starting a Phoenix server with port 0 which tells the OS to find a free local port but wanted to know what port it had chosen.
It turns out you can query the ranch config by the module name of your Phoenix Endpoint to get this information:
I’m probably very late to the party but I discovered today that if you’re tweeting a link, twitter will display it differently if you put it at the end rather than the beginning or middle of the tweet.
Here’s an example where I posted it at the beginning
And here’s one at the end