True, but if I’d only hide it, I’d push the parsed Markdown to the hidden view on every change to the textarea, I believe. So, I just opted for the simplest way
Just for the editor. When you go from preview back to edit mode, the editor’s content won’t have changed.
Thanks for the recommendation of efx! I hadn’t seen that library announced elsewhere and it looks like a very interesting addition to testing/mocking options. I like how it makes it explicit which functions require side-effects (since they need to be declared with defeffect
).
I created a blog and naturally wrote it in Elixir. Blogs need RSS feeds, and while there are libraries to create feeds for you, I thought it would be more fun to write it myself. Naturally, I documented it on my blog.
I suggest to keep description
as a plain text summary and to put html content in content:encoded
tag. See this for example:
I put full article in content:encoded
for my blog even. Most feed readers can deal with MBs long feeds and my readers can see the full content without doing anything.
Your post about Phoenix project layout is great!
I wrote a bit of a rambling post about implementing a breakout clone in Elixir. For what it’s worth, there’s a post about the implementation itself as well.
How to efficiently manage multiple clients within a single application? Or how to keep different users’ data isolated while still leveraging shared resources?
Enter multi-tenancy!
How does AI “speak” and “understand”?
Check our latest blog to learn all about language modeling—the technology behind how AI interprets and generates human language.
Over the weekend I finished an article on how to create Elixir powered WordPress plugin using LiveState:
Have you ever wondered about the word use
in use GenServer
?
I wrote an article explaining how the use
macro works and how to build modular and reusable systems: Understanding use and __using__ in Elixir | Doofinder Tech
I wrote an article on how to cache A/B tested pages with plug_http_cache
: A/B testing and HTTP caching with plug_http_cache
And another one about caching Liveviews (part 1): Caching Liveviews - Part 1: The road to HTTP-caching Liveviews - Tangui's blog
I really like the post @njwest. The approach is great and really well explained!
Congrats!
This is a bit of a late, but this is such a good post - easy to follow along, and does a good job explaining WHY something is needed. I enjoyed writing out the code.
I wrote a bit on the layers powering phoenix real time communication capabilities:
I wrote up a few things I’ve learned from using mnesia in an app Mnesia Tips for Elixir Developers | Silbernagel.Dev
Wrote this up yesterday about your options for running code on Nerves. Hope it is helpful to someone or helps make people less nervous (hehe) about available options: