My long articles, which you perhaps even might want to print.
In this categoryPosts in this category, from newest to oldest:
Published Jul 3, 2017. Last revised Jul 4, 2017
Coming from Haskell and Python I found releasing a Scala library a cumbersome process. The standard Maven Central archive—JCenter claims to be a more popular alternative, but all big projects appear to prefer the former—lacks a convenient web interface like that of Python’s package index or Haskell’s Hackage, and comprehensive documentation about publishing. Getting an artifact to Maven Central for the first time involves a surprising number of manual steps and a rather elaborate SBT configuration.
In this article I hope to connect all the loose ends and offer a comprehensive step-by-step guide from nothing to a Maven Central release. I will start with some prerequisites which lie outside the scope of this article, guide you through the necessary bureaucracy and cover the setup. At the end I’ll introduce sbt-release, a powerful plugin to automate the entire release.
Published Nov 15, 2016. Last revised Nov 16, 2016
A lot of Emacs Lisp code uses interactive commands like
write-fileto read or write files. This article gives reasons not to follow this pattern, and shows safer alternatives with the f.el library and with built-in functions.
Published Nov 29, 2015.
When reporting issues to Emacs packages you will often find maintainers replying with “Please reproduce this issue in
emacs -Q”. This article explains what this means, why maintainer may ask for this and how to use
emacs -Qto reproduce an issue.
Published Aug 12, 2014. Last revised Oct 3, 2016
Emacs offers some flags to use Emacs Lisp for standalone scripts, however Emacs’ decade-long history as an interactive program makes writing standalone scripts an intricate and subtle experience. This article starts with a discussion of the safe and correct Emacs Lisp shebang—which turns out to be much longer than you might expect. We then take a look at command line arguments and standard input and output of Emacs Lisp scripts, and finally conclude with some debugging tips and the recommendation to better use another language for your scripts.
Published Jul 2, 2014. Last revised Aug 5, 2016
Emacs offers an autoloading mechanism to load libraries on demand when calling functions. This article explains how to declare autoloads, how they work, and how Emacs Lisp packages use autoloads to improve startup time.
Published Jun 16, 2014.
This article concludes my series about Font Locking in Emacs by illustrating how to hook into Emacs’ syntactic analyses to implement context-sensitive fontification. If you are new to this series, you may want to read the earlier articles on Syntactic Fontification in Emacs and Search-based fontification with keywords.
Published Apr 15, 2014. Last revised Apr 16, 2014
Use Haskell’s FFI interface to run Python code for fun and profit.