Google+

Angular/Angular2 Introduction

I spent a lot of time blogging about AngularJS in the past. Time moves on, especially on the Internet and Google is feverishly working on finishing up Angular2, which is currently in release candidate as of this writing (August of 2016).

We will take a similar approach to last time, where we developed a periodic table application that investigates different features about Angular.

One thing to note, Google has renamed Angular 2. The previous version of AngularJS, the 1.x stack was called AngularJS. The new version is now called just Angular. Part of the reason for this is to show its ability to create native mobile applications, so the JavaScript name can be a bit limiting. We will, in general, keep the same names. Angular and/or Angular 2 will refer to the current version of Anuglar. The older versions will be called AngularJS or Angular 1.x.

First though, why even upgrade at all, since the upgrade path from Angular 1.x to Angular 2? Let's highlight some reasons.

Component Based

Web development is moving towards component based development, especially with some of the emerging web standards. While those standards are not fully completed yet, Google is definitley preparing for that world. If you need further proof, checkout Google's Polymer project.

TypeScript

TypeScript is an extension of JavaScript created by Microsoft, open sourced and adopted by Google (I know!! Right?!?!) TypeScript essentially is ECMAScript 6, combined with the ability to create type and annotations. It is used to create Angular. The code samples developed by Google are all in TypeScript, with JavaScipt following later. You don't HAVE to use TypeScript, but it will make life easier.

Virtual DOM

One of the things ReactJS taught the world, is the value of a Virtual DOM. This is a virtual representation of the Document Object Model (DOM) for a HTML page. You can then work on this in memory which offers GREAT performance improvements. Google has adopted a Virtual DOM and has realized the expected performance boosts.

Those are a few of the highlights of why Angular2 over AngularJS 1.x. We will hit more as we contineu our series.


 

That Conference 2016 - Angular vs React

One of my favorite things each year is That Conference. I have been lucky enough to be chosen as a speaker each year (though I missed last year due to work commitments).

This year I talked on Angular vs React, and compared two of the most popular things going on in the world of JavaScript these days. Thanks to all of those who attended and provided engaging conversation.

For those interested, here is the presentation. I will also be uploading the code to my GitHub in a while after I button it up some more.

Thanks to all the organizer, sponsors and speakers for a great community event! I highly encourage folks to go next year, Aug 7-9.

ThatConference 2016


 

Apple WWDC 2016 Recap

In the Developer world, there are usually three big conferences each year; Microsoft’s Build, Google I/O and Apple’s World Wide Developer Conference (WWDC). Google’s I/O conference, its 10th, just wrapped up last week. Let us take a spin around some of the more interesting announcements from the conference. We have previously looked at Build and Google I/O, lets dive into WWDC which was held in June in San Francisco.

Apple WWDC 2016

Apple’s WWDC keynote this year, tended to be the more consumer facing, rather than developer facing of the other keynotes from 2016. A majority of the time was spent on items such as iOS 10 features, Apple music redesign, Apple photos, etc.

Siri – One of the big rumors heading into WWDC was that iMessage, Apple’s very popular messaging platform would be being made available to Android devices. That wasn’t announced. However, a slew of changes are coming to iMessage. The changes mostly are “fun”; items such as stickers, new emojis, videos, bubble effects etc. Given the popularity of iMessage though, we know these features will be popular. Unlike other messaging application, for example Facebook messenger, WhatsApp, etc, the usage may be limited, since as of now, you cannot take advantage of these new features for users on other platforms like Android. Given that for most iOS users iMessage means SMS, it could lead to frustration.

iMessage – here have been two OS releases of Apple Watch in its first year. However, it can still be frustratingly slow to use in day to day activities. Apple announced watchOS 3 which seems to greatly alleviate some of the performance issues. Applications were shown on the current version and the new version and were markedly faster. Apple Watch users will be excited for the new upgrade if those performance gains are realized as promised.

Apple Watch – Google announced their me too competitor to Amazon’s Alexa, a voice activated search appliance for the home. You will be able to ask Google Home things like what is the weather for the day, did the Chicago Fire win last night, etc. Pricing and availability dates were not announced. Google’s introduction video.

iOS – iOS has a new round of updates as it hits version 10. The notification screen has been greatly redesigned. Apple music has been streamlined and the maps application has been improved. 3D touch, which was introduced with last year’s new iPhones (6s, 6s Plus) is also more fully integrated into the system, especially on the notification screen.

Contextual Awareness – The interesting thing that is permeating a lot of the developer conversations as of late is contextual awareness. A platform, like Google Now, can read email, look at your calendar and contacts as well as location to provide a wealth of information. This can provide very useful and pertinent information to a user. However, the downside to this is you are giving up a some of your privacy, as the service collects your information and mines it. This has definitely been Google’s approach. Apple has a stated focus on privacy, so it is exceedingly more difficult for them to provide these kind of services, which often rely on cloud computing because the information would need to leave the phone. So contextual awareness happens within an application, like Siri, where it will be much more limited.

At WWDC, to make iOS more successful at providing contextual awareness, Apple introduced differential privacy. It is all a bit murky, and involves some crazy abstract mathematics, but it essentially takes information from your phone, randomizes it a bit to mask individual information, stores it and then can aggregate the information together.

How this actually works in the real world, remains to be seen. However, at first glance, I cannot imagine it being very successful, because the data that would be helpful to you, for example, discerning information about an upcoming flight, wouldn’t have enough other randomized data elements in the cloud for iOS to be able to find information about the flight.

Resultantly, Apple is using this new feature in four areas for iOS; emoji replacement in iMessage, predictive text in iMessage, search in Notes and search in Spotlight.

It is an interesting take at trying to be contextual and protect user privacy, I am just not sure how successful Apple will be trying to provide contextual awareness with it in their platform as they compete against happily data mining competitors such as Facebook and Google.

So that is a quick tour of 2016 WWDC. Not a lot of big announcements, but more of a refining. As phone platforms reach platform maturity, there will be less and less groundbreaking enhancements on the phone. A lot of the interesting things will be happening in the cloud services that drive these devices. Apple has a lot of catching up to do here.

This blog post originally appeared at Skyline Technologies.


 

John Ptacek I'm John Ptacek, a software developer for Skyline Technologies. This blog is my contains my content and opinionss, which are not those of my employer.

Currently, I am reading Norse Mythology by Neil Gaiman

@jptacekGitHubLinkedInStack OverflowGoogle+