How to Code a Navigation Drawer for an Android App

What You’ll Be Creating The material design team at Google defines the functionality of a navigation drawer in Android as follows: The navigation drawer slides in from the left and contains the navigation destinations for your app. An example of a popular Android app that implements the navigation drawer is the Inbox app from Google, which Read More

Android Things: Adding Google Assistant

With the growth of the Internet of Things (IoT), developers and engineers have had to rethink how users interact with devices on a day-to-day basis.  While screens work well for websites and most apps, devices that interface with the real world can be a bit more tedious to operate if you have to use multiple Read More

Design Patterns for Cocoa: MVC and MVVM

Design patterns make your app’s code more modular and forgiving when it comes to bug fixes and changes. In this article, you’ll be learning about the MVC (Model-View-Controller) and the MVVM (Model-View-ViewModel) design patterns. Although design patterns (also known as architectural patterns) are key for the development of scalable Cocoa Touch apps, there is a Read More

Introduction to Forms in Angular 4: Writing Custom Form Validators

This is the third part of the series on creating forms in Angular. In the first two tutorials, we used Angular’s template-driven and model-driven approach to create forms. However, while detailing both the approaches, there was something that we didn’t cover—custom validator functions. This tutorial will cover everything you need to know about writing custom Read More

Elixir Metaprogramming Basics

Metaprogramming is a powerful, yet pretty complex technique, that means a program can analyze or even modify itself during runtime. Many modern languages support this feature, and Elixir is no exception.  With metaprogramming, you may create new complex macros, dynamically define and defer code execution, which allows you to write more concise and powerful code. Read More

How to Use the Android ListView Component

Introduction Lists of related items are needed for almost every app. An example of this is your Gmail app, which displays a scrollable list of messages. To add this functionality to your app, make use of the Android ListView component. In this tutorial, you will build an app that uses ListView to display a list Read More

Building Games With Python 3 and Pygame: Part 2

Overview This is part two of a five-part series of tutorials about making games with Python 3 and Pygame. In part one, I introduced the series, covered the basics of game programming, introduced Pygame, and examined the game architecture.  In this part, we’ll look at the TextObject class used to render text on the screen. Read More