Deep Dive Into ast-grep’s Pattern
The missing guide for tree-sitterPhoto by niko photos on UnsplashIf you are interested in code refactoring tools, you may have heard of ast-grep, a Tree-sitter-based tool for structural search and replacement. ast-grep allows you to write code patterns for finding and modifying code based on its structure, not just text. But
Read moreDemystifying SwiftUI List Responsiveness: Best Practices for Large Datasets
Photo by Alexander Sinn on UnsplashHaving excellent interaction effects and touch is a principle that many iOS developers have adhered to for a long time. The response performance of the same code may vary greatly under different data levels. This article will demonstrate the approach to finding and solving problems in
Read moreBuilding a safer community: Announcing our new Code of Conduct
Throughout Stack Overflow’s 15-year journey, we have always prioritized the well-being and safety of the community. This is actually one of the things that most attracted me to this community: for years when I worked in other places, I watched to see how Stack Overflow and Stack Exchange worked to
Read moreChatGPT Changed How I Write Software
Generative AI has completely changed the way I approach software design. I don’t think I could ever go back.Continue reading on Better Programming »
Read moreComputing Stirling numbers with limited integers
A couple days ago I wrote a post about a probability problem that involved calculating Stirling numbers. There are two kinds of Stirling numbers, creatively called “Stirling numbers of the first kind” and “Stirling numbers of the second kind.” The second kind come up more often in application, and so
Read moreSwiftUI Testing: a Pragmatic Approach
During the last few months, I’ve been reading “Unit Testing Principles, Practices, and Patterns” by Vladimir Khorikov. It’s definitely one of the best books I’ve read about testing. One of the things I’ve liked the most is that the author offers a “framework of reference” to analyze how good a
Read moreQuick Tip: Shipping Resilient CSS Components
In this quick tip, discover how container queries enable us to ship resilient components containing built-in layout and style variants. Continue reading Quick Tip: Shipping Resilient CSS Components on SitePoint.
Read moreA Story About a Software Architect
I had a chance to be an interim Software Architect recently, and here’s a story about what I’ve learned in the process.Continue reading on Better Programming »
Read moreTorchquad: Python Library for Numerical Integration With GPU Acceleration
A comprehensive, easy-to-follow exploration of Torchquad’s revolutionary GPU-accelerated numerical integration. Integrate 10x faster than any other library in PythonPhoto by Emile Perron on UnsplashIn the realm of modern science and engineering, integration plays a pivotal role. It is the foundation of many calculations, from solving complex differential equations to computing areas under
Read moreOptimizing Heat Transfer in a 2D Grid Simulation’s Runtime Using CUDA: A Parallel Programming Study
Solutions you can apply to similar parallelization problemsPhoto by David von Diemar on UnsplashIn this article, I will discuss a simple, hands-on approach to optimizing the runtime of an interactive algorithm — the Jacobi method. More specifically, we’ll look at ways to apply it to solve the Laplace Equation for Heat Transfer.For that,
Read more