DeveloperAcademy-POSTECH / DeveloperAcademy-POSTECH/2025-SSG-A1

[Week 7] Challenge: "optional"

Open
#48 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
No language data
Stars
2
Forks
1
PR merge metrics
No merged PRs in 30d

Description

## 나의 Challenge
?, !, if let / guard let, try / catch, Result를 활용해 크래시 없이 안전하게 값과 오류를 다루는 패턴을 익힌다.
잘못된 JSON 입력 등 실패 상황을 의도적으로 만들어 보고, 안전/위험 코드를 비교, 분석한다.

## 담당
@daniely7

## Guiding Questions
- 옵셔널이란 뭘까?
- 옵셔널을 언제 ?로 두고 언제 !란? 무엇이고 언제 써야 할까?
- if let vs guard let 의 선택 기준은 무엇일까?
- nil(null)을 처리하는 다른 방법들(??, 옵셔널 체이닝, flatMap 등)은 언제 유용할까?
- try, try?, try! 차이와 do-catch / Result의 장단점은?
- 커스텀 Error 타입 설계 시 어떤 정보를 담아야 할까?

## Guiding Activities
- [ ] Xcode Breakpoint & Console에서 오류/옵셔널 로그 관찰 방법 기록
- [ ] 공식 문서(옵셔널, 오류 처리 장) 요약 정리

## 새로 추가할 노드
> Optionals.md
> ErrorHandling.md

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reviewing the repository structure and the existing node format, then consult the official Swift documentation for optionals and error handling. Create Optionals.md and ErrorHandling.md covering the listed guiding questions, and include the requested Xcode Breakpoint and Console observations; the challenge is done when both nodes provide those summaries and comparisons.

Written by the indexing model from the issue text.

Assessment

Tech stack
swift
Domain
documentation
Issue type
Documentation
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.