Have you ever wanted to temporarily suppress console output in Python? But you really want it to be temporary, even if an exception happens. Maybe you are calling into some idiot’s library who spams your console. Yeah, that’s happened to me before (maybe I was the idiot–I’m not tellin’). Here’s a handy way to suppress […]
What’s the difference between writing a compiler and writing an interpreter? Easy: Writing an interpreter is like reading an instruction manual and performing the steps. Writing a compiler is like reading an English instruction manual, translating it into German, and handing it to a German person to execute the steps.