Category: Python Tips
-
Python Decorators for Beginners: @syntax Explained
Python @decorator syntax explained: first-class functions, closures, and why functools.wraps prevents silent bugs in production code.
-
Advanced Trading Bot Features: Risk Management and Backtesting
Avoid the Kelly Criterion trap in crypto bots. Walk-forward backtesting + slippage models reveal what actually works for position sizing.
-
Upbit Trading Bot Part 2: Market Analysis and Order Execution
Build a moving average bot on Upbit that handles API failures and slippageโlessons from real trades that lost money before they made it.
-
Building Your First Upbit Trading Bot: Setup and Authentication
Fix Upbit JWT authentication errors before they drain your account. PyJWT version gotchas and safe testing strategies included.
-
Python Poetry์์ uv๋ก ๋ง์ด๊ทธ๋ ์ด์ ์์ ๊ฐ์ด๋: ํจํค์ง ๊ด๋ฆฌ ์๋๋ฅผ 10๋ฐฐ ๋์ด๋ ์ค์ ์ ํ ๋ฐฉ๋ฒ
Migrate Poetry to uv and cut package install time by 10x. Step-by-step pyproject.toml conversion plus CI/CD updates included.
-
Python ํ์ ํํธ ๊ณ ๊ธ ํ์ฉ: Generic, Protocol, TypeVar๋ก ํ์ ์์ ํ ๋ผ์ด๋ธ๋ฌ๋ฆฌ ์ค๊ณํ๊ธฐ
Build type-safe Python libraries using Generic, Protocol, and TypeVar. Catch bugs at edit-time, not runtimeโhere's the exact pattern.
-
Python ์ ๋๋ ์ดํฐ์ yield ์์ ์ ๋ณต: ๋ฉ๋ชจ๋ฆฌ ํจ์จ์ ์ธ ๋์ฉ๋ ๋ฐ์ดํฐ ์ฒ๋ฆฌ ํจํด๊ณผ ์ค์ ์์
Python generators cut memory usage by 4 million times. Process giant files, build data pipelines, and handle infinite sequences with yield.
-
Python asyncio ๋์์ฑ ์ ์ด: Semaphore, Lock, Queue ๊ฐ์ด๋
Fix Python asyncio race conditions with Semaphore, Lock, and Queue. Real examples: API rate limiting, database pooling, producer-consumer patterns.