Our website is made possible by displaying online advertisements to our visitors. Please consider supporting us by disabling your ad blocker.

Why RxJS Is The Hottest Way To Handle Async

Observables. Native To The Web Platform?

One of the common misconceptions in the web world is that RxJS is an “Angular thing”.

What most developers don’t realize is that Observables are on their way to becoming native to the web, and if you aren’t already using them to handle asynchrony, you are not adequately preparing yourself for the future.

The Best Way To Handle Asynchrony

RxJS allows you to solve hard problems with less code, promotes maintainability, readability, flexibility, and composability. These are just some of the reasons RxJS is the hottest way to handle async right now.

Learning how to handle asynchrony the reactive way instead of using promises and callbacks will also greatly reduce the probability that you are leaking resources. And because RxJS works with any framework (angular.js, react.js, ember.js, vue.js), node, and even without frameworks, it’s easy to future proof your applications and have confidence in using this technology.

Read More

Determine If A Number Is Prime Using The Go Programming Language

Almost two years ago I wrote an article explaining how to determine if a number is prime or not using JavaScript. It turns out this article became more popular than I thought it would, and if I had to guess, it might be because it is a good computer science and overall interview question for new career developers.

I thought it would make sense to revisit the post, but this time focus on accomplishing the task with the Go programming language instead of JavaScript.

Read More

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.

Read 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 NativeScript application with dynamic CSS files loaded at runtime. Given the nature of Angular, it becomes difficult to load files at runtime because of how Angular compiles and builds projects. NativeScript Angular 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 application on demand at runtime.

Read More

Using Google Admob In Your NativeScript Angular Mobile App

I recently received a request from one of my followers for a tutorial on using Google Admob in a NativeScript Angular 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.

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.

Read More

NativeScript For The Angular Developer

After months of receiving requests, I am finally pleased to announce that my course, NativeScript for the Angular Developer, is now available on Udemy. This Angular and NativeScript course is similar to the previous course I released titled, NativeScript 101, with the exception that this time we’re using Angular 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?

Read More

Send Emails With Mailgun Using NativeScript And Angular

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 Mailgun API comes into play.

The 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 in a NativeScript application and I thought it would make a perfect tutorial.

Read More