cron is probably my least-favorite Unix program name, except maybe
grep. Such a useful command, but it is intimidating because of the name. “Just use a cronjob,” they say. Not descriptive or helpful.
Fortunately, the gist of it is very simple:
cron is useful for scheduling repetitive tasks. If your text file is in the right place in your system, Unix will just run it at every interval specified. Each line of the file represents a “job.” …
Your personal web site may not show up on the first page of Google’s search results. In fact, Google may not have it stored at all! Eventually, however, you may want your site to appear within a Google search. This is called Search Engine Optimization, or SEO. Although “search engine” sounds general, most people only care about Google search, so we will focus on that. Google does have over 90% share of searches, after all.
useEffect is for side effects.
Although the new hooks are considered “functional React,” they still follow Object-Oriented Programming methodologies. For example,
useState maps to the pre-existing
this.state of the older class components. State was a pretty easy concept to understand. Much like a class instance has its own variables (commonly accessed in JS with
this), a React component has its own state.
Following Object-Oriented programming paradigms, you will have functions that affect outside classes. This is similar, conceptually, to
When would we want to trigger some sort of side effect? Well, there are three general cases:
Any JSON API that holds a large list of data will give it to you through pagination. Returning ten million items at once will take a very long time. Instead there will be multiple pages, and you must iterate through each page to get it all.
If you need to render something, you can start by rendering based on the initial data.
This usually involves passing a query string for each successive page. Sometimes, you can also use a query string to modify the number of results on each page. …
Many guides exist for the basics of interviewing. I want to take it one step further. Much like the way I write programming guides that are one step above beginner, this will be an interview guide for being one step above beginner.
We will take some introductory concepts, and extend them to make them more applicable.
Many of this will come from my coding bootcamp and career coach, and some of it will be inspired by my own experiences.
You should already have some preparatory work done. You should be familiar with the STAR method to answer questions. You should also have planned out some questions that you may receive, and thought about the answers for them. …
LinkedIn has a nice feature of “unfurling” links. When you add a URL in a post or your “featured” profile section, LinkedIn will show a small preview of the site you are linking to. This includes a title, description, and image.
However, you might notice that when you host a personal project and share it on LinkedIn (or any social network, really), it may not show a description or title, and it almost certainly will not show an image. It also will not give you the option to input an image, even within the “featured” section.
Hooks are an amazingly useful feature of git. Once your repository gets to a medium size, you may want to make a few quick checks whenever you commit. For example, you could run a linter, check for TODOs, or even auto-send emails! A “hook” is just a simple script that runs during various important times, like before
Hooks are bash scripts that exist within a repository. If you go into
.git/hooks, you will probably already see a few examples. Each hook has a different filename depending on when it is run. For example,
pre-commit will run when calling
git commit, before the files are committed. …
I always enjoy reading about large and complex problems, but sometimes it is interesting to dive into a tiny incongruity.
I write my blogs in markdown, then post them to my personal site, then import them to Medium. I try to be as lazy as possible, so I have been working on ways to streamline the process; specifically the import to Medium. From this, I found an interesting rabbit hole: Medium’s API and import buttons will display the same HTML differently. …
As a follow-up for my previous post, I thought I would look at VSCode from a more intermediate level. Specifically, getting into a larger codebase. Once you get a job, or join an open-source project, you will be thrown head-first into a large codebase. Whether or not you get an introduction, it is good to know how to dive in.
Presumably you will start with a simple task. You will be given a file, and be told to change it. However, you may not know how to find everything that interconnects with the file!
cmd-shift-f: search all files. This can be useful for a number of…