I have a personal code originally wriiten in 10 years ago when I was starting coding in University. The code is basically stock price analysis tool. Recently I started to look at it again and found a few tips to improve the performance calculation and DB access heavy code. Actually, this shouldn’t be DB access… Continue reading C# Performance Improvement Experience
Category: C#
How to set up Google SMTP for NLog config
For a small volume of emails to send as a personal purpose or for a small business, it can be handy to use Google SMTP service as long as you have a Google account. It sounds easy task but sometimes it can be tricky if configuration is not properly written and the error message from… Continue reading How to set up Google SMTP for NLog config
Functional Principles in C# – method should be honest
Below are the key ideas of how to apply functional principles in C# explained in Pluralsight course by Vladimir Khorikov. Immutable Architecture Separate domain logic, Infrastructure(Persister), Service logic. Make the domain logic immutable and functional(input -> output) so as to easily unit test it. Make the infrastructure and service logic as simple as possible. Exception Use return… Continue reading Functional Principles in C# – method should be honest