The Fibonacci Sequence Printed With Golang

I figured I would change it up a bit and get into the basics of Golang and common Computer Science study material taught in school, but often used in software engineering type positions.  We’re going to revisit a post I wrote back in 2015 regarding the Fibonacci number and generating the sequence in JavaScript.  This time I figured it would be useful to walk through how to accomplish the same using the Go programming language.

Why do I want to talk about Fibonacci related material?

Well, it is a good way to learn about a development language such as Golang and like I said previously, it would benefit you as a refresher when it comes to interviewing for a job.

(more…)

Changing A NativeScript CSS Skin At Runtime

CSS is usually a subject I avoid due to me being artistically illiterate, but recently a student of mine asked me an interesting question regarding theming an Angular 2 NativeScript application with dynamic CSS files loaded at runtime.  Given the nature of Angular 2, it becomes difficult to load files at runtime because of how Angular 2 compiles and builds projects.  NativeScript Angular 2 projects are no exception when it comes to switching a CSS skin.

So what if we want to apply a set of CSS styles on demand, but keep them separated in their own files?

We’re going to see how to switch between files to apply a CSS skin to a NativeScript Angular 2 application on demand at runtime.

(more…)

Using Google Admob In Your NativeScript Angular 2 Mobile App

I recently received a request from one of my followers for a tutorial on using Google Admob in a NativeScript Angular 2 application.  Not too long ago I had demonstrated Google Admob in a vanilla NativeScript project, but I hadn’t yet given it a shot with Angular 2.

In case you’re unfamiliar with Admob, it is an excellent way to monetize your mobile applications with advertisements.  You’ll earn revenue not only from people clicking your in-app advertisements, but also from the advertisements appearing on the screen.

We’re going to see how to use Admob in a NativeScript Android and iOS application that was built with Angular 2.

(more…)

NativeScript 101

NativeScript For The Angular 2 Developer

After months of receiving requests, I am finally pleased to announce that my course, NativeScript for the Angular 2 Developer, is now available on Udemy.  This Angular 2 and NativeScript course is similar to the previous course I released titled, NativeScript 101, with the exception that this time we’re using Angular 2 instead of vanilla JavaScript.  If you’re unfamiliar with NativeScript, it is a cross platform framework for developing native mobile applications.  There needs to be emphasis on the native part because you’re not building hybrid web applications, you’re building native mobile applications.

So what can you hope to accomplish in this particular course?

(more…)

Send Emails With Rackspace Mailgun Using NativeScript And Angular 2

Sending emails from your mobile application is often a critical aspect.  For example, what if you want to be able to collect user feedback, wouldn’t email be one of the better solutions?  Now let’s add to this scenario and say that the user doesn’t have email configured on their mobile device.  How does the user send emails to you from your application?  This is where the Rackspace Mailgun API comes into play.

The Rackspace Mailgun API is a service, which includes a free tier, for sending emails via a RESTful API.  No need for users to configure their email client and no need to maintain an email inbox.  It is great for getting the job done.

Not too long ago I wrote about using the Mailgun API in a vanilla NativeScript application.  One of my subscribers recently requested information on how to accomplish this task using Angular 2 in a NativeScript application and I thought it would make a perfect tutorial.

(more…)

Navigating A Web Application With The Angular 2 Router

I’ve been keeping up with Angular 2 since the beta releases and if you have too you’ll know that navigation has changed about one hundred times between then and the now stable release.  Navigation with the Angular 2 Router component is a tricky subject, but understanding it is necessary for pretty much every quality Angular 2 web application.

I wrote a now obsolete tutorial on how to navigate between Angular 2 routes back when Angular 2 was in beta.  Since Angular 2 is now stable, I thought it would be a good idea to share how to navigate between pages with the stable Angular 2 Router component.

(more…)

Working With Shared Providers In A NativeScript Angular 2 App

When building a NativeScript application with Angular 2, there are certain scenarios where you might want to share functions and variables across the pages of the application.  There are other scenarios where you might want to pull similar functions into a class for code cleanliness.  Both of these scenarios would find value in using Angular 2 shared providers.

Shared providers can be injected into the constructor methods of each page that you wish to use them.  The providers can act as a singleton where the data and functions are global to the application rather than local to any specific page.

We’re going to see how to create a provider for managing interactions with a database in an Angular 2 NativeScript application.

(more…)

Amazon Echo vs Google Home, My First Impressions

I don’t typically write product reviews, but since I’m a huge advocate for the Internet of Things (IoT) and smart home technologies, I think it makes sense to share some opinions.  I own an Amazon Echo and a second generation Amazon Echo Dot.  Today (November 4th), I received my Google Home that started shipping to everyone this week.

The following is my opinion between the two brands, where each succeeds and where each falls short.

(more…)

TPDP Episode #11: Continuous Integration And Deployment For The Polyglot Developer

Continuous integration (CI) and continuous deployment (CD) are terms that I hear thrown around quite frequently.  I’ve been a software developer for a long time, but it is only recently that I’ve welcomed these terms into my life.  CI and CD is the automated process of running various tasks such as unit testing or building a version controlled project.  In this episode of The Polyglot Developer Podcast, I have guest speaker Ivan Nemytchenko, from GitLab, helping me explain what continuous integration is all about and why GitLab has gone ahead and made a completely free set of tools around it.

(more…)

Use A Pre-Populated SQLite Database With NativeScript And Angular 2

I recently wrote about how to use a SQLite database within a NativeScript Android and iOS application that was built with Angular 2.  This was more or less a revisit to the vanilla NativeScript tutorial on the same subject I had written earlier in the year.  What happens when you have a massive amount of data that you’d like to save your user from needing to download before using your application?  Can a SQLite database be pre-populated and included within an application?

To keep the flow going, I figured it would be a good idea to demonstrate how to ship a NativeScript Angular 2 application with a pre-filled SQLite database rather than populating it on-the-fly.

(more…)