Srikanth Sastry
~/category/professional/
Archives
Publications
PERSONAL
PROFESSIONAL
PROFESSIONAL
Const Refs vs. Raw Pointers: Fixing Shared Pointer Reads
Don't pass `shared_ptr
` by value unless you need ownership semantics. Prefer `const T&` for read-only access, or `const std::shared_ptr
&` if you need to keep smart pointer semantics—without paying the refcount tax. Avoid raw pointers unless you're absolutely sure they're the right tool.
Read More ->
More Posts
PROFESSIONAL
Cyclomatic Complexity: How Low Can You Go?
17/6/2025
PROFESSIONAL
TDD for Bug Fixes
11/6/2025
PROFESSIONAL
Let Sleeping Engineers Lie: Why Your Alerts Should Match Your SEVs
7/6/2025
PROFESSIONAL
The Law of Demeter and unit tests
22/7/2022
PROFESSIONAL
'Privatize' your classes for better unit testing
11/7/2022
PROFESSIONAL
Tests should be isolated from each other; not coupled
3/7/2022
PROFESSIONAL
In unit tests, I favor Detroit over London
26/6/2022
PROFESSIONAL
Defining unit tests: two schools of thought
18/6/2022
PROFESSIONAL
Primary attributes of unit test suites and their tradeoffs
13/6/2022
PROFESSIONAL
The big WHY about unit tests
6/6/2022
PROFESSIONAL
Unit test the brains and not the nerves
31/5/2022
PROFESSIONAL
Mocks, Stubs, and how to use them
25/5/2022
PROFESSIONAL
DRY unit tests are bad... mkay
17/5/2022
PROFESSIONAL
Do not index on test coverage metrics
29/4/2022
PROFESSIONAL
Beware of using patch.object to test your Python code
28/2/2022
PROFESSIONAL
Reuse Code, Not Objects
17/7/2021
PROFESSIONAL
Code reuse can prevent bugs
20/12/2020
PROFESSIONAL
Tale of two departures
2/3/2020
PROFESSIONAL
Donts of processes for upward communication
11/2/2020
PROFESSIONAL
Responding to concerns as a people manager
1/1/2020
PROFESSIONAL
Git may not be the best for SaaS companies
29/12/2019
PROFESSIONAL
When should you build for survival?
21/8/2019
PROFESSIONAL
Are you building for Survival or Excellence?
15/8/2019
PROFESSIONAL
Object Composition for Service Migration
24/1/2019
PROFESSIONAL
folly:Future, onTimeout(), and a race condition
18/1/2019
PROFESSIONAL
Scripts and their undo
11/1/2019
PROFESSIONAL
Merits of unit tests — part 5
28/12/2017
PROFESSIONAL
Unit tests FTW! — Part 4
28/11/2017
PROFESSIONAL
The merits of unit tests — Part 3
22/11/2017
PROFESSIONAL
The merits of unit tests — Part 2
13/11/2017
PROFESSIONAL
My code is bugfree! Why should I unit test?
1/11/2017
PROFESSIONAL
Airfare booking and pricing, demystified!
16/5/2015
PROFESSIONAL
Solvability-based comparison of failure detectors
1/10/2014
PROFESSIONAL
Stabilizing Dining with Failure Locality 1
4/2/2014
PERSONAL
Moving to Google
23/4/2013
PROFESSIONAL
Wait-Free Stabilizing Dining Using Regular Registers
18/1/2013
PROFESSIONAL
Leader Election Using Loneliness Detection
11/10/2012
PROFESSIONAL
Asynchronous Failure Detectors
16/5/2012
PROFESSIONAL
Failure Detectors Encapsulate Fairness
17/2/2012
PROFESSIONAL
A successful defense
17/2/2011