Systems | Development | Analytics | API | Testing

How to use Solid Cache in Rails

The concept of caching is an important one in computer science and is directly relevant to building web apps. At a high level, caching takes advantage of the fact that memory lookups are faster and less compute-intensive than database queries. If you have a database query that might get made repeatedly, caching the result in a cache speeds up that flow of execution. Rails applications are no exception as they often use memory-based caches like Redis to cache data and improve application performance.

Using modules in JavaScript

Modules are one of the most commonly used JavaScript features because most JavaScript frameworks and libraries leverage the module feature for organization and componentization. Modules in JavaScript are probably underused—some developers even think that the import and export keywords are ReactJS features. In this article, we'll explain how to encapsulate code using the module system to make your projects cleaner. To start, let's take a look at what encapsulation is in the next section.

Understanding the insertion sort algorithm in Ruby

As we explore different methodologies for sorting data, we turn to the insertion sort algorithm. There are a number of reasons to like insertion sort! First, insertion sort is stable, which means that it does not change the relative order of elements with equal keys. It's also an in-place algorithm, meaning that it does not create a new array to store the sorted elements. Finally, insertion sort is a pretty simple algorithm to implement, as you'll soon see!

Handling spatial data in Django using PostGIS

As a Django developer, you might be tasked with a project that requires working with and manipulating spatial data. Spatial data refers to information that includes geographical or location-based attributes, representing the physical location and shape of objects on the Earth's surface or in three-dimensional space. Django provides a way to do that using PostGIS. PostGIS is an extension of PostgreSQL that adds support for spatial data.

Comparing Go vs Ruby

Ruby and Rails are great tools that allow you to create complex web applications quickly. Well, some kinds of complex web applications. While they excel at traditional, monolithic, server-rendered applications, they fail to excel at delivering real-time or distributed services. This is why it's so handy for Rubyists to learn a programming language like Go. Go is designed to write lightweight services that handle lots of inbound connections.

Options for passwordless Django authentication

Passwordless Django authentication is gaining popularity as a secure and user-friendly alternative to traditional password-based authentication in Django applications. This article will explore various web authentication systems for implementing passwordless authentication in Django, highlighting their advantages, limitations, and considerations for choosing the right option.

The developer guide to Laravel authentication

Laravel comes packed with many ways to authenticate users. When installing a new application and wanting to add authentication to it, your choices are not limited. The options available for user authentication within Laravel include: As we can see, there are many installable packages that aim to make the whole process of Laravel authentication simple and easy for any software developer to get started.

Rails async queries by example

While there were plenty of exciting changes that shipped with Rails 7, asynchronous querying has by far been one of the most talked about features. This is because asynchronous queries can drastically improve the performance of your application by executing long-running queries or complex queries in the background. To better understand why and how this works, let's start by digging into the core of what a Rails async query is.

Out-of-the-box Elixir telemetry with Phoenix

Knowledge is power, and this is especially true for software. Telemetry puts software engineers in the driver's seat by exposing the underlying performance of a system. Identifying possible problems before they occur and proactively fixing them is better than waiting for users to point them out for you. Telemetry refers to the instrumentation of a system. When you use your web application and take action, you emit events.

The ultimate guide to Python logging

When an application runs, it performs a tremendous number of tasks, with many happening behind the scenes. Even a simple to-do application has more than you'd expect. The app will at a bare minimum have tons of tasks like user logins, creating to-dos, updating to-dos, deleting to-dos, and duplicating to-dos. These tasks the application performs can result in success or potentially result in some errors.