The Lone C++ Coder's Blog

The Lone C++ Coder's Blog

The continued diary of an experienced C++ programmer. Thoughts on C++ and other languages I play with, Emacs, functional, non functional and sometimes non-functioning programming.

Timo Geusch

4-Minute Read

<p>This is a post I wrote several years ago and it’s been languishing in my drafts folder ever since. I’m not working on this particular codebase any more. That said, the problems caused by using Java-like getter and setter functions as the sole interface to the object in the context described in the post have a bigger impact these days as they will also affect move construction and move assignment. While I’m not opposed to using getter and setter functions in C++ in general, I…

Timo Geusch

1-Minute Read

<p>Turns out I made some unnecessary “work” for myself when I tried to <a href="https://www.lonecpluspluscoder.com/2017/05/07/extending-inf-mongo-to-support-scrolling-through-command-history/">add support for command history to inf-mongo</a>. As Mickey over at Mastering Emacs points out in a blog post, comint mode already comes with <em>M-n</em> and <em>M-p</em> mapped to <em>comint-next-input</em> and <em>comint-previous-input</em>. And of course they work in <a…

Timo Geusch

2-Minute Read

<p>I’m spending a lot of time in the MongoDB shell at the moment, so of course I went to see if someone had built an Emacs mode to support the MongoDB shell. Google very quickly pointed me at <a href="https://github.com/endofunky/inf-mongo">endofunky’s inf-mongo mode</a>, which implements a basic shell interaction mode with MongoDB using comint. We have a winner, well, almost. The mode does exactly what it says on the tin, but I wanted a little more, namely being able to scroll…

Timo Geusch

3-Minute Read

<p>A problem archivists have been bringing up for a while now is that with the majority of content going digital and the pace of change in storage mechanisms and formats, it’s becoming harder to preserve content even when it is not what would be considered old by the standards of other historic documents created by humanity.</p>

Recent Posts

Categories

About

A developer's journey. Still trying to figure out this software thing after several decades.