When we started the Google Code project hosting service in 2006, the world of project hosting was limited. We were worried about reliability and stagnation, so we took action by giving the open source community another option to choose from. Since then, we’ve seen a wide variety of better project hosting services such as GitHub and Bitbucket bloom. Many projects moved away from Google Code to those other systems. To meet developers where they are, we ourselves migrated nearly a thousand of our own open source projects from Google Code to GitHub.
کتاب PHP Succinctly
Known for its straightforward simplicity, PHP is an open source, general-purpose scripting language oriented for web development. In PHP Succinctly, author José Roberto Olivas Mendoza guides newcomers through PHP’s basics, which includes deployment, programming themes such as variables, decision making, arrays, functions, and databases, and the creation of a functional webpage that will connect to a database. By the end, you’ll be ready to join the vast community of PHP users around the world.
- Introduction to PHP
- Deploying PHP
- PHP Basics
- Functions and File Inclusion
- Files and Databases
- A Contact List Website
- General Summary
- General Conclusions
کتاب C# Smorgasbord
Aurelia is one of the best frameworks that we have ever seen in terms of software design, hence, we decided to write a bunch of tools for its developers to pave the way for further usage.
aurelia-toolbelt is that, in which we tried to gather the best libraries in Javascript world together in aurelia fashion. Writing custom-elements, value-converters, and so on. We tried not to invent the wheel, so most of the work is a wrapper, or bridge( am not sure whether the way that we coded can be called bridge or not), around other libraries.
-
Its is utterly important for us to provide a link as a reference to the libraries used, or inspired from, so that other developers can visit their product and decide on their own to use which, besides it's one way that we can respect the time and effort of those programmers.
-
All libraries used in aurelia-toolbelt are open-source and free of charge; most of which are MIT , however we will provide definition whenever it differs.
GitHub : aurelia-toolbelt
NPM : aurelia-toolbelt
Twitter : aureliatoolbelt
PowerShell 7.1 و استفاده از NET 5.
The preview release of PowerShell 7.1 includes .NET 5 preview 1. Starting with PowerShell 7.0, devs have shifted to align with .NET’s release and support life-cycle more closely. PowerShell 7.1 is expected to become available within a week or two of .NET 5’s release date of winter 2020 and align with their annual release cadence going forward.
C# 8.0 - Nullable Reference Types
تغییرات نحوهی تعریف موجودیتها در C# 8.0
تا پیش از C# 8.0، برای تعریف فیلدهای نال نپذیر و نال پذیر در موجودیتهای EF Core، به صورت زیر عمل میشد:
public class Person_BeforeCS8 { [Required] public string FirstName { get; set; } // NOT NULL public string MiddleName { get; set; } // NULL }
public class Person_AfterCS8 { public string FirstName { get; set; } = null!; // NOT NULL public string? MiddleName { get; set; } // NULL }
مزیت این روش نسبت به Person_BeforeCS8 این است که اینبار علاوه بر نالنپذیر تعریف شدن فیلد FirstName، نحوهی استفادهی از آن در برنامه (عدم انتساب نال به آن) نیز تحت کنترل کامپایلر قرار میگیرد که پیشتر با ویژگی Required چنین امری میسر نبود.
بنابراین در موجودیتهای برنامهی مبتنی بر C# 8.0، دیگر نیاز به استفادهی از ویژگی Required نبوده و نالپذیری با عملگر ? مشخص میشود.
کار با وابستگیها و ارتباطهای نالپذیر
فرض کنید یک چنین کوئری را در EF Core 3.0 و C# 8.0 نوشتهاید:
var parentPosts = db.Posts.Where(p => p.ParentPost.Id == postId).ToList();
var parentPosts = db.Posts.Where(p => p.ParentPost!.Id == postId).ToList();
You may have noticed it already, but when you create a console application with Visual Studio 2019, the default runtime is not .NET 5 but .NET Core 3.1! Why ? Because .NET 5 is not LTS and therefore Microsoft has intentionally chosen to offer the latest LTS version of .NET by default, ie .NET Core 3.1.