Showing only posts by Jonathan Hale. Show all posts.

Vimscript: Run Command in Terminal

2 minute read.

A more recent vim feature is :term, the ability to have a terminal inside vim. This super useful feature now allows you to switch between your code and asynchroneously run compile commands very easily.

Since I use Visual C++ on Windows, I need to run vcvarsall.bat in my console …

Standard and User-Defined Conversions

3 minute read.

I just came across a surprising bug in my code which I did not expect to cause any problem at all. The simplified code goes like this:

void foo(const std::string& str) { printf("string!"); }

          void foo(const bool b) { printf("bool!"); }

          // ...

          foo("0");

What do you expect? Dumb question …

Don't Look Up

2 minute read.

In “Looking Up” I wrote about how your behaviour changes towards people you look up to that are more successful than you are. The same blog post also describes what I do to reduce this effect in myself and make me feel more “on the same level”.

I realize there …

« newer articles | page 6 | older articles »