Azure App Modernization and Innovation Day by Keyhole Software

[Video] Azure App Modernization & Innovation Day with Keyhole & Microsoft: Remote, 4/15

Keyhole Software .NET, Cloud, Community, Company News, Educational Event, Keyhole, Modernization, Videos 1 Comment

We are excited to announce Keyhole Softwareโ€™s partnership with Microsoft to sponsor Azure App Modernization and Innovation Day on April 15, 2020.

During this free community event, attendees will have the opportunity to learn about Azure developer services and the latest on industry trends from Azure application development experts.

The agenda for the day will include three presentations with topics such as Azure App Services, Serverless Computing, Microservices & Containers, DevOps on Azure, AI for Developers and more!

Expression Parser with Antlr4

An Antlr4-Based Expression Parser

Lou Mauget Articles, Development Technologies & Tools, Java, Programming, Python 1 Comment

In this blog, weโ€™ll present a simple arithmetic expression parser implemented through an Antlr4 parser generator. It will be able to take in an input string (such as 2+4+-4+-2*10%9*7) to produce the result (-12.0).

You may be thinking, “Great, but whatโ€™s the point?” Well, to answer your question, as simple as this example may seem, the principles involved actually extend to use cases such as DSLs, transpilation, and anything else expressible by grammar rules.

This post has two parts. In part 1, weโ€™ll discuss the background components of a parser. In part 2, weโ€™ll cover building the demo and running it. If you already understand grammar parsing, you could skip part one.

Getting Started with Marble Testing

Todd Leininger Articles, Testing, Tutorial Leave a Comment

When working with RxJS observables, it can get a little tricky to unit test. Sometimes it can be hard to get insight into what is going on with the observable in the test. Iโ€™ve personally been frustrated numerous times by trying to test my observables with the subscribe and assert method. This is where marble testing can make testing observables easier.

The main advantage of using marble testing is the marble diagrams. With the diagrams, we have a visual representation of our observables and subscriptions so we can see the interactions between the two. Once the basics are understood, you should be able to get observable tests running in no time.

In this post, I will show you how to get started using Marble testing with an example. By the end, you should have enough information to get started on your journey testing observables. My examples are based on an Angular application using Jasmine, but these can also be applied to different testing frameworks for React and other applications.

JSON Web Token .NET Core Demo

Lou Mauget .NET Core, Articles, C#, Development Technologies & Tools, Programming 1 Comment

In this post, I present a tiny .NET Core C# JWT API demo that creates and parses a JSON Web Token (JWT). A self-contained Swagger UI dashboard exercises the API.ย 

We canโ€™t dead-drop a JWT demo without wrapping it in words about JWT background. Iโ€™ll set the scene by introducing tokens, JWTs, and surveying session state residency tradeoffs. Weโ€™ll then migrate to, high-level JWT JWT use cases, and arguments about if or when to use JWTs.ย 

I seek to give equal coverage to JWT upsides and downsides. Letโ€™s get started.

Maps and Entities and JPA, OH MY!

Ryan McCullough Articles, Development Technologies & Tools, Programming Leave a Comment

A client Iโ€™m working with has an email templating system that needs an upgrade! The current design utilizes a denormalized table that needed to grow a column every time a new unique token is needed. After a review of the offerings through JPA, I was happy to see that JPA had some support for java.util.Map through joins through a variety of the @MapKey annotation.

In this post, I’ll demonstrate the less frequently used methodology of applying and populating a Map of entities using a single table and a composite key.