Open in app

Sign In

Write

Sign In

Machine Gurning
Machine Gurning

2 Followers

Home

About

Oct 23, 2022

Node.js and Express from the ground up, followed by going outside

This post will explain, at a level of reasonable detail, in language accessible to beginners, the workings of Node and Express, and how you may use these two technologies to host a server. Peruse the section titles to see if this article is right for you: What is a server? …

Express

8 min read

Express

8 min read


Sep 24, 2022

useReducer by example

The useReducer hook, as explained by the React documentation, is simply an alternative to the useState hook that enables more complex state management in React. This article will attempt to convey its functionality by means of vaguely useful examples. Initial set-up I will be using typescript. Feel free to follow-along by running…

Hooks

5 min read

useReducer by example
useReducer by example
Hooks

5 min read


Sep 24, 2022

Automatically focus on input using Refs in Typescript/React

My brain is quite small, and absorbs information about as well as a rock absorbs water. As a result, it requires lengthy, comprehensive, example-filled explanations of concepts before new ideas stick. This is one such explanation. Problem I have a react component that appears after a button click. I wish to…

Typescript With React

2 min read

Typescript With React

2 min read


Sep 24, 2022

What <Angle Brackets> really mean in Typescript

I couldn’t find a gimp-friendly explanation of the use of angle brackets in Typescript, so I’m writing one myself. As a certified gimp, I endorse the comprehensibility of this explanation. My explanation is verbose, a brief explanation is provided in this stack overflow answer What are angle brackets? Angle brackets are the symbols <…

Typescript

3 min read

Typescript

3 min read


May 1, 2022

PostgreSQL in a docker container

You presumably want to make a database for your little project. I presumably want to tell how. Read on. Creating and running the container The command: docker run -p 5432:5432 -d \ -e POSTGRES_PASSWORD=postgres \ -e POSTGRES_USER=postgres \ -e POSTGRES_DB=database-example \ -v pgdata:/var/lib/postgresql/data \ postgres The explanation: -p 5432:5432 — port 5432 (left) is the…

Docker

2 min read

Docker

2 min read


Mar 4, 2021

Virtual Environments in Python: What, Why, How?

This is a no-fuss, succinct, condescending, comprehensive explanation of virtual environments (sometimes referred to as a “venv”). My operating system is Linux (Ubuntu), and my IDE is VSCode. I hope yours is too. After reading this article, you should be able to coherently explain the composition, purpose, and method of…

Python

4 min read

Virtual Environments in Python: What, Why, How?
Virtual Environments in Python: What, Why, How?
Python

4 min read

Machine Gurning

Machine Gurning

2 Followers

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Text to speech