Why testing isn’t just about writing unit tests
When testing is done properly it will reduce defects, and improve the design and quality of the overall codebase.If you mention testing to anyone with a basic understanding of software engineering, they’re likely to think about unit testing. This was certainly true of a podcast I was listening to the
Read moreMental Friction: Code’s Silent Killer
Do you recognize mental friction when you see it? Try reading this sentence out loud, saying the color of the word instead of what’s…Continue reading on Better Programming »
Read moreConfirmed: Code Coverage Is a Useless Management Metric
Discover the simple proof that dismantles the code coverage metricContinue reading on Better Programming »
Read moreHow To Use Ephemeral Teams Responsibly
Ephemeral teams are powerful tools. Here’s how to use them for goodPhoto by Mike Erskine on UnsplashEphemeral teams form for a short time around a particular problem or project. They disband once the problem is solved or the project is complete. While the concept has many benefits, there are also some dangers.
Read moreHow useRef Helped Solve My React Native Bug
A quick way to ensure your functional components have consistent statesContinue reading on Better Programming »
Read moreHow to Create Node.js Server With Postgres and Knex on Express
This article will provide a comprehensive guide on setting up a Node.js server and integrating it with a PostgreSQL database using the Knex SQL query builder, all within the Express.js frameworkNode JS, Express JS, Knex JS, Postgres | Image by authorIn today’s data-driven world, setting up a reliable, efficient, and scalable
Read moreOvercoming Next.js Vercel Timeout With Firebase Functions
Article image generated by Adobe FireflyIn my current Next.js web app, I have two API endpoints:/api/generateExerciseData, which calls OpenAI API with gpt-3.5-turbo to generate exercise descriptions, categories, subcategories, intensities, and tips./api/generateWorkout, which calls OpenAI API with gpt-4 to generate workouts based on user prompts.While these endpoints work seamlessly in my local environment, they
Read moreDefensive Programming and the Use of TypeScript
TypeScript is helpful at scale, but after using it for several years, it becomes evident that it’s not sufficient on its ownIllustration by authorUnlike languages such as Java, which have type safety that extends into the runtime, TypeScript is relieved of its type safety duties at compile time. This means your code
Read moreA Pure Swift Library To Find Favicons Used by Any Website
Designed for iOS and macOS applicationsgithub.com/will-lumley/FaviconFinderSome time ago, I was working on an iOS application that required me to fetch and display the favicon of a given URL.Easy right? Well, not so much.About 15 to 20 years ago, you’d be fine to set up a simple HTTP GET request at the server's
Read morePandas Internals Explained
Explaining the pandas data model and its advantagesPhoto by La-Rel Easter on UnsplashIntroductionpandas enables you to choose between different types of arrays to represent the data of your dataframe. Historically, most dataframes are backed by NumPy arrays. pandas 2.0 introduced the option to use PyArrow arrays as a storage format. Additionally,
Read more