Work in progress: 181,232 of 181,233 sites checked so far, more every week · updated 2 Nov 2026Missing a blog? Tell us

Top all-time · #24026

M

Mike Loomis

Personal blog · mikeloomisgg.github.ioprogramming

Mike Loomis's personal blog at mikeloomisgg.github.io covers programming. Since 2021, 3 different Hacker News readers have linked it 3 times, most often “Setting up a Better REPL”. The last post was in 2019, but the archive is still widely read.

Visit the blog
3mentions?
3HN people?
2021–2021first – last linked?

Too few sampled comments (1) to say how often HN recommends it.?

Why HN links it

HN readers link this tutorial on writing a shell in C. The only comment argues that C++ with std::string is simpler for a REPL and avoids the C boilerplate, so it does not judge the writing itself.

Summarised by Claude from a sample of 1 HN comments that link here. Each comment is marked recommending, critical or neutral (citing without judging); how this works.

My search for best practices. I work with c++, cmake, python, cryptography, networking daily.

Most-linked posts?

  1. Setting up a Better REPL
    2 people · 2 mentions · first linked 2021-02-14

What Hacker News says?

  1. Moreover, don’t use C at all if you have the choice. A std::string in C++ makes mincemeat of the boilerplate that C requires for the same code. In C++, you can make a very simple REPL that is superior to the one in the OP in almost every way. #include <iostream> #include <string> int main() { std::string input; while (true) { std::cout << "> "; std::getline(std::cin, input); if(input == "exit") { return EXIT_SUCCESS…

    Comment linking /2019-04-10-set-up-repl/

    on “Write a Shell in C”
  2. Submitted Setting up a Better REPL as a story · 4 points

    HN discussion
  3. Submitted Why do I love C++? as a story · 2 points

    HN discussion

Search all of HN for mikeloomisgg.github.io