Tag: cppdebugging

Nobody Can Program Correctly – Lessons From 20 Years of Debugging C++ Code – Sebastian Theophil – CppCon 2022

  • Lobby
  • Tag Archives: cppdebugging

https://cppcon.org/
---

Nobody Can Program Correctly - Lessons From 20 Years of Debugging C++ Code - Sebastian Theophil - CppCon 2022
https://github.com/CppCon/CppCon2022

We like to write code but—despite our best efforts—we make mistakes. Our program will contain bugs. Sometimes, we don’t write what we mean to write, sometimes we don’t understand an aspect of our programming language and at other times we lack—or fail to consider—some critical information about our program’s system environment. As a result, our program will not behave correctly. What do we do now?

In this talk, I would like to take you through the entire debugging process, starting with a program that crashes. What do we do next? Which questions do we have to ask? What information do we need? What can we do to find the cause of the crash? Which tools can help us in this quest, and, last but not least, what can we do to make sure this bug never happens again?

Thanks to real-world examples that we have encountered — and debugged — over the years, you will learn how to reproduce, locate, understand and fix even the most difficult bugs.
---

Sebastian Theophil

Sebastian has been working at think-cell Software since its founding in 2002. In the last few years, among many other things, he has ported think-cell to run on macOS.

He is also the maintainer of the typescripten project which lets programmers call JavaScript libraries from C++ code compiled to WebAssembly in a convenient and type-safe way. He enjoys to leave this desk from time to time to talk at international C++ conferences and has previously given talks at CppNow, CppCon, and ACCU.
---

Videos Streamed & Edited by Digital Medium: http://online.digital-medium.co.uk

#cppcon #programming #debugging

Filed under: UncategorizedTagged with: , , , ,

“It’s A Bug Hunt” – Armor Plate Your Unit Tests in Cpp – Dave Steffen – CppCon 2022

  • Lobby
  • Tag Archives: cppdebugging

https://cppcon.org/
---

"It's A Bug Hunt" - Armor Plate Your Unit Tests in Cpp - Dave Steffen - CppCon 2022
https://github.com/CppCon/CppCon2022

Unit Testing serves many purposes, but fundamentally it's about bugs: finding them, fixing them, keeping them out of your code base.

This talk is a detailed discussion of how to write unit tests that are good *tests*; that is, unit test cases that are complete, accurate, and thorough. We can think of unit tests as our laboratory equipment for carefully examining our code and measuring a particular property (existence of bugs) with care and precision; or we can think of them as bug-hunting gear that that keeps us safe when we have to venture into the dark and dangerous parts of our code base.

Over the past several decades, the software community has learned, usually the hard way, many principles and best practices for unit testing, but these are documented across a wide variety of books, blogs, and talks. This talk will discuss, summarize, and try to simplify what we have learned about making our unit tests effective at finding bugs, describing them, and removing the little critters from our code base.

We will look at examples, consider test organization, and get into the nitty-gritty of edge and corner cases. We will also look at a case study of a famously ill-fated debugging expedition, with the goal of learning from their mistakes -- better than learning from your own! -- and, incidentally, (re)introducing some important cultural memes that no bug-hunters should be without.
---

Dave Steffen

Dave Steffen completed his Ph.D. in theoretical physics at Colorado State University in 2003, and promptly changed course for a career in software engineering. He has worked primarily in defense and aerospace, and is currently a Principal Engineer at SciTec Inc.'s Boulder office. For reasons unknown, he has turned out to be the expert, champion, and occasional street-corner evangelist for unit testing at most of the companies he has ever worked at.
__

Videos Filmed & Edited by Bash Films: http://www.BashFilms.com
YouTube Channel Managed by Digital Medium Ltd https://events.digital-medium.co.uk

#cppcon #programming #unittest

Filed under: UncategorizedTagged with: , , , ,