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

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. for lib in $(psql -qtA pgbench -c"select extname||'.so' for lib in $(psql -qtA pgbench -c"select extname||'.so'

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

Your First C Program

Sutter's Mill

As a tribute in honor of Dennis Ritchie’s passing , I’d like to invite you to share your thoughts in this post’s comments about your first C program – either the code if you remember it approximately, or a story about when you wrote it. After all, this was just a warm-up initial exercise for the course. Here’s mine.

C++ 40
article thumbnail

GotW #102 Solution: Assertions and “UB” (Difficulty: 7/10)

Sutter's Mill

Briefly, what is the difference among: (a) undefined behavior Undefined behavior is what happens when your program tries to do something whose meaning is not defined at all in the C++ standard language or library (illegal code and/or data). By definition, if a function’s preconditions are violated, then the results are not specified.

C++ 54
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

Move, simply

Sutter's Mill

C++ “move” semantics are simple, and unchanged since C++11. Move: What it is, and how to use it In C++, copying or moving from an object a to an object b sets b to a ’s original value. This post is an attempt to shed light on that situation. That’s it for what advanced users need to know. Yes, but don’t.

C++ 98