Shivprasad Koirala Torrent

Technical vocabulary in IT industry are sometimes very confusing and “Concurrency” and “Parallelism” is one of them. Many developers think “Concurrency and parallelism means executing at the same time” which is right 50% but with one big difference:-. Concurrency gives you a feel of parallelism and parallelism as the name implies is actual parallelism.Feel of parallelism means you execute multiple tasks on the same core and the core switches context between tasks and serves them. You can also term this has timeslicing / over lapping time period because your single core is just dedicating some time to one task and then some time to other.Actual parallelism means you execute multiple task on multiple cores parallely. We do not want PERFORMANCE here we want that physiologically the end user feels both tasks are happening simultaneously.We want to just beat the human eye capability of 100 FPS and give an illusion of parallelism without stressing our computer resources. But let’s say we want toprocess big excel files with million records then yes we would love to have actual parallelism to achieve performance.In order to achieve concurrency we need to compose our application logic independently. For instance let’s say you want to process employee data where you want toincrement the salary by x% and bonus by x%.

Nov 2, 2015 - Update is that Shivprasad Koirala.net interview question book has launched. We will now continue this quiz from 4th June 2016, Winner will be.

So you can decompose the application in to logical units by following different designs:-Design 1. Divide data in to 50% size each. Process each 50% as separate unit.Design 2. Process bonus calculation as separate unit. Process salary calculation as separate unit.Design 3. Divide data in to 50% size each. For every 50% data process bonus calculation separately and salary calculation separately.There can be many such designs and combination.

So when you say your application is supporting concurrency your application should be composed in to smallindependent units.Now you take these units and run on one core (Concurrency) or you run on multiple cores (Parallelism). So concurrency is about design while on parallelism we talkmore from hardware perspective, 2 core, 3 cores and so on.If you try to run every concurrent code as parallel you have resource starvation unnecessarily. There no straight answer to this as every project is different, developers are of different mindset and architecture have their own though process.But whatever it is you will end up with some kind of nearby folder structure for angular as shown below:-.

You will need two root folders one for the server code and the other for client code. The client code folder sometimes is also named as “app”.

If you have a big project then inside in the client folder you can create sub folder which represent modules of your project. Normally developers divide project in modules for better management so these subfolders represent those modules. In this those module folder you can have separate folder for component, model, module and routing. A common folder is also needed where in you can push your common utilities like common pipes, filters, http components, injectables and so on.

Server folder will have its own folder structure depending on whether you are doing ASP.NET or JSP or PHP. In this discussion we will restrict only to client side angular folder structure. When you are doing development in Angular, Node NPM is your tool for package management. In simple words we have a “package.json” file and all dependencies are listed inside it.

When you are doing NPM you will always find “package-lock.json” file.So in this we will unleash the importance of this lock file.To understand the importance of lock lets understand how software versioning works.Most software versions follow semantic versioning. In semantic versioning, versions are divided in to three distinct numbers as shown in the image below.The first number is termed as “major version”, second “minor version” and third “revision”.Major version: - Any increment in major version is an indication that there are breaking changes in the software functionality.

It’s very much possible that the old code will not work with these changes and have to be tested properly.Minor version: - This version is incremented when we add new features but the old code still works.Revision:- This version is incremented when we are just doing bug fixes. So there are no new functionalities added, no breaking changes and back ward compatible with old code.NPM follows semantic versioning but it also has some more special characters like “^”, “”, “” and so on. They dictate how NPM get latest should behave for Major and Minor versions.For these formats 3 formats are very primary let’s understand each them.Exact (1.6.5), Major/Minor ( ^1.6.5) or Minor(1.6.5).Exact (1.6.5): - This will do a get latest of exact version 1.6.5 not more or not less. If that version is not available it will throw up an exception.Major/Minor(^1.6.5): - The carrot sign will get minimum 1.6.5 and if there are any higher MINOR / REVISION versions it will get that.

It WILL NEVER GET HIGHER MAJOR VERSIONS. So if 1.6.5 has 1.6.7 it will get that, if it has 1.7.7 it will that, but if it as 2.0 it will NOT get that.Minimum or lower (1.6.5): - The tilde sign will get HIGHER REVISIONS. For if 1.6.5 has 1.6.7 it will get that, but if it has 1.7.5 it will not be installed, if it has 2.0 it will not be installed.As discussed in the previous sections package.json has “^” and “” versioning mechanism. Now suppose in your package.json you have mentioned 'jquery': '^3.1.0'and Jquery has a new version “3.2.1”.

Shivprasad koirala .net book pdf

Adobe sans mm. So in actual it will install or in other words LOCK DOWN to “3.2.1”.So in package.json you will have “^3.1.0” but actually you will be using “3.2.1”. This entry of actual version is present in “package-lock.json”.

So package lock files have the EXACT versions which are used in your code.Below is the image snapshot of both the files.Do not miss our Learn Angular Step by Step in 8 hours video training series. “” is a C# operator while “Equals” is a polymorphic method. So in other words “” is a language feature while “Equals” is an object oriented programming feature which follows polymorphism.Now comparison is of two types one is purely based on content and reference, means computer based comparison and other is based on semantics.

Semantics means the actual meaning of a thing. ContentsThis complete article is a guest post written by Mr. Prathamesh mestry.

If you think he is doing a good job send him a silent thanks to his FB.In part 1 we saw basics of how to start MVC. In this session we will see model binder and validations. In validation we will do server side validations using data annotations and client side using Jquery.In case you are completely new to MVC we would suggest you to watch this video series Learn MVC in 16 hours given in the below youtube video.Model binder helps to connect the UI controls to the model objects of MVC. In the previous article our UI text box names where same as customer class names so we did not have issues. But what if you text box names are different from class names.For example below is a customer UI which has text box names start with “txt” and class property names are without word “txt”.

ContentsThis article series is targeted for freshers who want to learn ASP.NET MVC. So if you are senior then I would suggest to start from this.So in this two partarticle I will be creating a simple student data entry screen using ASP.NET MVC, ADO.NET and Jquery. I have used the below youtube video for reference purpose.

And would encourage any new ASP.NET MVC learner to first see this videoto get a good kick start.I have broken this tutorial in to two parts. In part 1 we will see what we need to start MVC, we will learn the basics of creating controller, models and view and then we would create a simple student data entry screen and see how it works with the HTTP Post and submit.In the next article we will learn validations both client side and server side and also we will looking to how to interact with SQL Server using ADO.NET.For doing ASP.NET MVC the first thing we need is visual studio. So go ahead and install visual studio from the below link.