An overview of all articles sorted by tag.
Want this as well for your Polar-profile? Check out this article!Tags: #Polar
Tags: #Clojure
As I was recently preparing a chrome extension for release, I found that the templating library, of all code, was causing problems. Turned out that nunjucks, the templating library in question, uses eval
under the hood for performance reasons (as do most other templating libraries). To limit the risk of malicious code being executed near very powerful browser API's, modern extensions can simply no longer rely on eval
and eval
-like constructs.
Great policy...Γ‘nd cumbersome!
In my Clojure projects, the util-namespace is typically a drawer where helper-functions and macros end up that are A) very project-specific or that B) I like to think of as generically applicable.
That italicised part is important as not a lot of these helpers actually transfer to other projects.
But those that do (the "frequent flyers"), are the ones that I miss the instant I start a new project with a blank util-slate.
This article describes two such helpers that I keep copying from project to project: when-seq
and whenp
.
Let's dive in!
The previous article, "A better regex experience", discussed some ways to make regular expressions more readable, namely commenting and using named capturing groups.
I've been using Polar.sh now for over a month and I really like it so far.
As I expect to be publishing many more articles on a wide variety of topics, I'd thought it would be handy to tag them and allow readers to find articles on related topics. And so the idea of tagging articles with custom html-comments was born.
This article explains how to tag articles yourself and get a nice tag overview page like this one.
It's just 3 straightforward steps. Let's go π.
Tags: #Polar, #GitHub Actions, #eval/actions