Posts
All the articles I've posted.
-
OkHttp Connection Pooling and Retrofit with Multiple Base URLs
Understand OkHttp connection pooling — how it saves the DNS and TLS handshake overhead on repeat requests — and the three approaches for using Retrofit with multiple base URLs, with a decision guide for when to use one versus two OkHttp instances.
-
HTTP Methods Explained — HEAD, POST, PUT, and PATCH
Understand the purpose of HEAD, POST, PUT, and PATCH HTTP methods — when to use each, how HEAD avoids downloading a body to check metadata, how POST creates resources, and the difference between PUT replacing a full record and PATCH updating specific fields.
-
OkHttp vs Retrofit — How Android Networking Works Internally
Understand the difference between OkHttp and Retrofit — OkHttp is the HTTP engine that makes network calls, Retrofit is a wrapper that adds adapter pattern support, automatic parsing, and threading integration. Covers the history from HttpUrlConnection to OkHttp, and why Moshi is faster than Gson.
-
Android Starter Pattern and Adapter Click Listener Best Practice
Learn the Android starter pattern — a static factory method that hides Intent keys and enforces required parameters — and why adapters should never open activities directly, using a higher-order function as an item click listener instead.