Node.JS
import.meta.main, neat!
if (import.meta.main) main();
Quick tips are notes or ideas I want to keep track of. The posts are generally short.
Node.JS
if (import.meta.main) main();
quick-tip
Yes, it's possible to use the new Microsoft Edge browser to emulate older IE! For me, this is useful for development and troubleshooting. I'm writing these based on my experience in using the feature in Windows 11 for "Microsoft Edge Version 96.0.1054.41
React
A solution for WebStorm & ESLint error that states Failed to load config "plugin:@typescript-eslint" to extend from.
DevOps
I've been using AWS to host my personal websites (although this website hasn't been relocated there). I automate everything. Anything not automated is just a POC in my perspective. I have some static websites - that is websites that do not do any server side processing
quick-tip
For an upcoming article, I'm investigating the source code to Ghost - the platform this blog (and many others) run on. I found this code in main/core/server/web/shared/index.js among other places in the code-base. module.exports = { get middlewares() { return require('./middlewares'
quick-tip
Somewhat thoughtfully pressing keys on a keyboard to get the computer to do approximately what you want.
quick-tip
I'm working on an article regarding Ghost, I came across the following which didn't work: # First clone Ghost with submodules and make it your working dir git clone --recurse-submodules git@github.com:TryGhost/Ghost && cd Ghost This assumes that you have a git public
quick-tip
Consider this line of code: //Source: https://reactjs.org/docs/hooks-state.html const [count, setCount] = useState(0); How the heck does this work? I threw together a quick test which is shown below. Turns out, the parameter - 0 - is the initial state. The second parameter coming out of
Tools of Open Source
One aspect of open source that I think could use more attention by OS consumers is licensing. I came upon this and wanted to put it here for future reference. https://opensource.guide/legal/
Tools of Open Source
Git is a powerful tool. Git can be more effective if you will use its best practices, and with a few advanced git tips and tricks, you can save your valuable time. The productivity boost technique is known as the AFTER technique.
quick-tip
I often need to add where clauses to SQL statements. Most folks probably do. It allows me to view recent log entries or recently created records. Rather than hard coding dates, I've been using "Date Math" to make these queries usable over a period of time.
quick-tip
These are the questions that you must answer during a daily scrum stand-up: 1. What did you do yesterday? 2. What will you do today? 3. Are there any impediments in your way? Just posting this as a quick reference for myself and others.