Yang LiuinThe StartupWhat’s the Secure Way to Store JWT?Web app anti-CSRF & anti-XSS playbookJul 23, 20201Jul 23, 20201
Yang LiuStabilize Your State MachinesWe all have many state machines in our software systems. Take a charging system for example. A charge can have the following states…Apr 11, 2020Apr 11, 2020
Yang LiuWhen should we use after_commit in ActiveRecordI thought it’s a common-sense but dozens of times I was told that I was wrong when I reviewing the code. So here’s the shortest yet full…Oct 23, 2019Oct 23, 2019
Yang LiuNormalize ActiveRecord::Relation interfacesDefine ActiveRecord::Relation interfaceFeb 26, 2019Feb 26, 2019
Yang LiuInterface as Business Logic — A Better Design of Form ObjectsBefore talking about Form Objects, let’s talk about refactor first. Many time we refactor the code because we’ve changed the interface of…Feb 16, 2019Feb 16, 2019