Latest Updates

Documenting code, one commit at a time.

PHP

Enhancing Context Anonymization for AI-Powered Content Generation

Introduction

Our team has been developing an AI-powered system to assist in content creation for technical blog posts. A key challenge has been ensuring that the AI doesn't inadvertently expose sensitive internal information during the content generation process.

The Challenge

Initially, the AI model occasionally included internal file paths, project names, and code snippets in its

Read more

Enhancing AI Auditability: From Raw Diffs to Structured Summaries

Improving the way we audit code changes is crucial for maintaining security and stability in our applications. Recently, we transitioned from feeding raw Git diffs directly to our AI analysis tools to using structured summaries. This shift significantly enhances auditability and reduces the risk of exposing sensitive information.

The Problem with Raw Diffs

Sending raw diffs to AI models

Read more
JavaScript

Enhancements to Manual Post Generation: Introducing Random Mode

Introduction

We've recently enhanced our manual post generator with a new "random mode." This feature streamlines content creation by automating the selection of post examples and additional prompts. This post will discuss the benefits of this new mode and the refactoring involved in its implementation.

Random Mode Functionality

The core addition is the ability to toggle a "random mode"

Read more
PHP JavaScript

Faster Feedback Loops: Running Tests on Git Changes

Long test suite run times can significantly slow down development. Running the entire suite for every change, especially in larger projects, becomes inefficient. A focused approach that executes only the tests relevant to the modified code provides quicker feedback and accelerates the development cycle.

The Challenge: Identifying Relevant Tests

The primary challenge lies in accurately

Read more
PHP

Ensuring Consistent State Propagation in Post Generation

Introduction

During post generation, it's crucial that all relevant state information is correctly passed and maintained throughout the process. Inconsistencies in state propagation can lead to unexpected behavior and data integrity issues. This post examines a recent fix addressing a state propagation problem related to safe mode during post generation.

The Problem

The safe_mode

Read more
PHP

Selective Auditing for Enhanced Security in Our Application

We've recently introduced a significant enhancement to our application's security auditing capabilities. This update allows users to perform targeted security audits on specific posts, providing a more efficient and focused approach to identifying potential vulnerabilities.

The Need for Selective Auditing

Previously, security audits were conducted on all tenant posts, which, while

Read more
Python JavaScript

Handling Audit False Positives with Domain Validation

Introduction

Auditing tools are crucial for maintaining application security and compliance. However, false positives can create unnecessary noise and divert attention from genuine threats. One common source of these false positives is the detection of reserved domain names, such as those under the IANA's example.com, example.net, and example.

Read more
CSS HTML JavaScript

Adapting UI Components for Themeable Applications

This post delves into a practical approach for creating flexible UI components that seamlessly adapt to various themes within an application. We'll explore how to avoid hardcoded styles and instead leverage style variables to ensure consistent visual appearance across different themes.

The Problem: Hardcoded Styles

In many applications, UI components are initially developed with a specific

Read more

Streamlining User Onboarding: Integrating LinkedIn Login for Enhanced Recommendation Flows

Introduction

We've recently enhanced the user experience within our application by integrating LinkedIn login and registration, specifically aimed at simplifying the recommendation flow. This post details the changes and the reasoning behind them.

Key Improvements

Simplified Registration and Login

Previously, recommenders needed a GitHub account, which added friction to the process.

Read more