Dynamic SVG Images Using Next.js
All images generated using Microsoft DesignerSVG has emerged as a dominant image format, offering unparalleled flexibility and scalability for today’s web development landscape. From its humble beginnings to widespread adoption, SVG has undergone significant evolution and now plays a pivotal role in shaping the modern web.What Are SVG Files Used For?SVG, or
Read moreLet’s parse Xcode logs?
Let’s Parse Xcode Logs?This is how it all looksIn this article, we will try to understand how and where Xcode stores its logs, what SLF0 is, how to read it, maybe even understand it, and see how it’s better and more interesting without an IDE.No extra preamble.To see the build logs of a
Read moreClean Code Review: Removing All the Extra Types
Photo by Brecht Denil on UnsplashI recently came across an interesting post on the r/swift subreddit that featured an example of a “Clean Code” project, which doesn’t happen all too often. I was intrigued and decided to check it out on GitHub, then proceeded to download it, set it up, and
Read moreDate sequence from the command line
I was looking back at Jeroen Janssen’s book Data Science at the Command Line and his dseq utility caught my eye. This utility prints out a sequence of dates relative to the current date. I’ve needed this and didn’t know it. Suppose you have a CSV file and you need
Read moreBuilding Typescript Types for the useReducer Hook
A deep dive into using mapped types to automate creating action types for a discriminated union type for use with useReducer in React.Continue reading on Better Programming »
Read moreAn Overview of CSS Sizing Units
Explore the four broad categories of CSS sizing units, how to apply them in your layouts, and how to choose the best ones in each scenario. Continue reading An Overview of CSS Sizing Units on SitePoint.
Read moreRust and LLM AI Infrastructure: Embracing the Power of Performance
Image by authorBuilding an LLM or AI infrastructure in Rust can offer several benefits despite Python’s dominance in the AI space.Performance: Rust is known for its high performance and low-level control, which can be crucial for building large-scale AI systems. Language models, especially deep learning models, can be computationally intensive. Rust’s performance
Read moreAdvanced Async Testing: Unstructured Concurrency
Write robust and maintainable software using modern language featuresImage generated using MidjourneyIn the first two chapters, we built our testing foundation: We developed techniques to separate concerns through dependency injection and then created mock versions of our injected services.Subsequently, in Part III, we wrote our first asynchronous tests that checked whether
Read moreA Better Frontend Component Structure: Component Trees
Easily avoid frontend component directories with high cognitive loadA clear and concise way to look at your frontend components in a frontend project (source: Midjourney)Since following advice on the internet long ago, I adopted a certain component structure that “just works.”ScenarioLet’s first imagine a simplified frontend app directory structure, taking some
Read moreI Built a Trashtalk Wordle With ChatGPT Using LLM Decorator and Function Calling
Photo by Nils Huenerfuerst on UnsplashWith the new release of ChatGPT callback functions, I wanted to test it out with a new simple app.After a brainstorming session that was shorter than it should have been, I came up with the idea of the trashtalk Wordle. Just imagine how fun (and annoying) it
Read more