---
title: "Meaning & Key Takeaway of: C++ tries to guard against Murphy, not…"
description: "\"C++ tries to guard against Murphy, not Machiavelli.\" — Damian Conway"
image: "https://sms4smile.com/quotes/i/a46/damian-conway-78705_guard_c-tries-to-guard-against-murphy-not-mach_1645158.png"
---

#  C++ tries to guard against Murphy, not Machiavelli.

![“C++ tries to guard against Murphy, not Machiavelli.” quote by Damian Conway](https://sms4smile.com/quotes/i/a46/damian-conway-78705_guard_c-tries-to-guard-against-murphy-not-mach_1645158.png)   [Download](https://sms4smile.com/quotes/i/a46/damian-conway-78705_guard_c-tries-to-guard-against-murphy-not-mach_1645158.png) [Open image](https://sms4smile.com/quotes/i/a46/damian-conway-78705_guard_c-tries-to-guard-against-murphy-not-mach_1645158.png)

> “C++ tries to guard against Murphy, not Machiavelli.”

Damian Conway

## About This Quote

This interpretation was drafted with AI assistance. It is one reading of the quote, not the author's own explanation.

C++ is designed to prevent programmer errors (Murphy) rather than to manipulate outcomes (Machiavelli).

**In simple terms:** C++ guards against bugs, not scheming.

Key Takeaway

Focus on writing safe code.

Themes

programming software design error handling

Mood

practical technical

Type

instructional technical

When to use this quote

- software development
- code review
- debugging
- team coding

Key Concepts

defensive programming type safety

Questions to Reflect On

- How do you balance safety and flexibility?
- Can defensive coding hinder performance?

A Different Perspective

C++ cannot prevent logical design flaws.

★ ★ ★ ★ ★   No ratings yet

[Language](https://sms4smile.com/quotes/about/language/) [Programming](https://sms4smile.com/quotes/about/programming/) [Programming languages](https://sms4smile.com/quotes/about/programming-languages/) [Software engineering](https://sms4smile.com/quotes/about/software-engineering/) [Technology](https://sms4smile.com/quotes/about/technology/)

## Related quotes

> [It's amazing when the best player in the world tries to stop you and tries to guard you.](https://sms4smile.com/quotes/dennis-schroder/it-s-amazing-when-the-best-player-in-the-world-tries-to-stop-you-and/)

[Dennis Schroder](https://sms4smile.com/quotes/author/dennis-schroder/)

> [It has been discovered that C++ provides a remarkable facility for concealing the trival details of a program - such as where its bugs…](https://sms4smile.com/quotes/robert-d-keppel/it-has-been-discovered-that-c-provides-a-remarkable-facility-for/)

Robert D Keppel

> [The camel has evolved to be relatively self-sufficient. On the other hand, the camel has not evolved to smell good. Neither has Perl.](https://sms4smile.com/quotes/larry-wall/the-camel-has-evolved-to-be-relatively-self-sufficient-on-the-other/)

[Larry Wall](https://sms4smile.com/quotes/author/larry-wall/)

> [A Perl program is correct if it gets the job done before your boss fires you.](https://sms4smile.com/quotes/larry-wall/a-perl-program-is-correct-if-it-gets-the-job-done-before-your-boss/)

[Larry Wall](https://sms4smile.com/quotes/author/larry-wall/)

> [I have a pretty major problem with a language where one of the most common variables has the name $\_](https://sms4smile.com/quotes/brian-h-hook/i-have-a-pretty-major-problem-with-a-language-where-one-of-the-most/)

Brian H. Hook

> [Increasingly, people seem to misinterpret complexity as sophistication, which is baffling -- the incomprehensible should cause suspicion rather than admiration.](https://sms4smile.com/quotes/niklaus-wirth/increasingly-people-seem-to-misinterpret-complexity-as-sophistication/)

[Niklaus Wirth](https://sms4smile.com/quotes/author/niklaus-wirth/)

> [Perl is another example of filling a tiny, short-term need, and then being a real problem in the longer term.](https://sms4smile.com/quotes/alan-kay/perl-is-another-example-of-filling-a-tiny-short-term-need-and-then/)

[Alan Kay](https://sms4smile.com/quotes/author/alan-kay/)

> [When debugging, novices insert corrective code; experts remove defective code.](https://sms4smile.com/quotes/richard-e-pattis/when-debugging-novices-insert-corrective-code-experts-remove/)

[Richard E. Pattis](https://sms4smile.com/quotes/author/richard-e-pattis/)

> [Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you…](https://sms4smile.com/quotes/brian-kernighan/debugging-is-twice-as-hard-as-writing-the-code-in-the-first-place/)

[Brian Kernighan](https://sms4smile.com/quotes/author/brian-kernighan/)

> [As we said in the preface to the first edition, C "wears well as one's experience with it grows." With a decade more experience,…](https://sms4smile.com/quotes/brian-kernighan/as-we-said-in-the-preface-to-the-first-edition-c-wears-well-as-one-s/)

[Brian Kernighan](https://sms4smile.com/quotes/author/brian-kernighan/)

> [You cannot teach beginners top-down programming, because they don't know which end is up.](https://sms4smile.com/quotes/tony-hoare/you-cannot-teach-beginners-top-down-programming-because-they-don-t/)

[Tony Hoare](https://sms4smile.com/quotes/author/tony-hoare/)

> [It's OK to figure out murder mysteries, but you shouldn't need to figure out code. You should be able to read it.](https://sms4smile.com/quotes/steve-mcconnell/it-s-ok-to-figure-out-murder-mysteries-but-you-shouldn-t-need-to/)

[Steve McConnell](https://sms4smile.com/quotes/author/steve-mcconnell/)

> [Should array indices start at 0 or 1? My compromise of 0.5 was rejected without, I thought, proper consideration.](https://sms4smile.com/quotes/stan-kelly-bootle/should-array-indices-start-at-0-or-1-my-compromise-of-0-5-was/)

[Stan Kelly-Bootle](https://sms4smile.com/quotes/author/stan-kelly-bootle/)

> [The C language combines all the power of assembly language with all the ease-of-use of assembly language.](https://sms4smile.com/quotes/mark-pearce/the-c-language-combines-all-the-power-of-assembly-language-with-all/)

Mark Pearce

> [Computers are good at following instructions, but not at reading your mind.](https://sms4smile.com/quotes/donald-knuth/computers-are-good-at-following-instructions-but-not-at-reading-your/)

[Donald Knuth](https://sms4smile.com/quotes/author/donald-knuth/)

## More by Damian Conway

> [Documentation is a love letter that you write to your future self.](https://sms4smile.com/quotes/damian-conway/documentation-is-a-love-letter-that-you-write-to-your-future-self/)

Damian Conway

> [Programming is a Dark Art, and it always will be. The programmer is fighting against the two most destructive forces in the universe: entropy…](https://sms4smile.com/quotes/damian-conway/programming-is-a-dark-art-and-it-always-will-be-the-programmer-is/)

Damian Conway

Explore all 3 Damian Conway quotes

## More Guard quotes

> [There's always a good point guard in this league.](https://sms4smile.com/quotes/eric-bledsoe/there-s-always-a-good-point-guard-in-this-league/)

[Eric Bledsoe](https://sms4smile.com/quotes/author/eric-bledsoe/)

> [First at the outset, let me commend the great men and women of the United States Coast Guard for what they do.](https://sms4smile.com/quotes/vito-fossella/first-at-the-outset-let-me-commend-the-great-men-and-women-of-the/)

[Vito Fossella](https://sms4smile.com/quotes/author/vito-fossella/)

> [The coffers are full of money and equipment for the Ferguson Police and the Missouri National Guard to put down a potential uprising, but…](https://sms4smile.com/quotes/jesse-jackson/the-coffers-are-full-of-money-and-equipment-for-the-ferguson-police/)

[Jesse Jackson](https://sms4smile.com/quotes/author/jesse-jackson/)

> [This miracle of me is mine to own and keep, and mine to guard, and mine to use, and mine to kneel before.](https://sms4smile.com/quotes/ayn-rand/this-miracle-of-me-is-mine-to-own-and-keep-and-mine-to-guard-and-mine/)

[Ayn Rand](https://sms4smile.com/quotes/author/ayn-rand/)

> [You don't have to run from baseline to baseline when you play guard. That helps me.](https://sms4smile.com/quotes/john-havlicek/you-don-t-have-to-run-from-baseline-to-baseline-when-you-play-guard/)

[John Havlicek](https://sms4smile.com/quotes/author/john-havlicek/)

> [“Some, in an effort to protect and preserve the gospel message, have become like the guards in that museum, fueled by fear that it…](https://sms4smile.com/quotes/shane-hipps/some-in-an-effort-to-protect-and-preserve-the-gospel-message-have/)

Shane Hipps

> [Well, for me, my favourite 'Indiana Jones' is 'The Last Crusade,' because you get tears in your eyes when you see the old guard…](https://sms4smile.com/quotes/ray-winstone/well-for-me-my-favourite-indiana-jones-is-the-last-crusade-because/)

[Ray Winstone](https://sms4smile.com/quotes/author/ray-winstone/)

> [I don't know how many people have ever seen the National Guard break in somewhere, but they mean business.](https://sms4smile.com/quotes/ozzie-smith/i-don-t-know-how-many-people-have-ever-seen-the-national-guard-break/)

[Ozzie Smith](https://sms4smile.com/quotes/author/ozzie-smith/)

> [I still say, to this day, I could not guard Nigel Lloyd.](https://sms4smile.com/quotes/nick-nurse/i-still-say-to-this-day-i-could-not-guard-nigel-lloyd/)

[Nick Nurse](https://sms4smile.com/quotes/author/nick-nurse/)

> [I can't think of much higher praise to give a player than to say, 'This point guard reminds me of Jason Kidd.'](https://sms4smile.com/quotes/ben-howland/i-can-t-think-of-much-higher-praise-to-give-a-player-than-to-say-this/)

[Ben Howland](https://sms4smile.com/quotes/author/ben-howland/)

> [Who will guard the guards ? If we're the guards of society, then who will watch us and make sure that we're not dangerous?](https://sms4smile.com/quotes/dan-brown/who-will-guard-the-guards-if-we-re-the-guards-of-society-then-who/)

[Dan Brown](https://sms4smile.com/quotes/author/dan-brown/)

> [Who is to guard the guards themselves?](https://sms4smile.com/quotes/juvenal/who-is-to-guard-the-guards-themselves/)

[Juvenal](https://sms4smile.com/quotes/author/juvenal/)

> [I can always make trouble for who I guard and control the effort I bring.](https://sms4smile.com/quotes/eric-bledsoe/i-can-always-make-trouble-for-who-i-guard-and-control-the-effort-i/)

[Eric Bledsoe](https://sms4smile.com/quotes/author/eric-bledsoe/)

> [Defensively, I think I'm very versatile, I can guard different positions.](https://sms4smile.com/quotes/kevin-knox/defensively-i-think-i-m-very-versatile-i-can-guard-different-positions/)

[Kevin Knox](https://sms4smile.com/quotes/author/kevin-knox/)

> [“Guard with jealous attention the public liberty. Suspect everyone who approaches that jewel. Unfortunately, nothing will preserve it but downright force. Whenever you give…](https://sms4smile.com/quotes/patrick-henry/guard-with-jealous-attention-the-public-liberty-suspect-everyone-who/)

[Patrick Henry](https://sms4smile.com/quotes/author/patrick-henry/)

Browse all 567 Guard quotes

```json
{
    "@context": "https://schema.org",
    "@graph": [
        {
            "@type": "Quotation",
            "text": "C++ tries to guard against Murphy, not Machiavelli.",
            "creator": {
                "@type": "Person",
                "name": "Damian Conway"
            },
            "isPartOf": {
                "@id": "https://sms4smile.com/quotes/#website"
            },
            "url": "https://sms4smile.com/quotes/damian-conway/c-tries-to-guard-against-murphy-not-machiavelli/",
            "about": {
                "@type": "Thing",
                "name": "Guard"
            },
            "@id": "https://sms4smile.com/quotes/damian-conway/c-tries-to-guard-against-murphy-not-machiavelli/#quotation",
            "image": {
                "@type": "ImageObject",
                "@id": "https://sms4smile.com/quotes/i/a46/damian-conway-78705_guard_c-tries-to-guard-against-murphy-not-mach_1645158.png",
                "contentUrl": "https://sms4smile.com/quotes/i/a46/damian-conway-78705_guard_c-tries-to-guard-against-murphy-not-mach_1645158.png",
                "url": "https://sms4smile.com/quotes/i/a46/damian-conway-78705_guard_c-tries-to-guard-against-murphy-not-mach_1645158.png",
                "width": 1080,
                "height": 1080,
                "caption": "“C++ tries to guard against Murphy, not Machiavelli.” — Damian Conway",
                "creditText": "SMS4Smile Quotes",
                "creator": {
                    "@id": "https://sms4smile.com/quotes/#organization"
                }
            }
        },
        {
            "@type": "BreadcrumbList",
            "itemListElement": [
                {
                    "@type": "ListItem",
                    "position": 1,
                    "name": "Home",
                    "item": "https://sms4smile.com/"
                },
                {
                    "@type": "ListItem",
                    "position": 2,
                    "name": "Quotes",
                    "item": "https://sms4smile.com/quotes/"
                },
                {
                    "@type": "ListItem",
                    "position": 3,
                    "name": "Damian Conway",
                    "item": "https://sms4smile.com/quotes/author/damian-conway/"
                },
                {
                    "@type": "ListItem",
                    "position": 4,
                    "name": "C++ tries to guard against Murphy,...",
                    "item": "https://sms4smile.com/quotes/damian-conway/c-tries-to-guard-against-murphy-not-machiavelli/"
                }
            ],
            "@id": "https://sms4smile.com/quotes/damian-conway/c-tries-to-guard-against-murphy-not-machiavelli/#breadcrumb"
        },
        {
            "@type": "WebSite",
            "@id": "https://sms4smile.com/quotes/#website",
            "name": "SMS4Smile Quotes",
            "url": "https://sms4smile.com/quotes/",
            "publisher": {
                "@id": "https://sms4smile.com/quotes/#organization"
            }
        },
        {
            "@type": "Organization",
            "@id": "https://sms4smile.com/quotes/#organization",
            "name": "SMS4Smile Quotes",
            "url": "https://sms4smile.com/quotes/",
            "logo": {
                "@type": "ImageObject",
                "url": "https://sms4smile.com/quotes/wp-content/themes/sq/assets/icons/icon-512.png",
                "width": 512,
                "height": 512
            }
        }
    ]
}
```
