Latest Updates

Documenting code, one commit at a time.

PHP PostgreSQL

PostgreSQL Case Sensitivity and Dashboard Calculations in Reimpact Platform

Introduction

When developing dashboards that rely on precise data comparisons in PostgreSQL, case sensitivity can be a silent but critical issue. This post examines a case in the Reimpact platform where case sensitivity in unit comparisons caused dashboard calculations to return incorrect results, and how it was resolved.

The Problem: Case-Sensitive Comparisons

PostgreSQL, by default,

Read more

PostgreSQL Type Casting for Data Consistency in Laravel

When developing applications using Laravel with a PostgreSQL database, maintaining strict data type consistency is crucial, especially when dealing with dashboard functionalities that aggregate data. PostgreSQL's strong type checking can lead to unexpected errors if data types don't match exactly between the database schema and the application's expectations.

The Problem: Type Mismatches

Read more

Database Compatibility: Adapting Queries for PostgreSQL

When developing applications across different database systems, ensuring compatibility in your queries is crucial. Minor differences in SQL syntax can lead to unexpected errors and application downtime. Let's explore a practical example of adapting queries for PostgreSQL.

The Challenge: Date Extraction

MySQL provides functions like YEAR() and MONTH() to extract year and month values from

Read more
PHP feat Email

Enhancing Mentor Session Management with Cancellation and Rescheduling Notifications

The landing project focuses on providing a platform for mentorship and career development. Recent efforts have been directed towards improving the experience for both mentors and mentees by introducing features that allow mentors to manage their session bookings more effectively.

The Feature

This update introduces the ability for mentors to cancel or reschedule booked sessions.

Read more

Enhancing Email List Management with Country Filters in Landing

Introduction

The landing project aims to streamline user acquisition and engagement. A key component of this is effective email list management. We recently enhanced the email list functionality by adding country-specific filters, enabling more targeted and efficient communication.

Key Improvements

Country Code Filtering

We've introduced the ability to filter users for email lists

Read more
PHP PostgreSQL

Improving Data Handling and Stability in Landing

The landing project focuses on creating engaging user experiences. Recent work has concentrated on refining data storage and ensuring application stability.

Addressing PostgreSQL DISTINCT Errors with JSONB

A recurring issue involved PostgreSQL's inability to efficiently use DISTINCT with JSON columns. This manifested as numerous daily errors, particularly within the Campaign editor's

Read more

Recovering PostgreSQL Report Functions in Laravel

Introduction

When performing database migrations, especially in multi-tenant environments, it's crucial to ensure all aspects of the schema are correctly applied to each tenant. This post explores a scenario in a Laravel application where PostgreSQL functions were unintentionally dropped during a tenant migration and how they were recovered.

The Problem: Silently Missing Functions

Read more