Remove c
article thumbnail

Building High-Quality Software

DZone

It sits at the very beginning of the process before the code is written and can save an immense amount of time down the road (of somebody spending tons of time just to get to a dead-end). I really like what one of the smartest people with whom I worked said: “A good design is a design where you can see the code”. Important note.

Software 245
article thumbnail

Missing Library: A pg_upgrade History

Percona

While working as a DBA, we perform many regular tasks, and one of them is upgrading our database systems. In this blog post, I will show you a particular example I faced when working with an upgrade exercise using pg_upgrade. When working with the upgrade exercise, the goal was to move from PostgreSQL 11 to PostgreSQL 12.

C++ 82
Insiders

Sign Up for our Newsletter

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Trending Sources

article thumbnail

Supercharging saga development

Particular Software

Saga analyzers Sagas have a powerful API, but it’s limited by the confines of C#. You can create a class that is a lousy saga but is still perfectly valid C# code. With Roslyn analyzers and code fixes , we can now do a lot better and help guide you toward the pit of success. Let’s take a look at the new features. ??

article thumbnail

GotW #97 Solution: Assertions (Difficulty: 4/10)

Sutter's Mill

Assertions have been a foundational tool for writing understandable computer code since we could write computer code… far older than C’s assert() macro, they go back to at least John von Neumann and Herman Goldstine (1947) and Alan Turing (1949). 1,2] How well do we understand them… exactly? GUIDELINE: Assert liberally. [3]

C++ 58
article thumbnail

BPF Theremin, Tetris, and Typewriters

Brendan Gregg

In the video I explained how I arrived at tracing __iwl_dbg() in this way, and how you can follow a similar approach for tracing unfamiliar code. This is not my best code, since I hacked it in a hurry, but here it is: #!/usr/bin/python Embedded C. # # Tone generation from: [link] # # 29-Apr-2019 Brendan Gregg Created this.

C++ 52
article thumbnail

BPF Theremin, Tetris, and Typewriters

Brendan Gregg

In the video I explained how I arrived at tracing __iwl_dbg() in this way, and how you can follow a similar approach for tracing unfamiliar code. This is not my best code, since I hacked it in a hurry, but here it is: #!/usr/bin/python Embedded C. # # Tone generation from: [link] # # 29-Apr-2019 Brendan Gregg Created this.

C++ 52
article thumbnail

GotW #98 Solution: Assertion levels (Difficulty: 5/10)

Sutter's Mill

We want a way to enable checking for some assertions but not others in the same code, because we may not always be able to afford expensive checks. If you develop your own assertion system for in-house use, support enabling/disabling at least these kinds of assertions independently. [1] in production).

C++ 45