• Expressions and operator precedence in Python

    Posted on  • tagged with #python

    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 #python

    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.

  • Build a minimal HTTP server with Node

    Posted on  • tagged with #node#javascript

    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.

  • Fetch a remote branch to review changes

    Posted on  • tagged with #git

    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 #node#javascript

    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 #javascript

    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.

  • Generate a Fibonacci sequence

    Posted on  • tagged with #javascript

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

  • What is an Array in JavaScript?

    Posted on  • tagged with #javascript

    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 #git

    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 #javascript#eleventy

    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.

  • Understanding CSS Combinators

    Posted on  • tagged with #css#html

    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 #eleventy#nunjucks#html

    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 #html#javascript

    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.

Filter Posts by Tag