Articles in the Programming category

  1. Packaging Your AI-Powered Git Hook as a Python CLI Tool

    Posted on in Programming

    Building a local Git hook with Python is great, but if you want others on your team (or across multiple repos) to use it, you’ll want to package it as a reusable command-line tool. In this article, we’ll turn our AI-powered Git hook into a proper Python CLI …

  2. Beyond Bash: Writing Intelligent Git Hooks with Python and LLMs

    Posted on in Programming

    Git hooks are one of the most powerful — and most underutilized — features in the Git ecosystem. They allow you to automate actions at key points in your Git workflow: before committing, before pushing, after merging, and more. Traditionally, these hooks are implemented using shell scripts, but that’s limiting in …

  3. Building Your Own Git Assistant with OpenAI and Python

    Posted on in Programming

    GitHub Copilot is impressive, but what if you could build your own AI-powered Git assistant tailored to your workflow? In this article, we’ll walk step-by-step through building a command-line Git assistant using Python and OpenAI’s API. It will explain diffs, write commit messages, generate .gitignore files, and even …

  4. Git Rebase vs. Merge: Choose a History Shape Deliberately

    Posted on in Programming

    Rebase and merge are not rival moral systems. They create different commit graphs, and the useful choice depends on who already depends on the history. Choose the shape that makes collaboration, debugging, and recovery boring—not the one that wins an argument in a pull request.

    The graph is the …

  5. The Evolution of Source Code Management: From SVN to AI-Powered Git

    Posted on in Programming

    Source Code Management (SCM) has evolved dramatically over the past few decades. What started as simple file versioning systems has transformed into sophisticated platforms integrating AI-driven automation, security, and collaboration features. From the days of CVS and SVN to the dominance of Git and the rise of AI-powered development, this …

  6. Counting Bazel Targets by Top-Level Directory

    Posted on in Programming

    When working with large Bazel code repositories, it’s not always clear how targets are distributed across directories. Understanding how many targets each top-level directory contains can help gauge complexity, identify hotspots, or guide refactoring efforts.

    While Bazel itself doesn’t have a direct command to provide a “count of …

  7. Protobuf in Rust: Integrating Another Language into the gRPC Ecosystem

    Posted on in Programming

    We’ve now built similar RPC setups using Thrift and Protobuf/gRPC in Java and Python. Following the pattern established with Thrift, let’s integrate Rust into our Protobuf/gRPC ecosystem. Rust’s performance and safety features make it a popular choice for high-performance back-ends, and this exercise will show …

  8. Getting Started with Thrift: Building a Java Server and Python Client

    Posted on in Programming

    In our first article, we introduced Thrift and Protobuf and laid out our plan to build cross-language client/server applications. Now, it’s time to dive into a hands-on example with Thrift. In this article, we’ll define a simple service using Thrift’s IDL, implement a server in Java …

  9. Introduction to Thrift and Protobuf: Laying the Foundation for Cross-Language RPC

    Posted on in Programming

    Modern distributed systems often span multiple programming languages, architectures, and runtimes. As services grow in complexity and scale, developers turn to powerful serialization frameworks and RPC (Remote Procedure Call) mechanisms that streamline inter-service communication. Two such technologies, Thrift and Protobuf, have emerged as popular solutions.

    This article sets the stage …

  10. Comparing Thrift and Protobuf: Choosing the Right Data Serialization Framework

    Posted on in Programming

    As modern distributed systems become increasingly complex, developers rely on efficient, language-agnostic communication mechanisms to ensure seamless interactions between services. Two popular solutions for defining data structures and enabling efficient communication are Thrift and Protobuf. Both originated at tech giants—Thrift at Facebook and Protobuf at Google—and both aim …

Slaptijack's Koding Kraken