مقایسهای بین TypeScript و ReScript
ReScript is not new. In a way it’s as old as JavaScript itself. ReScript is a rebranding of ReasonML (Facebook) and BuckleScript (Bloomberg), which wrap OCaml on both ends. The former is an interface of the OCaml syntax, while the latter makes sure to compile the AST into JavaScript. ReasonML was created by Jordan Walke, the creator of React. ReasonML still exists as a parallel project to ReScript, with a slightly different syntax and mission.
The data validated our hypothesis — of the average 9.3 million daily visits to Stack Overflow, we get fewer than 88,000 clicks to the navigation or top bar (this includes inbox, rep, profile, and search.) If you divided each individual click per visit, that’s fewer than 1% of visits navigating anywhere (and far fewer if you counted multiple clicks per visit). Our navigation is not being used by 99% of our users.
Tailwind CSS چیست؟
During the last Build conference, Microsoft has announced the next
version of Visual Studio with C# 7.3 support. This is yet another minor
language update with some quite interesting features. The main change
was related to generics, starting from C# 7.3 there 3 more constraints: unmanaged
, System.Enum
and System.Delegate
.
using System.Data.Entity; using System.Threading.Tasks; using Microsoft.AspNet.Identity.EntityFramework; using SmartMarket.Core.Domain.Members; using SmartMarket.Data; namespace SmartMarket.Services.Members { /// <summary> /// The ApplicationUserStore Class /// </summary> public class ApplicationUserStore : UserStore<User, Role, int, UserLogin, UserRole, UserClaim>, IApplicationUserStore { #region Fields (1) private readonly IDbSet<User> _userStore; #endregion Fields #region Constructors (2) /// <summary> /// Initializes a new instance of the <see cref="ApplicationUserStore" /> class. /// </summary> /// <param name="dbContext">The database context.</param> public ApplicationUserStore(DbContext dbContext) : base(dbContext) { } /// <summary> /// Initializes a new instance of the <see cref="ApplicationUserStore"/> class. /// </summary> /// <param name="context">The context.</param> public ApplicationUserStore(IdentityDbContext context) : base(context) { _userStore = context.Set<User>(); } #endregion Constructors #region Methods (2) // Public Methods (2) /// <summary> /// Adds to previous passwords asynchronous. /// </summary> /// <param name="user">The user.</param> /// <param name="password">The password.</param> /// <returns></returns> public Task AddToPreviousPasswordsAsync(User user, string password) { user.PreviousUserPasswords.Add(new PreviousPassword { UserId = user.Id, PasswordHash = password }); return UpdateAsync(user); } /// <summary> /// Finds the by identifier asynchronous. /// </summary> /// <param name="userId">The user identifier.</param> /// <returns></returns> public override Task<User> FindByIdAsync(int userId) { return Task.FromResult(_userStore.Find(userId)); } #endregion Methods /// <summary> /// Creates the asynchronous. /// </summary> /// <param name="user">The user.</param> /// <returns></returns> public override async Task CreateAsync(User user) { await base.CreateAsync(user); await AddToPreviousPasswordsAsync(user, user.PasswordHash); } } }
24.Visual Studio 2017 15.9 منتشر شد
Issues Fixed in 15.9.24
- Fixed a bug in the C++ linker missing imports when using umbrella LIBs with difference casing on postfix of DLL name.
- Fixed a bug in the ARM64 C++ compiler where the wrong values could be restored after setjmp.
- Fixed C++ compiler bug for proper folding of inline variable dynamic initializers.
- Made a change that enables Enterprise IT administrators and deployment engineers to configure tools like Microsoft Update client & SCCM to determine applicability of VS2017 updates hosted on Microsoft Update Catalog & WSUS.