<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/the-big-family-ufhun8a2y" -->

---
title: The Big Family | daily.dev
description: A reader-submitted PHP horror story showcases a 400+ line block of deeply nested, triple-duplicated code that fetches 'options', 'children', and 'siblings'...
canonical: https://daily.dev/posts/the-big-family-ufhun8a2y
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: The Big Family | daily.dev
og:description: A reader-submitted PHP horror story showcases a 400+ line block of deeply nested, triple-duplicated code that fetches 'options', 'children', and 'siblings'...
og:url: https://daily.dev/posts/the-big-family-ufhun8a2y
og:image: https://api.daily.dev/og/posts/uFhuN8a2Y.png
og:image:alt: The Big Family
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# The Big Family

**[The Daily WTF](https://daily.dev/sources/thedailywtf)** · 15 min read · 0 upvotes · 0 comments

## Summary

A reader-submitted PHP horror story showcases a 400+ line block of deeply nested, triple-duplicated code that fetches 'options', 'children', and 'siblings' from a database using string-concatenated queries, meta-programmed property access for localization, and a mountain of copy-pasted cost-formatting logic. The code is dissected line by line, highlighting SQL injection risk, dangerous dynamic property access, string-based date storage, and total absence of functions or abstraction despite three nearly identical nested blocks.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://thedailywtf.com/articles/the-big-family>

## Similar posts on daily.dev

- [A Random Article](https://daily.dev/posts/a-random-article-kigeqrvkp) · The Daily WTF · 0 upvotes · 2 comments
- [Classic WTF: One-and-a-Half-Tiered Application Design](https://daily.dev/posts/classic-wtf-one-and-a-half-tiered-application-design-u5pu5ycfn) · The Daily WTF · 1 upvotes · 0 comments
- [Once again processing 11 million rows, now in seconds](https://daily.dev/posts/once-again-processing-11-million-rows-now-in-seconds-oqf9cnfsn) · stitcher.io · 98 upvotes · 1 comments
- [Why Your Software Sucks: Inheritance](https://daily.dev/posts/why-your-software-sucks-inheritance-pnnmgu4k8) · Aaronontheweb · 28 upvotes · 3 comments

---

Tags: [#php](https://daily.dev/tags/php), [#sql](https://daily.dev/tags/sql)

[View this post on daily.dev](https://daily.dev/posts/the-big-family-ufhun8a2y)

```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":"The Big Family","url":"https://daily.dev/posts/the-big-family-ufhun8a2y","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/the-big-family-ufhun8a2y"},"datePublished":"2026-08-27T11:38:05.522Z","dateModified":"2026-09-14T07:20:03.871Z","description":"A reader-submitted PHP horror story showcases a 400+ line block of deeply nested, triple-duplicated code that fetches 'options', 'children', and 'siblings'...","image":"https://media.daily.dev/image/upload/s--ZrL_HSsR--/f_auto/v1722860399/public/Placeholder%2006","thumbnailUrl":"https://media.daily.dev/image/upload/s--ZrL_HSsR--/f_auto/v1722860399/public/Placeholder%2006","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":0,"discussionUrl":"https://daily.dev/posts/the-big-family-ufhun8a2y","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"php,sql","timeRequired":"PT15M"}
{"@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":"The Big Family"}]}
```

