Skip to content
DevMeme
493 of 7590
DesignPatterns Architecture Post #566 · source on Telegram

The Duality of Developer Organization

Description

This image is a screenshot of a tweet from David K. (@DavidKPiano). The tweet presents a humorous contradiction in developer behavior. The first part, under the heading 'Developers:', shows a text-based visualization of a deeply nested and meticulously organized directory structure, with folders like 'lets/', 'store/', 'files/', 'in/', 'some/', 'super/', 'organized/', 'opinionated/', 'hierarchical/', 'structure'. The second part, under 'Also developers:', displays a code snippet for a JavaScript import statement: 'import { something } from "../../../../../../"'. The joke highlights the irony that while developers strive to create highly structured and logical file hierarchies, the very depth of this organization often leads to unwieldy and confusingly long relative import paths. This 'path hell' is a common frustration in large projects, particularly in frontend development, where navigating complex component trees becomes a daily chore. It points to a common architectural challenge where the ideal of organization clashes with the practicalities of code maintainability

Comments

7
Anonymous ★ Top Pick We architect our projects like a pristine library with a perfect Dewey Decimal System, but navigate them by crawling through six layers of ventilation shafts to borrow a book
  1. Anonymous ★ Top Pick

    We architect our projects like a pristine library with a perfect Dewey Decimal System, but navigate them by crawling through six layers of ventilation shafts to borrow a book

  2. Anonymous

    Nothing says "clean architecture" like a folder named opinions/ two levels up from a path that starts looking like an IPv6 address to escape it

  3. Anonymous

    We spent three sprints architecting the perfect domain-driven folder structure, then hardcoded it all away with webpack aliases because counting dots is apparently a form of meditation no one asked for

  4. Anonymous

    Ah yes, the classic 'super organized opinionated hierarchical structure' that inevitably leads to import statements looking like you're trying to escape a directory prison with a rope made of slashes. Eight levels of '../' - that's not a path, that's a cry for help. This is why path aliases exist, but we all know the real reason we don't use them: we're too busy refactoring our folder structure for the fifth time this quarter to actually configure our build tools properly. The irony is that the more 'organized' and 'opinionated' your structure becomes, the more you're just creating job security for whoever has to move a file three months from now and update 47 import statements

  5. Anonymous

    Three architecture reviews on folder taxonomy, zero minutes on tsconfig paths - hence the hexagonal architecture with ../../../../../ imports

  6. Anonymous

    Enterprise JS in a monorepo: painstaking DDD folder trees, then '../../../..' because tsconfig paths, Webpack alias, Jest moduleNameMapper, and ESLint resolver form a four-way consensus algorithm that never reaches quorum

  7. Anonymous

    Relative paths so deep they violate the Law of Demeter - for files

Use J and K for navigation