---
title: "Discussion on \"影片筆記|如何優雅地避免程式碼巢狀\" | Hashnode"
description: "Discussion on \"影片筆記|如何優雅地避免程式碼巢狀\". 筆記來自於今天晚放學的Youtube影片，收穫非常大！但影片速度很快，希望自己把程式碼保存下來一份仔細閱讀與進行額外的筆記✏️。\n\n前言\n當我們程式碼超過三層的縮排，說明你的程式碼已經開始混亂：\n// Typescript 申請適合的職位\nfunction applyForSuitablePosition(positions: Array<JobPosition>): void {\n    fot (lef position of positions){\n        if(position...."
url: "https://hashnode.com/posts/5b2x54mh562g6kiyfowmgus9lewequmbhewcsombvwfjeeoiw8jeivow3ouelgca/65bf60acf5565ae2bf9b39f4"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [影片筆記|如何優雅地避免程式碼巢狀](https://hannah1120.hashnode.dev/5b2x54mh562g6kiyfowmgus9lewequmbhewcsombvwfjeeoiw8jeivow3ouelgca?utm_source=hashnode&utm_medium=feed)

筆記來自於今天晚放學的Youtube影片，收穫非常大！但影片速度很快，希望自己把程式碼保存下來一份仔細閱讀與進行額外的筆記✏️。 前言 當我們程式碼超過三層的縮排，說明你的程式碼已經開始混亂： // Typescript 申請適合的職位 function applyForSuitablePosition(positions: Array<JobPosition>): void { fot (lef position of positions){ if(position....

Feb 4, 2024 · 5 min read · hannah1120.hashnode.dev  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#typescript](https://hashnode.com/tag/typescript)
-   [#design-patterns-in-javascript](https://hashnode.com/tag/design-patterns-in-javascript)

## Written by

[Chi Wu](https://hashnode.com/@hannah1120)

@hannah1120

  
[View profile](https://hashnode.com/@hannah1120)

Web designer and F2E

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
