One of the main selling-points of using blockchain technology is security. Many people rave about it, but how exactly does this often confusing technology ensure transactions are authentic? Let’s find out.

First off, every Ethereum transaction features 3 main properties: From, To and Value. Makes sense, right? In its simplest form, a transaction is an amount (value) of anything (MONEY, Chocolate!, Krabby Patties, etc.) going from one person to another. If that was enough to know that a transaction was valid, I wouldn’t be writing this. …

Photo by Kevin Ku on Unsplash

There’s more than one way to skin a cat. While not the best metaphor, admittedly, it always holds true in programming. Don’t worry, though, this isn’t a disgusting article about cat-skinning methods and which are best. It’s a disgusting article showcasing another, more “Angular” way to set auto-focus on input fields throughout your Angular application.

First thing’s first, you’ll want to fire up a new Angular application.

ng new angular-directive

Next, we’ll be creating an Angular Directive. A directive, or attribute directive, changes the appearance or behavior of a DOM element. There are 3 kinds of directives: Components, Structural and…

Photo by Stefan Cosma on Unsplash

Lately, a requirement came up for me to auto-focus an input field in one of our Angular sites. Normally, this would be a quick and easy task, and ultimately it wasn’t so hard, but it definitely wasn’t as straight-forward as you might think.

In Angular, it’s not as easy as just setting the “autofocus” on an HTML element, especially since Google Chrome tends to disable auto-focus. With recent Chrome updates, if you try to use the “autofocus” property on a field, you might see two things:

  1. It doesn’t always work.
  2. You might see a message in your console like this:

Photo by Bench Accounting on Unsplash

One of the many, often forgotten, things we learn at the beginning of our careers as developers is that we should always try to write DRY code. This may sound silly, but it’s an acronym that means Don’t Repeat Yourself. What this means is, if we have to repeat functionality in various places, it might be easier, at least initially, to copy the code and place it everywhere it’s needed. What happens when that logic needs to be adjusted, though? You would have to revisit everywhere you pasted it, and modify them all to reflect the changes. That’s not very…

Photo by Alvaro Reyes on Unsplash

Where I work, we’re pretty new to the idea of an API Economy, micro-services, etc., so we, obviously, don’t know all we need to know yet about APIs and how to best develop and test them. Just last week, something struck me as peculiar. Two members of our Quality Assurance team were running tests to replicate behaviors seen with an endpoint when it receives several concurrent requests. This proved quite difficult, especially because the testing was rather manual. They were literally trying to submit requests at the same time by clicking on a button on our front-end application. When I…

Photo by Neringa Šidlauskaitė on Unsplash

I know what you’re thinking, “Another debugging article?!”. Well, that’s only half right. This time, we’re going to learn how to build an apk file for an Ionic Android app, run it on a USB-connected Android device, and see all the logs of the phone in your terminal window. It may sound like a lot, but with just a few simple steps, you’ll be up and running in no-time at all!

Why Not Just Emulate?

When working with Android apps, you have the option of running the app on an emulator on your computer. This is especially useful when you…

Photo by insung yoon on Unsplash

We always hear about innovation as a bi-product of technology and software. That’s one word that always seems to come up in conversation, and rightfully so. Technology tends to promote innovation. Just look at companies like Tesla, who are at the forefront of the electric car and battery industries, thanks to their technological innovations. One equally-important word that doesn’t get as much love, though, is “automation”. Automation, while often met with fear, is an important goal of technology and software development. If we are not also aiming to automate repetitive, rather manual, tasks, then what’s the point? Automation is especially…

Photo by Oladimeji Ajegbile from Pexels

The Headache

Chances are, if you’ve ever had to maintain a single application on a server, you’ve spent hours, maybe even days, looking like our friend over there. As tough as that may be, the reality is that a server will be used to host multiple applications, not just one. If you’re using Node.js to power your applications, as is the case with apps made using Angular, React, Ionic, etc., this can create quite a predicament. Consider deploying applications that rely on specific versions of Node.js, like v9.x.x, for instance. Everything is fine as long as all apps that are deployed to…

If you subscribe to the Google Suite of products (G-Suite), chances are you will have come across any number of Google’s handy apps, like Google Sheets, Scripts or Forms. The latter, in particular, can be an easy way to collect data, like user-feedback, or distribute quizzes to a group of students. Google Forms offers users the ability to drag and drop questions in the form of text boxes, multiple choice options, dropdown lists and more. This makes it easy for you to create simple forms with a few questions for users to answer. In a perfect world, that would be…

Photo by Hello I’m Nik 🇬🇧 on Unsplash

This article is not meant to introduce you to the fantastic capabilities of web applications. If it were, it would be a few years too late. Web application are nothing new. They have been around for quite some time now and are one of the main ways we interact on the internet. Even now, while you’re reading this, you’re using the Medium web app. Rather, let’s engage with what it means to be a “progressive” web app.

What IS a Progressive Web App?

A Progressive Web App (PWA) is a web application, delivered over the web, that looks and feels like a mobile or native application…

David McIntosh

Interested in Computer Science, education and world domination.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store