Latest Updates

Documenting code, one commit at a time.

C++ C 5 posts
×

Enhancing GitHub OAuth Flow: Preserving User Permissions

Introduction

This article discusses a common issue in applications using GitHub OAuth for authentication: inadvertently overwriting a user's existing token with one that has fewer permissions. We'll explore how to ensure the application preserves the user's original, broader-scoped token when requesting narrower scopes during subsequent logins.

The Problem

Many applications use GitHub

Read more
C Security Debugging

Eliminating False Positives in Audit Logs for Generic File Paths

When auditing file system operations within an application, a common challenge arises when dealing with generic or placeholder file paths. These paths, often used during testing or initial setup, can trigger false positive alerts in audit logs, obscuring genuine security concerns. A recent update addresses this issue, enhancing the accuracy and reliability of our auditing process.

Read more

Fixing Placeholders in Our Application

Sometimes, during development, placeholder values can inadvertently slip into the final application. This post discusses how we addressed such an issue in our vlog index page, specifically focusing on unresolved :app_name placeholders.

The Problem: Unresolved Placeholders

Unresolved placeholders are problematic because they present a poor user experience and can sometimes expose internal

Read more

The Hidden Cost of Unused Placeholder Fixes

We've all been there: a quick fix for an apparent issue, like an unresolved placeholder in a user-facing section. But what happens when the fix itself introduces more complexity than it resolves?

Recently, we addressed an issue where the :app_name placeholder wasn't being correctly rendered on the /earn hero section of our application.

Read more

The Pitfalls of Premature Optimization

Developers often strive for efficiency, but sometimes, optimizing too early can lead to more problems than solutions.

The Danger of Early Optimization

Optimizing code before understanding its performance bottlenecks can waste time and introduce unnecessary complexity. It's tempting to micro-optimize, but it's crucial to identify the actual performance-critical sections first.

Read more