Posted on  • tagged with

I discovered some nested links weren't working on my site. After sifting through each page, I finally noticed that there was a CSS rule applying transform-style: preserve-3d to the entire home page instead of only the element that needed it, which caused unexpected rendering of nested links.

• ## Solving the Diagonal Difference and Sum Problem

Posted on  • tagged with

This article will discuss how to calculate the diagonal difference and sum for a n x n square matrix.

• ## Searching in a Binary Search Tree

Posted on  • tagged with

Finding a value in a BST can be done iteratively or recursively in logarithmic time on average because of the properties of a BST.

• ## Generate a Fibonacci sequence

Posted on  • tagged with

The Fibonacci sequence is a series of numbers where each number in the sequence is the sum of the two preceding numbers, with the sequence beginning with 0 and 1.

• ## Calculating the size of an array in C++ using the sizeof operator

Posted on  • tagged with

For a fixed-size array (non-dynamic), calculating the size can seem complicated but it's really quite simple when we think about how the sizeof operator works.

• ## Using index files when working with Sass and @use rules

Posted on  • tagged with

With @import at-rules slowly being phased out of the main implementation of Sass (dart-sass) and eventually deprecated, its time to learn how to use @use rules and the neat features that come along with it.

• ## Build a minimal HTTP server with Node

Posted on  • tagged with

To create a Node.js application, you need a web server, a request, a router, and request handlers. Frameworks like Express.js speed up development by providing a robust set of features to build web applications and APIs.

• ## Should I define a type as 'any' in TypeScript?

Posted on  • tagged with

The 'any' type isn't something I use very often in my own development. But I have seen it occasionally used out in the wild.

• ## Generate Page Content From a Global Data File Using Eleventy

Posted on  • tagged with

There are many great features to choose from when building websites with Eleventy. One feature in particular that I find very useful is the ability to iterate over a global data file and generate page content using a templating language of your choice.

• ## Expressions and operator precedence in Python

Posted on  • tagged with

The order of operations in an expression is very important to understand. With more complex expressions, operator precedence isn't always straightforward and if not used correctly leads to unexpected values.

• ## Rounding floating point numbers with Python

Posted on  • tagged with

Rounding numbers in Python is quite common. There might be a situation where values must only be rounded to 3 decimals or some arbitrary number. Using the built-in function round() is handy but changes the original value.

• ## Fetch a remote branch to review changes

Posted on  • tagged with

When reviewing a PR, its usually helpful to pull into that feature branch and test the changes locally in your own copy of the project.

• ## Using Modules in Node.js

Posted on  • tagged with

Files can become quite large in a Node.js project. Modules provide developers a "modular" approach by putting related code into separate files and then exporting them to be used elsewhere.

• ## Remove duplicates in Arrays

Posted on  • tagged with

Removing duplicate values from an array is quite a common task in programming. Sometimes, specific scenarios require a collection of data to only store unique values. That is, no repeated values.

• ## Creating a blog template with Angular and Node.js

Posted on  • tagged with

I wanted to use Angular and Node.js for creating a blog template similar to how I would do things in Eleventy. Create one base template that each of the blog posts content can be displayed on.

• ## What is an Array in JavaScript?

Posted on  • tagged with

In JavaScript, arrays are predefined objects, where the indexes are the arrays properties. They can hold a collection of values with differing data types. The array is a go-to data structure for common list related tasks.

• ## Using Git for Contributing to Open Source

Posted on  • tagged with

To begin contributing to open-source software, you might want to become familiar with Git. Understanding the workflow of creating your own local copy of a repository and keeping it up to date with the upstream repository is integral to start contributing in public projects.

• ## Add Search to a Static Site Using Custom Data Attributes

Posted on  • tagged with

Creating search functionality for a static site isn't always easy. Luckily, using custom data attributes and a bit of JavaScript. You can filter blog posts by comparing the search input to post titles and visually hide posts that don't match the search query.

• ## Create Objects From an Array of Key and Value like Strings

Posted on  • tagged with

Have you ever had an array of values that you needed to convert to an object? I've run into this scenario quite a few times and wanted to write about it.

• ## Understanding CSS Combinators

Posted on  • tagged with

Sometimes you need to select elements from the page for styling but don't want to write the class or ID selector many times in your stylesheet. This is where CSS combinators come into play.

• ## Create a Custom Collection with Eleventy

Posted on  • tagged with

If you've built sites using Eleventy, you're probably familiar with collections. Using the Configuration API allows for creating custom collections which can be useful to only show certain posts on your site.

• ## An Introduction to Client-side JavaScript

Posted on  • tagged with

Have you ever thought to yourself while building a website, how could I create HTML elements and bind them to the DOM? This article explains some of the fundamentals for interacting with the DOM tree using client-side JavaScript.

• ## Getting Started with OverTheWire Bandit Security Games

Posted on  • tagged with

How familiar are you with using SSH? If you hesitated to answer, don't fear as after reading this article you will understand how to perform a secure remote connection using SSH and work in the server environment.