Testing a Go exchange API client: mocks, httptest and testcontainers
You can't hit the real Binance API in tests. ExchangeClient interface, mockgen mocks, httptest for parsing real responses, testcontainers for PostgreSQL integration tests.
Lessons learned, problems and solutions
You can't hit the real Binance API in tests. ExchangeClient interface, mockgen mocks, httptest for parsing real responses, testcontainers for PostgreSQL integration tests.
AI agrees with everything. Without a method, it amplifies your biases instead of correcting them. The protocol I built for rigorous research: primary sources only, certainty labeling on every point, and systematic counter-argumentation.
I had 47 RSS feeds. The result: two hours of scrolling per week and a Go breaking change discovered in prod six weeks too late. How I restructured my tech watch around AI, with a real bash script and an honest look at the limitations.
One Saturday afternoon, I wanted to ask Claude a few questions. Two hours later, we were discussing thermodynamics, the divine paradox and the survival instinct of machines. A look back at an unexpected dialogue.
PHP, Go, Python, JavaScript, Rust — no universal answer, but clear criteria. A pragmatic, opinionated guide for picking the right language for the job, with a quick-reference table.
How I built a custom video player for ShareBox: fragmented ffmpeg streaming, JS state machine, exponential backoff watchdog, PGS subtitles with scale2ref, and the mistakes that taught me the most.
A ticket, an unknown tool, six services to migrate including gRPC. What I wish I'd read before starting: Bruno concepts, monorepo structure, .env for secrets, multi-env local/dev/prod.
I built a buying guide for retro portable consoles with purely aesthetic CSS — scanlines, Orbitron, custom properties — without a single line of JS. The real decisions, not the basics.
PHP can do what Node.js does: jump between tasks on a single thread. ReactPHP, PHP 8.1 Fibers, and why this doesn't replace real parallelism.
Google Search Console showed 0 indexed articles after 3 weeks. A look at the fixes: JSON-LD with articleBody via output buffering, PHP-generated ToC with stable IDs, and hybrid PHP/JS crawlable pagination.