اشتراک‌ها
نکات بالا بردن کارآیی برنامه‌ایی که از value types استفاده می‌کند
 best prac­tices for using value types: make them immutable; over­ride Equals (the one that takes an object as argument); over­load Equals to take another instance of the same value type (e.g. Equals(Point2D other)); over­load oper­a­tors == and !=; over­ride GetHashCode 
نکات بالا بردن کارآیی برنامه‌ایی که از value types استفاده می‌کند
اشتراک‌ها
کتاب TypeScript Deep Dive

Dive into all the details that a JavaScript developer needs to know to be a great TypeScript developer — Basarat Ali Syed  

کتاب TypeScript Deep Dive
اشتراک‌ها
چرا Babel خوبه ؟
Why Babel is different from other compile-to-JS systems like CoffeeScript and TypeScript, and how it's going to become the driving force for innovation in JavaScript. 
چرا Babel خوبه ؟
اشتراک‌ها
طراحی Entity پایه برای کلاس های Domain

How you shouldn’t implement base classes

public class Entity<T>
{

  public T Id { get; protected set; }

}

Motivation for such code it pretty clear: you have a base class that can be reused across multiple projects. For instance, if there is a web application with GUID Id columns in the database and a desktop app with integer Ids, it might seem a good idea to have the same class for both of them. In fact, this approach introduces accidental complexity because of premature generalization. 

There is no need in using a single base entity class for more than one project or bounded context. Each domain has its unique path, so let it grow independently. Just copy and paste the base entity class to a new project and specify the exact type that will be used for the Id property. 

طراحی Entity پایه برای کلاس های Domain