Collecting Events to Google Analytics using ClojureScript

When you’re building a side project, chances are you need to collect user events so that you can understand user behaviors better and eventually improve your product.

So recently I made a small ClojureScript library for that, it supports web apps or chrome extensions. Check it out at https://github.com/kenhuang-io/google-analytics, it also contains a demo project using shadow-cljs as the build tool.

Hope it helps, and give it a star ⭐ on GitHub and share it if it does, thanks!

[Read More]

Rewrite of a Flask Web App in Clojure

Before we start, maybe you're interested in the Sudoku game I'm developing using Clojure & ClojureScript, it's free. Check it out:

👉 Play Sudoku for Free!

Intro

A few years ago, I made a simple web app in Flask to deal with some text processing problems from my daily work. It has two main features:

  • Feature #1: generating compile_commands.json for GNU Makefile projects written in C/C++ using the output of the make command. Because, unlike CMake, the make command can't generate it.
  • Feature #2: extract text using Python regex. It's handy when I feel like sed/awk/grep's line-oriented processing isn't enough for the task at hand.

Recently, I was thinking about adding some functionalities to it. But since I've put more effort into Clojure these days, I'd like to use Clojure to do it. So, I spent a few nights rewriting the web app in Clojure.

[Read More]