Showing posts with label Blogger. Show all posts
Showing posts with label Blogger. Show all posts

Tuesday, June 27, 2017

What is the difference between AngularJS and Angular2?


  • First thing, Angular 2 is not the upgrade of angular 1. Angular 2 is completely rewritten.
  • Angular 2 is using Typescript which is super set of javascript (It doesn’t mean only typescript, dart also).
  • Angular 1.x was not built with mobile support in mind, where Angular 2 is mobile oriented.
  • Angular 1 core concept was $scope, and you will not find $scope in angular 2.0. Angular 2 is using zone.js to detect changes. See the below code.
  • Angular 1.x controllers are gone. We can say that controllers are replaced with “Components” in Angular 2.

The latest version of Angular 2 gives many advantages over AngularJS 1.x including better performance, lazy loading, simpler APIs, easier debugging and considerably more. AngularJS is open source JavaScript framework that can be of help with utilizing Single Page HTML for declaring dynamic views in web-apps. AngularJS has many core modules that are included within the default framework. Many of these modules have been removed from the core of Angular 2.0, which has sped up the framework's performance.
What are the differences?
  • User Input with the Event Syntax
  • Better in performance
  • Mobile oriented
  • Component-based UI
  • Controllers & Scope
  • & more
To get more detail over the Same , Read here : Difference Between Angular-2and AngularJS-1.x

Monday, June 26, 2017

Make a game with the C language

Also creating a game is the best project to do as you will be in an urge to finish the project and play the game created by YOU.

I would recommend the following games.
  • Tic-Tac-Toe - Its like “Hello World” for game development. You can make a small game using basic things like X as 0 and O as 1 with a table formatted by loops. You can have a statement which tells the status of the game. Or you can go big and use graphics and mouse controls. You can also create variations like Player vs Player and Player vs CPU.


  • Hangman - I created this game in high school but using Turbo C which I do not recommend. I just stored the name of the movies in an array and a randomized function to select a movie. The console refreshes after each try and updates the number of tries remaining and the word. I lost that project but It was super fun to play that.


  • Other games include Snake, Battleship, Betting/Gambling Games, etc. 


    Happy gaming!!

    Image source: Google Images.

Xiaomi Launches 32-inch and 43-inch Mi TV 4A in India, Price Starting At ₹13,999

After launching the Mi TV 4 in India, Xiaomi has launched two new affordable smart TVs in India. The company has introduced a 43-inch ...