Category: java

The Version 6 of Angular Now Update 11/05/2018

As a part of this release, we are synchronizing the major versions going forward for the framework packages (@angular/core, @angular/common, @angular/compiler, etc), the Angular CLI, and Angular Material + CDK. All are releasing as 6.0.0 today. We made this change to clarify cross compatibility. The minor and patch releases for these projects will be issued based on … Continue reading The Version 6 of Angular Now Update 11/05/2018

Advertisements

Selection Sort in Scala-This is coding algorithm

object Sort{ def selectionSort () : Unit = { var myArray = Array(4, 7, 8, 3, 1, 9, 2, 5, 0, 6) var buf:Int = 0; var min:Int = 0; for(i <- 0 to (myArray.length-1)) { min = i // j = i + 1; for (j <- (i+1) to (myArray.length)){ if ( myArray(min) > … Continue reading Selection Sort in Scala-This is coding algorithm

Learn about the MVP programming model in android

What is the MVP model? MVP is a user-oriented GUI model, designed to facilitate unit testing and increase segregation between the data layer and the data layer in the MVC model. The MVP model allows the separation of the presentation layer (the Presenter) from the data layer, so interaction with the interface is separate from … Continue reading Learn about the MVP programming model in android

What’s New Angular 5: New features and updates?

After two major upgrades in the last 14 months, Angular - Google’s popular JavaScript framework - has released Angular 5, which arrived 1 November 2017. After missing previous release targets of 18 September and 23 October 2017, Angular 5 promises better code sharing capabilities, an updated HttpClient, faster rebuilds and an emphasis on making it easier to build progressive web apps. Some of the … Continue reading What’s New Angular 5: New features and updates?

JavaScript implicit coercion of empty arrays

JavaScript implicit coercion of empty arrays example: [] == ![] //toBoolean [1] [] == !true [] == false //loose equality round one [2] //toPrimitive([]) [3] "" == false //loose equality round two //toBoolean("") [4] false === false true explanations: 1) First there is operator precedence so ! evaluates before == Negating something calls the internal toBoolean method onto that "something" first. … Continue reading JavaScript implicit coercion of empty arrays

Sort numbers in ascending order using Python

This is Python code to sort the numbers in ascending order input: 3,0,1,4,2 out:0,1,2,3,4 Example is my: numbers = input("Enter numbers separated by a comma: ") numbers = [int(n) for n in numbers.split(',')] end = len(numbers) - 1 while end != 0: for i in range(end): if numbers[i] > numbers[i + 1]: numbers[i], numbers[i + … Continue reading Sort numbers in ascending order using Python