In this article, I’ll show you string processing technique. Read string from field and split it into multiple smaller parts. After some processing of each string, merge them into a string to replace original string from field.
Implement Circuit Breaker with Polly.NET
What is Circuit Breaker? Circuit Breaker Pattern is a programming pattern to resilient error handling. When a service your application using is down or has no response, any further request to that service should be ignored. If an application trying to recovery unanswered service repeatedly, chances are that your application becomes unresponsive, too. Create Circuit... Continue Reading →
Upgrade the old VS.NET 2003 project!
I finally accomplished to migrate the old project that is based on Visual Studio.NET 2003. It is built with the Visual Studi0 2013 now. I need to fix some codes and project’s settings for the migration. Fortunately, almost codes work well, and the application built by Visual Studio 2013 runs without problems. It must be... Continue Reading →
닷넷 컬렉션 동작의 이해
ToArray()와 ToList()의 실행 원리 ToArray와 ToList함수는 파라미터로 받은 enumerator 인터페이스를 ICollection 인터페이스로 타입 변경을 시도하여 ICollection의 CopyTo 함수를 사용하도록 한다. 컬렉션 인터페이스를 획득할 수 없는 경우, enumerator의 MoveNext를 사용하여 동적으로 배열의 크기를 늘리면서 아이템을 (레퍼런스) 복사한다. 컬렉션 인터페이스에서 새로운 컬렉션을 생성하는 경우, 컬렉션을 복사하는 과정에서 배열의 크기가 동적으로 변경되지 않도록 하기 때문에 불필요한 메모리 할당과... Continue Reading →
데이터베이스 리팩토링에 대한 오해
모델 변경으로 인한 위함과 위험을 벗어나기 위한 유혹 특정 테이블의 컬럼 크기를 변경하는 작업과 같이 데이터베이스 모델을 변경하는 경우, 데이터 레이어에 해당하는 모듈의 재 빌드 및 이들 모듈을 사용하는 모듈들이 정상적인 동작 여부를 확인하기 위해 관련 모듈들의 기능을 점검할 필요가 있다. 심지어 운영 환경의 경우에는 모델 변경에 의한 영향도 뿐만 아니라, 변경에 의해 예상하지 못한 문제를 발견하여... Continue Reading →