Category: Geek Cred

Coding conventions

As far as I’m concerned, there’s only one way to write C-like code. First of all, you must select sane whitespace defaults in your editor. Here’s the one true way to configure Emacs. (setq default-tab-width 8) (defun one-true-style () (c-set-style “bsd”) (setq tab-width 8) (setq c-basic-offset 4) (setq indent-tabs-mode t)) (add-hook ‘c-mode-hook ‘one-true-style) (add-hook ‘objc-mode-hook […]

DBM text export formats

DBM-style flat files are great, but sometimes it’s hard to deal with binary formats. Being able to have data in a textual format can be very handy for transferring between different platforms, modifying in your favorite editor, crunching with standard tools like grep, etc. There are a couple of text-friendly DBM export out there, each […]