Top all-time · #24026
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.
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?
- Setting up a Better REPL2 people · 2 mentions · first linked 2021-02-14
What Hacker News says?
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”Submitted Setting up a Better REPL as a story · 4 points
HN discussionSubmitted Why do I love C++? as a story · 2 points
HN discussion