New Developers Meet Spaghetti Code
New developers: "I can't wait to work on a real, professional codebase and leave my spaghetti code behind!" The codebase: How to cope with a fragile React codebase Needs Help I'm currently working on a codebase of ~60K LOC and around 650 useEffect calls. Many (if not most) of these effects trigger state updates - those state updates in turn trigger effects, and so forth. There are almost definitely cycles in some places (I've seen at least one section of code trying to "break" a cycle) but most of these cycles eventually "settle" on a state that doesn't generate more updates.
Надпись шутливо показывает, как новые разработчики мечтают перейти к профессиональному коду, но сталкиваются с хаотичной React-кодовой базой. Панчлайн — описание бесконечных циклов useEffect и обновлений состояния, в которых сложно разобраться и которые приходится буквально «успокаивать».
software code / программный кодReact codebase / кодовая база ReactReddit post / пост на Redditblack background / чёрный фонwhite text / белый текстred help label / красная метка помощиdeveloper joke / шутка о разработчикахstate updates / обновления состоянияuseEffect calls / вызовы useEffectcode cycles / циклы в коде
- @gentoomemes / 7508 2023-11-22
- @dev_meme / 5707 2023-11-26
- @right_wing_dev_squads / 12628 2025-08-02
- Type
- image
- Size
- 759×800 · 113.2 KiB
- Mood
- sarcastic, relatable
- Language
- en
- Added