Multiple assertions are fine in a unit test
One test case, not one test assertion.
Topics /
The most popular blog posts about software engineering on Hacker News. 1,551 posts.
One test case, not one test assertion.
davidamos.dev is your first and best source for information about davidamos. Here you will also find topics relating to issues of general interest. We hope you find what you are looking for!
This article covers a gentle introduction to the shell nushell
In React, we don't update the DOM directly, we tell React what we want the DOM to look like, and React tackles the rest. But how exactly does it do this? In this tutorial, we'll unpack exactly when and why React re-renders, and how we can use this information to optimize the performance of our React apps.
Mentors should operate at three levels: goals, situations, and skills.
This post is the third article in a series of blog posts about rsync, see the Series Overview. With rsync up and running, it’s time to take a peek under the hood of rsync to better understand how it works. How does rsync work? When talking about the rsync protocol, we need to distinguish between:
I first heard about the dinosaur 🦕 VS shark 🦈 analogy when I read this excellent article about relational databases:
This is part one of the Crossover Project. Part two is here and part three is here. A conference talk based on this work is now available here. I sat in front of Mat, idly chatting about tech and cuisine. Before now, I had known him mostly for his cooking pictures on Twitter, the kind that made me envious of…
Date: 2022-07-23 Git: https://gitlab.com/mort96/blog/blob/published/content/00000-home/00014-tar.md
Zig programming language is new, but it's getting a well deserved attention. Can it be a good fit for small-and-simple programming tasks?
Use new programming languages knowledge to level up your Software Engineer career!
With Postgres, you don't need to immediately look farther than your own database management system for a full-text search solution. If you haven't yet given Postgres' built-in full-text search a try, read on for a simple intro.
PostgreSQL has a robust set of features which we can leverage to create a generic auditing solution in 150 lines of SQL.
Simplex Sigillum Veri
You can get OpenBSD Mastery: Filesystems for Kindle direct from me at Tilted Windmill Press or at Gumroad . You can get a Kindle-friendly ebook from any number of other retailers, but while they’re all supposed to be DRM-free I can’t advise on prying the file out of another vendor’s ecosystem. The one place you cannot…
Go tooling and design help mitigate supply chain attacks at various stages.
You're probably reading this page because you've attempted to access some part of my blog (Wandering Thoughts) or CSpace , the wiki thing it's part of. Unfortunately you're using a browser version that my anti-crawler precautions consider suspicious, most often because it's too old (most often this applies to versions…
Joe Armstrong once described Erlang as the quest for programs you “write once, run forever.” Nix, conversely, might be one that runs wherever, whenever.
It's not about technology for its own sake. It's about being able to implement your ideas.
We’re sharing lessons learned from shifting our Android development from Java to Kotlin. Kotlin is a popular language for Android development and offers some key advantages over Java. As of today,…
The long-running BBC sci-fi show Doctor Who has a recurring plot device where the Doctor manages to get out of trouble by showing an identity card which is actually completely blank. Of course, thi…
dsq is a commandline tool for running SQL queries against all the data file types that DataStation supports (JSON, CSV, Parquet, Excel, etc.). Here is a simple example:
I wanted to see how a language model would analyze my existing code.
We’d like to announce the availability of the QEMU 7.0.0 release. This release contains 2500+ commits from 225 authors.
Use Connect to build simple, stable, browser and gRPC-compatible APIs.
I'll show you what good logging is with real-life examples. Most people don't know what to log, so they end up creating just noise....
I wrote a program that sends cats to my phone when I'm sad at the computer.