Angular State/Country Directive

John Holland Angular, Articles, JavaScript, Single-Page Application Leave a Comment

A Lesson In ROI: Scratch vs. Adapt Existing Angular Code

On a recent client project, I needed to develop an Angular front-end for a form that included address information. As part of the address information, there were State and Country fields. I knew I needed to make these select lists, because from a UX perspective, it would be crazy to leave them as regular old text inputs. I knew I wanted to create directives to implement these select lists. I also knew I probably wasn’t the first developer to ever want to do this.

In this blog, I talk about a decision that all developers face every day: how to solve programming problems in the best way with the best use of time. The scenario weโ€™ll talk about shows the use of Angular directives for creating select lists for country and state. In doing so, it provides a good understanding of Angular directives as one possible way they can help make Angular development great.

Converting Enterprise Applications to TypeScript

Clayton Terry Articles, Development Technologies & Tools, JavaScript, Single-Page Application, TypeScript Leave a Comment

We have all been there: some new technology comes out and we know it would improve our maintainability. But we can’t use it. We already picked a technology, it is already implemented, and we can’t change it now. We are stuck.

TypeScript does not work like that. TypeScript is JavaScript, and JavaScript is TypeScript. What this means is any existing files you have are compatible with any new file you add.

So why waste time changing if it’s all the same anyway? TypeScript has some great advantages that JavaScript does not. In this blog I will introduce some of those advantages, as well as some troubleshooting tips for if you run into issues when you choose to convert to TypeScript…

Building Applications Using the backbone.khs Framework Extension

John Boardman Articles, BackboneJS, Development Technologies & Tools, JavaScript, Node.js Leave a Comment

Backbone is a very powerful application development framework. However, it can be a little “close to the metal” in terms of how much work is needed to produce a working application with it. I see Backbone as a low level framework that could use some help in making it a bit easier and faster to use.

Keyhole has released an extension to help! The backbone.khs framework extension npm module (available by clicking the link) does its best to minimize the work necessary to get a Backbone application up and running.

The extension makes it easier to deal with:
โ€ข browser history
โ€ข root level non-Model Object implementation
โ€ข caching
โ€ข session support
โ€ข regions (which break pages up into more workable segments)
โ€ข a top-level Application object to manage the application
โ€ข modules to help with page and URL routing
โ€ข a Backbone View extension to seamlessly integrate Backbone Stickit and make Marionette templates easier
โ€ข a Collection View to enhance working with groups of items.

In this blog, I’ll describe these enhancements with some code examples…

Using Spring Integration In Conjunction With Spring Batch

Mark Fricke Articles, Development Technologies & Tools, JavaScript, Spring, Spring Batch, Spring Boot 6 Comments

Recently I was working on a development project for a client focused on Spring Batch. The program required a pull of the SFTP directory for an encrypted file, decryption of that file, starting of the Spring Batch program, and archive of that file.

Initially, my first thought was to use a shell script to perform all the tasks. Then one of my colleagues suggested Spring Integration; I thought this was great opportunity to learn and get my hands dirty with something new.

In this blog, I will show an example of Spring Integration configuration code, break it apart, and show how each part works.

Spring Integration turned out to be a simple solution to my clientโ€™s needs. Using Spring Integration and Spring Batch with Spring Boot, I was able to have a single deployable jar that included everything to run the application. I no longer needed separate deployments for the shell script, and batch process and all code is one Java project.

My Reaction To React

David Pitt Articles, Development Technologies & Tools, JavaScript, React, Tutorial 3 Comments

We at Keyhole have been helping our clients adopt JavaScript-based single-page applications for over five years. We have been impressed with the adoption and advancement of the ever-changing JavaScript ecosystem.

Server side, headless JavaScript (Node.js) has led to good tooling and packaging options along with server side remaining available. Additionally, the new ECMA6 standard has turned JavaScript into a viable general purpose programming language, that is arguably, on the same plane as C# or Java. It certainly has a large number of available frameworks and tooling options.

React differs from the other frameworks Iโ€™ve worked with in a handful of ways. In this blog, I will show tangible examples of Reactโ€™s unique features and capabilities, particularly how it handles HTML-based Components.