<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/many-unhappy-returns-6ueuxm4pd" -->

---
title: Many Unhappy Returns | daily.dev
description: The post discusses code issues found in an old C++ app, including pointer conversions, branching logic, memory leaks, and retrying failed operations.
canonical: https://daily.dev/posts/many-unhappy-returns-6ueuxm4pd
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Many Unhappy Returns | daily.dev
og:description: The post discusses code issues found in an old C++ app, including pointer conversions, branching logic, memory leaks, and retrying failed operations.
og:url: https://daily.dev/posts/many-unhappy-returns-6ueuxm4pd
og:image: https://api.daily.dev/og/posts/6uEuXm4PD.png
og:image:alt: Many Unhappy Returns
og:image:width: 1200
og:image:height: 630
og:locale: en
---

[The Daily WTF](https://daily.dev/sources/thedailywtf)

[Read post](https://api.daily.dev/r/6uEuXm4PD)

# [Many Unhappy Returns](https://api.daily.dev/r/6uEuXm4PD "Go to post")

The post discusses code issues found in an old C++ app, including pointer conversions, branching logic, memory leaks, and retrying failed operations.

[#c](/tags/c "Check all #c posts")[#code-review](/tags/code-review "Check all #code-review posts")

May 14, 2024•3m read time•From [thedailywtf.com](https://api.daily.dev/r/6uEuXm4PD "thedailywtf.com")

[![Post cover image](https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/8b1b05f1d37d4ce032f91ef813127d14?_a=AQAEuiZ)](https://api.daily.dev/r/6uEuXm4PD "Go to post")

222 Impressions5 Upvotes1 Comment

Comment

Bookmark

Copy

![Placeholder image for anonymous user](https://media.daily.dev/image/upload/s--qsFuKGv_--/t_logo,f_auto/public/noProfile)Share your thoughtsPost

[![The Daily WTF's image](https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/d21a6aa61a7244d893a3b3284df8e2ef)](https://daily.dev/sources/thedailywtf)

[The Daily WTF](https://daily.dev/sources/thedailywtf "https://daily.dev/sources/thedailywtf")

The Daily WTF is a humorous yet insightful blog that highlights absurd, puzzling, and downright biza... Read more

204 Followers

•

1.6K Upvotes

#### Would you recommend this post?

Copy link

WhatsApp

Facebook

X

New Squad

Copy linkShare with your friends

5

1

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Many Unhappy Returns","url":"https://daily.dev/posts/many-unhappy-returns-6ueuxm4pd","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/many-unhappy-returns-6ueuxm4pd"},"datePublished":"2024-05-14T10:44:51.021Z","dateModified":"2024-05-14T10:44:49.470Z","description":"The post discusses code issues found in an old C++ app, including pointer conversions, branching logic, memory leaks, and retrying failed operations.","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/8b1b05f1d37d4ce032f91ef813127d14?_a=AQAEuiZ","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/8b1b05f1d37d4ce032f91ef813127d14?_a=AQAEuiZ","isAccessibleForFree":true,"articleSection":"The Daily WTF","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"The Daily WTF","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/d21a6aa61a7244d893a3b3284df8e2ef","url":"https://daily.dev/sources/thedailywtf"},"commentCount":1,"discussionUrl":"https://daily.dev/posts/many-unhappy-returns-6ueuxm4pd","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":5},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":1}],"keywords":"c,code-review","timeRequired":"PT3M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"The Daily WTF","item":"https://daily.dev/sources/thedailywtf"},{"@type":"ListItem","position":3,"name":"Many Unhappy Returns"}]}
{"@context":"https://schema.org","@type":"WebPage","@id":"https://daily.dev/posts/many-unhappy-returns-6ueuxm4pd","comment":[{"@type":"Comment","text":"I suppose you can’t really build an enforceable code review policy out of “use common sense,” since common sense is an oxymoron.\n\n🤣🤣🤣","datePublished":"2024-05-14T13:59:21.353Z","url":"https://daily.dev/posts/6uEuXm4PD#c-p7zIxXcz7","author":{"@type":"Person","name":"Randy","url":"https://daily.dev/randy","image":"https://media.daily.dev/image/upload/s--UjV4-KkB--/f_auto/v1708097210/avatars/avatar_HXYbbGcBO38Rfv7RrCBdA"}}]}
```

