Ahmet Yakar·Nov 3Every Field Is Atomic. The Balance Is Still Negative.No lock anywhere, and the account still overdraws. What compare-and-set does, what it actually compares, and when it runs your code twice.
Ahmet Yakar·Sep 16Explicit Locking in PostgreSQLTwo ordinary UPDATEs are enough for a deadlock. What row locks actually do, and who decides which transaction dies.
Ahmet Yakar·Aug 21synchronized or ReentrantLock? Neither Prevents DeadlockFour conditions cause a deadlock. You only need to break one.
Ahmet Yakar·Aug 16MVCC — How PostgreSQL Actually Implements IsolationRow versions, snapshots, and why two SELECTs in one transaction can disagree.
Ahmet Yakar·Aug 3The Program That Refused To StopVisibility, reordering, happens-before, and what volatile actually costs.A response icon2A response icon2
InHAVELSANbyAhmet Yakar·Dec 26, 2023Database Transactions and Spring’s Way of Managing ThemIt is time to learn Database Transactions and Spring’s Transaction Management.A response icon1A response icon1
InHAVELSANbyAhmet Yakar·Oct 30, 2023The Best Friend of equals() method: hashCode()The article has tons of information about the friendship between equals() and hashCode() methods. Though, it is mainly about hashCode().
InHAVELSANbyAhmet Yakar·Feb 22, 2023How to Write equals() in JavaAn article to understand the importance of equals() method in Java. It provides mastery details of implementation for it.
InHAVELSANbyAhmet Yakar·Apr 15, 2022Testing Private Methods!Private methods. To test or not to test? That is a serious question.