Skip to content

christoffer-nylen/nylen-dev-links

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 

Repository files navigation

nylen-dev-links

My favorite software development links.

Table of Contents:

Rating:

  • 10/10: Awesome! - Significant daily impact.

  • 9/10: Very Good! - Daily impact.

  • 8/10: Good - Useful in some situation.

  • 7/10: Ok - Fun example or nicely put explanation.

Software verification

General

I've curated 1,000 software testing news in 2020 and here are the best ones

Test smarter, not harder

How Incompetence and Bad Testing ruined 700+ lives

Bad software sent the innocent to prison

Test driven development

TDD, where did it all go wrong? (1h version) - Rating: 10/10

Since Kent Beck wrote the book on TDD in 2002 a lot of words have been dedicated to the subject. But many of them propogated misunderstandings of Kent's original rules so that TDD practice bears little resemblance to Kent's original ideas. Key misunderstandings around what do I test, what is a unit test, and what is the 'public interface' have led to test suites that are brittle, hard to read, and do not support easy refactoring. In this talk we re-discover Kent's original proposition, discover where key misunderstandings occured and look at a better approach to TDD that supports sofware development instead of impeding it. Be prepared from some sacred cows to be slaughtered and fewer but better tests to be written

TDD, where did it all go wrong? (5min version) - Rating: 8/10

  • What is the main misunderstanding of TDD?
  • Why are some people moving away from TDD, how do you stop that?
  • What is the relationship between ATDD and TDD?
  • What architectural styles make TDD easier?

What's in a story? - Rating: 8/10

Behaviour-driven development is an “outside-in” methodology. It starts at the outside by identifying business outcomes, and then drills down into the feature set that will achieve those outcomes. Each feature is captured as a “story”, which defines the scope of the feature along with its acceptance criteria. This article introduces the BDD approach to defining and identifying stories and their acceptance criteria.

BDD provides a structure for a story. This is not mandatory – you can use a different story format and still be doing BDD – but I am presenting it here because it has been proven to work on many projects of all shapes and sizes. At the very least, your story should contain all of the elements described in the template.

Tests are about design - Rating: 7/10

The problem is everyone always reduces tests to one angle, they have an impact on a lot of aspects.

Principles of Automated Testing

There are a lot of fancy tools/terminology around this idea: "table-driven tests", "data-driven tests", etc.. But fundamentally, all you want is for your test cases to be concise and the expected/asserted behavior obvious-at-a-glance. This is something that normal code-refactoring techniques are capable of helping you achieve without any fancy tooling. Only after you've tried to do this manually, and found it lacking in some way, then is it worth starting to look at more specialized tools and techniques.

Example tests are those which walk your code through a single (or small number of) example, with careful asserts along the way to make sure it's doing exactly the right thing. Bulk tests, on the other hand, are those which shove large amounts of examples through your code, with a less thorough examination of how each case behaves: just making sure it's not crashing, with perhaps a rough check to make sure it's not completely misbehaving. Fuzz Testing or Property-based Testing are two common approaches within this category.

Pulling JPEGs out of thin air

The first image, hit after about six hours on an 8-core system, looks very unassuming: it's a blank grayscale image, 3 pixels wide and 784 pixels tall. But the moment it is discovered, the fuzzer starts using the image as a seed - rapidly producing a wide array of more interesting pics for every new execution path.

Expressenutvecklaren

Software Testing in the 2020's

Robustness testing

Open lecture by James Bach on software testing - Rating: 8/10

Your job as a tester is not to just numbly copy a requirement, put the word “verify” in front of it and call it a test case; it’s not simple like that! Instead you should question it and model it in you mind! Imagining it in different ways it might interact with other things. And in so doing; you’re expanding the world beyond what is written down explicitly for you. That’s a big part of your job as a tester. To make the world clear.

How SQLite Is Tested - Rating: 7/10

How Rust is tested - Rating: 7/10

This document then, is a catalog of all the ways we test Rust. I hope it provides insight into what it takes to deliver a production-quality programming language, a hint at the wide variety of techniques employed in software validation, and that it reinforces your confidence in Rust’s reliability.

Keep calm and break stuff: Software testing for beginners - Rating: 7/10

The art of defensive programming

James Bach's blog

Integration testing

How Mojang runs end-to-end tests inside Minecraft

Code review

Effective code review with two simple rules - Rating: 10/10

  1. Identify a problem.
  2. Propose a solution.

This is relatively decent life advice in general

10 tips for better pull requests - Rating: 9/10

Here's a list of tips to make your Pull Request better. It isn't exhaustive, but I think it addresses some of the more important aspects of creating a good Pull Request.

Best kept secrets of peer code review - Rating: 7/10

Improve software quality with software inspections - Rating: 7/10

The practice of code review - Rating: 7/10

Effective Code Reviews

The Secret Society of Code Reviewers at Microsoft

The Code Review Pyramid

How to Review Code Well, reddit link

Coding rules

A comparison of industrial coding rules - Rating 8/10

AdaControl is a (free) tool whose purpose is to enforce coding standards and programming rules in Ada programs. As AdaControl is more and more widely used in the industry, we had to review many industrial coding standards, in order to write the corresponding AdaControl rules. This paper presents our experience with rules of various origins, analyzes the rules commonly encountered, and provides some lessons-learned about good and bad programming rules.

In-Depth: Static Code Analysis - Rating: 7/10

It is impossible to do a true control test in software development, but I feel the success that we have had with code analysis has been clear enough that I will say plainly it is irresponsible to not use it.

NASA's 10 coding rules for writing safety critical program

NASA C style guide

Awesome static analysis!

Codechecker

Clang static analysis toolset final

Why you should really care about C/C++ static analysis

Curiously recurring C++ bugs at facebook

Code coverage

Advanced coverage criteria - Rating 8/10

Coverage criteria serve two main purposes: To measure adequacy of existing test suites, and to guide generation of new test cases. Even though coverage is often used to measure the quality of an existing test suite, coverage is not a good measurement for this. Generally, coverage is only good at telling you which parts haven’t been covered.

There are many kinds of code coverage criteria. The link explains many of them in a short and understandable way.

Vladimir Khorikov: 100% Test Coverage is an Artificial Metric

Mutation testing

An analysis and survey of the development of mutation testing - Rating 8/10

Mutation Testing is a fault–based software testing technique that has been widely studied for over three decades. The literature on Mutation Testing has contributed a set of approaches, tools, developments and empirical results. This paper provides a comprehensive analysis and survey of Mutation Testing. The paper also presents the results of several development trend analyses. These analyses provide evidence that Mutation Testing techniques and tools are reaching a state of maturity and applicability, while the topic of Mutation Testing itself is the subject of increasing interest.

An Industrial Application of Mutation Testing: Lessons, Challenges, and Research Directions

Comparatively little research has focused on the costs and benefits of mutation testing, in which mutants are presented as testing goals to a developer, in the context of an industrial-scale software development process. This paper draws on an industrial application of mutation testing, involving 30,000+ developers and 1.9 million change sets, written in 4 programming languages. It shows that mutation testing with productive mutants does not add a significant overhead to the software development process and reports on mutation testing benefits perceived by developers. This paper also quantifies the costs of unproductive mutants, and the results suggest that achieving mutation adequacy is neither practical nor desirable. Finally, this paper describes lessons learned from these studies, highlights the current challenges of efficiently and effectively applying mutation testing in an industrial-scale software development process, and outlines research directions.

Developers have decided to redesign large chunks of code to make them testable just so a mutant could be killed, they have found bugs in complex logical expressions looking at mutants, they have decided to remove code with an equivalent mutant because they deemed it a premature optimization, they’ve claimed the mutant saved them hours of debugging and even production outages because no test cases were covering the logic under mutation properly. Mutation testing has been called one of the best improvements in the code review verification in years. While this feedback is hardly quantifiable, combined with the sheer number of thousands of developers willing to inspect surfaced mutants on their code changes makes a statement.

Subsumption of Condition Coverage Techniques by Mutation Testing - Rating 8/10

Condition coverage testing is a family of testing techniques that are based on the logical flow of control through a program. The condition coverage techniques include a variety of requirements, including that each statement in the program is executed and that each branch is executed. Mutation testing is a fault-based testing technique that is widely considered to be very powerful, and that imposes requirements on testing that include, and go beyond, many other techniques. In this paper, we consider the six common condition coverage techniques, and formally show that these techniques are subsumed by mutation testing, in the sense that if mutation testing is satisfied, then the condition coverage techniques are also satisfied.

An Empirical Evaluation of Mutation Testing for Improving the Test Quality of Safety-Critical Software - Rating: 8/10

In this study, we provide an empirical evaluation of the application of mutation testing to airborne software systems which have already satisfied the coverage requirements for certification. Specifically, we apply mutation testing to safety-critical software developed using high-integrity subsets of C and Ada, identify the most effective mutant types, and analyze the root causes of failures in test cases. Our findings show how mutation testing could be effective where traditional structural coverage analysis and manual peer review have failed. They also show that several testing issues have origins beyond the test activity, and this suggests improvements to the requirements definition and coding process. Our study also examines the relationship between program characteristics and mutation survival and considers how program size can provide a means for targeting test areas most likely to have dormant faults.

Subsets may be imposed through restrictions in coding standards or through industry best practice (e.g., MISRA C). This again reduces the legal substitutions which can be made during mutation testing.

In some instances, a simple error in the definition of the test case has rendered the test ineffective against the majority of mutants. Given that these test-case sets met the coverage criteria, this gives us cause to question the effectiveness of the test coverage objectives (i.e., the objectives that need to be achieved for certification purposes).

The general consensus from both sessions was that the improvements identified using mutation testing provided a level of assurance beyond that offered by manual review. Not only were unsatisfactory deficiencies identified using mutation testing, but the findings were consistently repeatable.

The group of engineers indicated that the potential to replace manual test-case review with mutation testing offered a real benefit given sufficient evidence to support its viability.

There was a clear correlation between the test-case sets which failed to achieve a mutation adequacy score of 100 percent and the cyclomatic complexity of the SUT. In most cases, the code items considered were not large, and so this did not necessarily mean higher overheads.

There is insufficient data at present to suggest that mutation testing could replace manual review, but it does provide evidence to complement a review and to understand reviewer capability.

The impact of equivalent mutants - Rating: 8/10

The impact of a mutant was defined as the different program behaviour between the original program and the mutant and it was measured through the code coverage in their experiment. The empirical results suggested that there was a strong correlation between mutant ‘killability’ and its impact on execution, which indicates that if a mutant has higher impact, it is less likely to be equivalent.

The hypothesis implies that when faced with thousands of surviving mutations, one should focus on those mutations with the highest impact—as one would run little risk to spend time on equivalent mutations, and as one may also obtain particularly valuable mutations, as discussed earlier.

98% of the killed mutations had an impact on the coverage, while only 27% of the not killed mutations had an impact.

For the 20 not killed mutants with the highest impact, we found 18 non-equivalent mutants and 2 equivalent. The rate of 90% non-equivalent mutants is higher than the rate of 50% that we found in our study of randomly chosen mutations.

Mutation testing - Clean coder blog - Rating: 8/10

As hard-nosed as I am about TDD as a necessary discipline; if I saw a team using mutation testing to guarantee the semantic stability of a test-after suite; I would smile, and nod, and consider them to be highly professional. (I would also suggest that they work test-first in order to streamline their effort.)

Introduction to mutation testing - Rating: 7/10

What the heck is mutation testing? - Rating: 7/10

Test frameworks

A quick introduction to the Google C++ testing framework - Rating: 8/10

There are many good reasons for you to use this framework. This section describes several of them.

Formal verification

Formal verification: The gap between perfect code and reality - Rating: 8/10

I went into the class believing that formal verification is the future — the only solution to a world of software ridden with bugs and security issues. But after recent events and a semester of trying to apply formal methods, I’m a serious skeptic. In this post, I’ll discuss why I think formal verification has a long way to go — and why it just doesn’t work right now.

How can you trust formally verified software?

Non-functional testing

American fuzzy lop

alt text

American fuzzy lop is a security-oriented fuzzer that employs a novel type of compile-time instrumentation and genetic algorithms to automatically discover clean, interesting test cases that trigger new internal states in the targeted binary. This substantially improves the functional coverage for the fuzzed code. The compact synthesized corpora produced by the tool are also useful for seeding other, more labor- or resource-intensive testing regimes down the road.

OSS-Fuzz - Continuous Fuzzing for Open Source Software

Safety-critical

RTCA DO-178 CAST Papers

We are the SpaceX software team, ask us anything!

Version control

Git happens - Rating: 8/10

There's a million tutorials on the internet that tell you what to type in Git, but not why! Go one level deeper: A few straightforward concepts and some pictures, and git will magically make sense.

Pro git book - Rating: 8/10

In what cases could git pull be harmful? - Rating: 8/10

The git pull command is safe so long as it only performs fast-forward merges. If git pull is configured to only do fast-forward merges and a fast-forward merge isn't possible, then Git will exit with an error. This will give you an opportunity to study the incoming commits, think about how they might affect your local commits, and decide the best course of action (merge, rebase, reset, etc.).

Some git tips courtesy of the CIA - Rating: 7/10

Git cheat sheat - Rating: 7/10

Trunc based development - Rating 7/10

A source-control branching model, where developers collaborate on code in a single branch called ‘trunk’ *, resist any pressure to create other long-lived development branches by employing documented techniques. They therefore avoid merge hell, do not break the build, and live happily ever after.

git push --force and how to deal with it

In this tutorial, we will show you how to recover from an unfortunate git push --force quickly.

Why github can't host the linux kernel community

Spend effort on your git commits

alt text

Git commit messages

Git Under the Hood

Machine learning

You (probably) don't need machine learning - Rating: 7/10

Of particular note is the ‘cleaned-up data’ piece. That’s huge and something that many companies forget (or ignore) when working with their data. Without proper data quality, data governance and data management processes / systems, you’ll most likely fall into the Garbage in / Garbage out trap that has befallen many data projects.

Machine learning and stable kernels

He trained the neural network with commits from Linux 3.0 to 4.16, where the "true" value was whether the commit was in the stable tree.

The output from the neural network has led to more than 3000 commits to various stable trees, many of which were critical fixes.

A super simple introduction to neural networks

A visual and interactive guide to the basics of neural networks

A basic introduction to neural networks

Visualization

Up and down the ladder of abstraction - Rating: 8/10

The most powerful way to gain insight into a system is by moving between levels of abstraction. Many designers do this instinctively. But it's easy to get stuck on the ground, experiencing concrete systems with no higher-level view. It's also easy to get stuck in the clouds, working entirely with abstract equations or aggregate statistics.

This interactive essay presents the ladder of abstraction, a technique for thinking explicitly about these levels, so a designer can move among them consciously and confidently.

Five best eclipse plugins

Programming

Languages

Why is Rust difficult? - Rating: 8/10

This is my point of view what I believe are the reasons. Also, I’ll claim this upfront ‒ I don’t consider it necessarily a bad thing for a language to be hard to learn, not when I get something in return for the investment.

One of the problems why I found Rust hard to learn was that it looked similar to other imperative languages on one side, but introduced a lot of novel concepts. It has all these cycles, conditions, functions, like everyone else. But it also has the ownerships and traits and lifetimes. These do have its reasons, but they feel alien at first ‒ but not alien enough to completely switch mental models. But that also make the language interesting.

What should a beginner in Rust expect:

  • Becoming a better programmer, even in other languages (for example, ownership is just formalisation what most people do in languages with manual memory management anyway, but Rust makes sure it becomes second nature).
  • ...

The complete guide to (external) domain specific languages

A list of programming languages that are actively developed on GitHub.

Tips for self-learning programming

Disadvantages of purely functional programming

How does one improve as an intermediate programmer?

What is memory safety?

Pointers gone wild: Memory safety and D

Memory safety: A concern in software development that aims to avoid software bugs that cause security vulnerabilities dealing with random-access memory (RAM) access, such as buffer overflows and dangling pointers

Is abstraction overrated in programming?

Strongly Typed Languages Reduce Bugs by 15%

Static vs. Dynamic Languages: A Literature Review

What does it take to be an expert at Python?

A Firehose of Rust, for busy people who know some C++

All C++20 core language features with examples

General

Blockchain - A Visual Demo - Rating 8/10

This is a very basic visual introduction to the concepts behind a blockchain. We introduce the idea of an immutable ledger using an interactive web demo.

Write Libraries, Not Frameworks

Reflections on 10,000 Hours of Programming

Clever vs Insightful Code

Embedded

D as a Better C - Rating 8/10

D and C programs can now be mixed together in any combination, meaning existing C programs can now start taking advantage of D.

Quantum Break: AAA Gaming With Some D Code - Rating 7/10

How Crash Bandicoot Hacked The Original Playstation - Rating 7/10

The CD takes about 1/3 of a second to move its head to any specific spot on the CD. It takes some time to actually load the data. It could load a megabyte in maybe six seconds or something. So you can't just go draw one frame and go get a new different megabyte off the disk because it's gonna take you eight seconds to get that different megabyte of the disk. Well, what are you gonna do, sit there do nothing for eight seconds? You can do that between levels. So when the level switches, that's why a typical game would go to a loading screen and they'd load that whole megabyte or whatever of the disk. The CD, it's just a further storage. It's bugger but it's slower. It's further away from being able to use it, but why can't you use it? It's there. On an early Playstation game, they have like one megabyte levels or two megabyte levels and CD is 640, that means that could fit 300 levels on the CD. Did they have 300 levels? No, that would take them like 10 years to make the game. So the CD's just mostly empty or they fill it all with music because music is kind of fat, or video, or something, but a lot of times, it's just empty. Games like Twisted Metal might only be 50 megs on the disk. And so every games' levels are gonna look like rougly a a megabyte, maybe a mebayte and a half of data. Now that was sufficient. Many many PlayStation games were made, but it was part of my theory that that didn't have to be so...

An Uncharted Tech Retrospective - Rating 7/10

Naughty Dog programmer John "Cowboy" Bellomy stops by to talk about the tools of his trade after spending nearly a decade with Nathan Drake.

Write your own strace and gdb

Introduction to strace

Writing C without the standard library

Why does calloc exist?

Write a shell in C

How much memory is my process using?

Static and dynamic libraries

VisUAL - A highly visual ARM emulator

Demystifying Floating Point Precision

Meltdown And Spectre - What we know so far

XRay in LLVM: Function Call Tracing and Analysis

Real-time linux on embedded multicore processors

IGN asked nearly 100 game developers to answer the question: "What is a thing in video games that seems simple but is actually extremely hard to make?"

Reverse engineering

How Metal Gear Solid V renders a frame - Rating: 7/10

alt text

This was a pretty amazing article even before I got to the end and realized he is not actually a developer from the MSGV team, but just a guy who reverse-engineered the process by intercepting the D3D API calls. "Oh yeah btw I had to fork ReShade with custom hooks to bypass the DLL injection detection of the game, no biggie."

Disassembling Jak & Daxter (which has one of the best game engine ever created) - Rating: 7/10

alt text

It's a hell of a thing, when you think about it. To create your own programming language, from scratch, and then write the entire game engine in it. I don't know of any other games out there that do that.

Rendering of Rise of the Tomb Raider

How the Age of Empires 2 AI thinks

Building

Making build systems not suck

The Meson build system was created from scratch with one simple goal in mind: every second spent writing build definitions is a second wasted. Meson tries to solve this problem by reliably providing all features required for modern software development with the least amount of effort. This presentation will show an overview of the ways in which developers can spend more time developing their software and less time babysitting their build configuration.

What test engineers do at Google: Building test infrastructure

Ninja, a new build system

Ninja started as a hobby project by google employee Evan Martin. In this blogg, Evan tells about the problems with GNU Make when building Chromeum, that led to the invention of Ninja.

The Ninja build system

Where other build systems are high-level languages, Ninja aims to be an assembler.

Build systems get slow when they need to make decisions. When you are in a edit-compile cycle you want it to be as fast as possible — you want the build system to do the minimum work necessary to figure out what needs to be built immediately.

YAML sucks

How Microsoft Lost the API War

Terminal

An Opinionated Guide to xargs

Culture

Workflow

From wasteland to fearless machine - Rating: 8/10

Expressen is the fastest growing media site in Sweden. In 2013 I joined Expressen with the goal of, together with a few others, build a new development department. This is the story of how we went from zero to 60 developers. This is the story of how we gradually went from a monolithic .NET CMS to a plethora of small applications built with Node. This is the story of how we built an agile and fearless culture.

Building a high-performance team is everyone's job - Rating: 8/10

Talk of tech innovation is bullsht, shut up and get the work done! - Rating 7/10

It's almost boring how well our process works," Torvalds said. "All the really stressful times for me have been about process. They haven't been about code. When code doesn't work, that can actually be exciting ... Process problems are a pain in the ass. You never, ever want to have process problems ... That's when people start getting really angry at each other.

Unexpected learnings from the cia leak - Rating: 7/10

It’s amusing to see how, after all, under all the layers of secrecy and mystery we are all engineers facing similar challenges and using the same tools. Starting with the obvious: the CIA uses JIRA, Confluence and git. Yes, the very same tools you use every day and love/hate. But there’s much more.

Debugging with humility - Rating: 7/10

Why I only work remotely - Rating: 7/10

Agile must be destroyed once and for all

20-Year experience of software development methodologies

alt text

GOTO 2015 - Space Shuttle

Building successful teams with evidence-based innovation and design

Google’s five keys to a successful team

How to take great engineers & make them great technical leaders

What I learned from Software Engineering at Google

How to estimate time for a project/task accurately

MVP

The Biggest Mistake I See Engineers Make - Zach Lloyd

Maintenance

Short-term vs long-term perspective in software development

A practical explanation of tech debt and why it can be found in most startups

alt text

Developer-driven development

The Mess We're In

Building software capital: How to write the highest quality code and why

Technical Debt is like Tetris

Why programmers don’t write documentation

Career

The impact github is having on your software career

How to pay programmers less

Software architect a role not a job

Your job is not your life: Staying competitive as a programmer

What percent of your career have you wasted?

A curated awesome list of lists of interview questions

From engineer to manager: Keeping your technical skills

Questions a developer should ask at a job interview

The eight levels of programmers

What new software development managers should know

What happens to a programmer's career as he gets older? What are your stories or advice about the programming career around 45-50? Any advice on how to plan your career until then? Any differences between US and UE on this matter?

10 Admirable Attributes of a Great Technical Lead

Teaching & Learning

Learn touch typing - Rating: 10/10

Web application that will help you teach touch typing. Touch typing is typing without using the sense of sight to find the keys. A person possessing touch typing skills will know their location on the keyboard through muscle memory. It can improve any individual's typing speed and accuracy dramatically.

How developers stop learning: Rise of the expert beginner - Rating: 8/10

There’s nothing you can do to improve as long as you keep bowling like that. You’ve maxed out. If you want to get better, you’re going to have to learn to bowl properly. You need a different ball, a different style of throwing it, and you need to put your fingers in it like a big boy. And the worst part is that you’re going to get way worse before you get better, and it will be a good bit of time before you get back to and surpass your current average.

Anything outside their current comfort zone. The problem is that when you start learning something fundamentally new, then initially you end up being less productive than using the tools you know. This frustrates a lot of people and they end up giving up and going back to doing what they already know.

Once you reach a local maximum, then you're at the top of your hill. If you want to climb a different hill, then you first have to climb off yours and then start climbing the new one.

I think ego plays a large role here. Somebody who's been developing professionally for many years likes the feeling of being an expert. This mindset tends to create aversion towards things that require becoming a beginner again.

A great example of this is how difficult a lot of people find learning functional programming. It's not inherently difficult to learn, but it's very different from the imperative style. When you move between the languages in the same family, it's very easy to transfer your experience from one language to another. However, when you start learning a new paradigm, you have to internalize new patterns and approaches to solving problems. All of a sudden, you're a beginner again. You know how to solve a problem with your current toolset, but you're struggling with the tool you're learning.

Learning to enjoy being a beginner is the most valuable skill for a programmer in my opinion.

How to write a research paper

About

List of my favorite software development links.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published