Count lines of code by language with cloc, tokei, and Git-aware exclusions so generated files, dependencies, and vendor code do not distort your repository metrics.
How to Count Lines of Code by Language in a Git Repository
Posted on in Programming
AI-enabled developer productivity, build systems, and engineering leadership
Posted on in Programming
Count lines of code by language with cloc, tokei, and Git-aware exclusions so generated files, dependencies, and vendor code do not distort your repository metrics.
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 …
Posted on in Programming
Over the course of this series, we’ve explored how to build client/server applications with Thrift and Protobuf/gRPC in three different programming languages: Java, Rust, and Python. We started with Thrift, implementing a Java server and Python client, then added Rust into the mix. Next, we recreated a …
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 …
Posted on in Programming
In our previous articles, we explored Thrift and demonstrated how to build cross-language systems with Java, Python, and even integrated Rust. Now, let’s turn our attention to Protobuf and its companion RPC framework, gRPC.
Protobuf (Protocol Buffers) focuses primarily on defining your data structures and ensuring efficient, compact serialization …
Posted on in Programming
In the previous article, we built a simple Thrift-based client/server application where the server ran on Java and the client ran on Python. Now, let’s take things a step further by introducing a third language: Rust. Rust’s emphasis on performance and safety makes it an intriguing choice …
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 …
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 …
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 …
Posted on in Programming
Open source projects thrive on collaboration, transparency, and reliability. As contributors from around the world work together, ensuring consistent and reproducible builds becomes crucial. Hermeticity plays a vital role in achieving this consistency. In this article, we'll explore best practices for implementing hermeticity in open source projects, helping maintainers and …
Posted on in Programming
Achieving hermeticity in software development brings numerous benefits, such as reproducibility, reliability, and security. However, implementing hermetic builds in large codebases can be a daunting task. In this article, we'll explore the common challenges developers face when striving for hermeticity in complex or legacy systems and provide practical solutions to …
Posted on in Programming
In the world of software development, consistency and reliability are paramount. One way to achieve these qualities is by implementing hermetic builds in your Continuous Integration/Continuous Deployment (CI/CD) pipeline. Hermetic builds ensure that your software builds are isolated, reproducible, and environment-independent. In this article, we'll guide you through …
Posted on in Programming
GitHub Copilot and Amazon Q Developer overlap where most developers first meet an AI assistant: editor chat, inline suggestions, code generation, and help understanding a codebase. The meaningful decision is not which demo writes a nicer function. It is which tool fits the places your team already works, the controls …
Posted on in Programming
In the ever-evolving landscape of Python web frameworks, two names have been gaining significant attention: Quart and FastAPI. Both are modern, asynchronous frameworks designed to handle the demands of today's web applications. If you're a software engineer like me, always looking to optimize performance and developer productivity, you might be …
Posted on in Programming
Building a chatbot from scratch using Python and the OpenAI API has been an exciting journey. Throughout this series, we've explored the fundamentals of chatbot development, delved into advanced features, and even deployed our creation as a web application. In this concluding article, we'll summarize what we've learned, discuss potential …