Understanding Higher Order Functions in JavaScript

A function is an organized block of code that is created for a specific task. It can accept and return values. The main purpose of using functions is for code reusability and organization. In JavaScript, functions can be considered ‘higher-order’. To better understand this term, we need to look at some basic concepts related to JavaScript functions. Functions in JavaScript Take a look at the following code snippet: function demo(){ console.log("This is a demo function") } demo() This is a very basic example of a JavaScript function. The name of the function is “demo” and its prints “This is a demo function!” in the console. We we can do a lot more with this function, including assigning it to a variable, or passing it to another function as a parameter. This is possible because JavaScript is a functional programming language. ...

September 8, 2020 · 5 min · 898 words · icarnaghan

Quick Intro to Express.js

If you have ever come across Node.js, then you may have heard the word “Express.js”. Express is also a part of popular full-stack web development stacks - MEAN and MERN. M, A/R, and N, meaning MongoDB, Angular/React, and Node.js, respectively are very popular in the web development community, while E, i.e. Express.js is unpopular. Many developers who work with MEAN or MERN stack don’t even know what is the exact meaning of express. So in this article, we will discuss express.js with examples. ...

September 7, 2020 · 10 min · 1949 words · icarnaghan

Up and Running in Node.js for Beginners

The word “Node.js” is very popular today in the web development community. Everyone is talking about Node.js. The IT giants, startups, everyone wants Node.js developers. But what is Node.js and why it is so popular? Simply put, Node.js is nothing but JavaScript outside the browser. Yes, you read it right. Node.js is JavaScript that runs outside the browser. Not much difference, right? But no doubt, Node.js is one of the most popular “language” today. So in this article, we will discuss everything about Node.js. Before we jump to node.js, let’s talk about JavaScript first. ...

August 27, 2020 · 14 min · 2834 words · icarnaghan

Understanding the Role of Kubernetes in Application Development

Traditional software application development depended upon a mirroring of all conditions across launch environments including the supporting hardware structure and configuration, the operating system, and the asset files. Even slight variations between the development environment and the launch environment can result in application error or failure. This model of software development and launch created needless complexity, taxing limited server resources. The development and implementation of Kubernetes has eliminated most of these issues, smoothing out the path from development and testing to launch and implementation. Understanding the role of Kubernetes in your application development is essential if you are to avoid many of these application development and launch issues. ...

August 16, 2020 · 5 min · 942 words · icarnaghan

Creating a Super Simple JavaScript Validated Form

There are times when you need to create a basic HTML form that provides validation to end users. Without leveraging a framework or additional libraries, this can be easily achieved by using JavaScript directly. This article walks through the basic steps of creating a simple validated form using basic selectors and error handling. Our requirements are: For successful submission, all fields must be entered correctly within our validation rules If one or more error occurs, the form will not submit. Feedback provided to the user A correct form with no errors once submitted, will send an email to the recipient In real life we would most likely have a call to a web service or some other piece of code that would execute once a form was submitted with no errors. ...

June 24, 2020 · 9 min · 1743 words · icarnaghan

Setting up a Local SVN Container for your AppWorks Development Environment

In my last post I walked through the process of setting up a local instance of AppWorks 20.2 using the container image from OpenText. Any development work ideally should be managed in Version Control System (VCS). The preferred VCS for OpenText AppWorks is Subversion (SVN). It has been a long time since I used SVN so I needed to quickly bring myself up to speed. Thankfully there is a handy quick start guide at Apache that walks through the various SVN commands. Once you have SVN installed, the ‘svn help’ command also provides a nice breakdown of everything you would need to know to successfully navigate an SVN repository. Since I’m already using Docker for my AppWorks installation, it makes sense that I would also want to use this platform to run my SVN server. ...

June 20, 2020 · 5 min · 966 words · icarnaghan

Standing up OpenText AppWorks 20.2 Docker Containers in 10 Minutes

The latest version of OpenText AppWorks Cloud Edition (CE) 20.2 was recently released and promises to improve “developer agility through simplification and improved visibility with a new List Designer, new Action Bar Designer and added support for full translation of layouts.” In addition this release comes available packaged in a Docker container, which makes it much easier to setup locally as a development environment or to simply try out the new features of this release. ...

June 14, 2020 · 5 min · 997 words · icarnaghan

My Language Learning Journey

I’ve always had an interest in learning Spanish. Over the years, I’ve dabbled with various language learning programs, however I never really stuck at them for long. I have probably spent more time researching language learning programs and techniques, than I have actually practiced the language. The United States Foreign Service Institute, or FSI, estimates that the Spanish language takes approximately 750 hours of study to build fluency. Unfortunately, FSI classes are reserved for Diplomats and involve dedicating 30 weeks of full-time study to reach the desired hours needed for mastery. My approach has involved a longer-term strategy involving daily practice and drills using multiple modes of learning, vocabulary building using spaced repetition, and immersion techniques. ...

May 20, 2020 · 6 min · 1144 words · icarnaghan

Spanish Language Learning Resources

This past September (2019) I decided I would make a commitment to making language learning a daily part of my life. As it so happened, my job also changed around this time, increasing my commute time and therefore bringing a new opportunity to use this time wisely. Since then, I have completed all five levels of Pimsleur Spanish and coupled my study with several other programs. My approach seems to be working at lease for me currently and my goal is to reach B1 proficiency by September 2020. This write up is to share my some of the success I’ve had with various language learning resources and communities that have informed and guided my studies. These are just my own opinions and experiences, I in no way claim to be an expert on language learning. ...

May 20, 2020 · 8 min · 1642 words · icarnaghan

Regular Expressions in JavaScript

In programming, there are many ways to work with strings. A performant way to work with them is through the use of Regular expressions, also known as Regex. By using regular expressions, you can search for a substring within a string, replace a substring within a string, and extract information from that string. Regular expressions are supported in almost every language. There can be small differences, but the general concept is the same. Javascript is one of the few languages that has direct built-in support for regular expressions. ...

November 5, 2019 · 6 min · 1165 words · icarnaghan