DGDanny Guoindguo.hashnode.dev·May 8, 2021 · 8 min readWhat I Learned by Relearning HTMLI’ve worked on websites for several years, both professionally and for side projects. One day, I reflected on the fact that all of my web development education had come from actually making websites. In most cases, I’d have a specific problem, Google...00
DGDanny Guoindguo.hashnode.dev·Apr 18, 2021 · 2 min readHow to Fix instanceof Not Working For Custom Errors in TypeScriptIn JavaScript, you can create custom errors by extending the built-in Error object (ever since ES 2015). class DatabaseError extends Error {} You can do the same thing in TypeScript, but there is an important caveat if your tsconfig.json has a compi...00
DGDanny Guoindguo.hashnode.dev·Dec 29, 2020 · 4 min readHow to Concatenate Strings in LuaThe most straightforward way to concatenate (or combine) strings in Lua is to use the dedicated string concatenation operator, which is two periods (..). message = "Hello, " .. "world!" -- message equals "Hello, World!" Numbers are coerced to string...00
DGDanny Guoindguo.hashnode.dev·Jun 25, 2018 · 5 min readMigrating from Jekyll to HugoI recently migrated my personal website (the source code is on GitHub) from Jekyll to Hugo. It was mostly painless, and now I'm eager to write more often and put more content on my website. I originally chose to use Jekyll because it's supported by G...00