Effector: powerful and fast 5kb state manager

Effector is a state manager for any JavaScript app (React/Vue/Node.js). It allows you to manage data in complex applications without the risk of inflating the monolithic central store. Key features framework agnostic multiple stores statically typed (TypeScript/Flow/Reason) computed values (no need for memoization) side-effect management (async actions) less boilerplate by design small size fast speed Simple example Counter […]

Entity Framework, ToList vs AsEnumerable vs AsQueryable

ToList() Execute the query immediately AsEnumerable() lazy (execute the query later) Parameter: Func<TSource, bool> Load EVERY record into application memory, and then handle/filter them. (e.g. Where/Take/Skip, it will select * from table1, into the memory, then select the first X elements) (In this case, what it did: Linq-to-SQL + Linq-to-Object) AsQueryable() lazy (execute the query later) Parameter: Expression<Func<TSource, bool>> Convert Expression into […]

How to install Active Directory && Connect to AD using C#

  using System; using System.DirectoryServices.AccountManagement; namespace AD1 { class Program { static void Main(string[] args) { ActiveDirectory ac = new ActiveDirectory(); Console.WriteLine(“Login : ” + ac.Login(“[email protected]”, “x”)); Console.WriteLine(“Search For eramax : ” + ac.Search(“eramax”)); Console.WriteLine(“Search For [email protected] : ” + ac.SearchByEmail(“[email protected]”)); Console.WriteLine(“Print All Users in AD” ); ac.GetAllUsers(); Console.ReadLine(); } } public class ActiveDirectory { private static string […]

The Unstated React Service Pattern

This guide demonstrates a React Pattern for sharing global state, without requiring any of the following: 😒 Prop-Drilling 🔥 Redux 💲 MobX 🏀 Apollo Link State (The above emojis were auto-selected by Emoj) The Context API Recently I found myself at an Advanced React Training with Michael Jackson(no… not the King of Pop, the King of React Router 😉). We spent a good deal of the […]