Build a Chat Application Using Spring Boot + WebSocket + RabbitMQ

See the original posting on DZone Python

In a previous post, we had created a Spring Boot + WebSocket Hello World Example. In this post, we will be creating a real-time multi-use chat application.

In a previous post, we had also seen how to deploy Spring Boot + RabbitMQ applications to Pivotal Cloud Foundry. I have hosted the real-time chat application that we are creating to Pivotal Cloud Foundry and use can see the demo at JavaInUse Chat Application.

Generic Extension Method to Map Objects From One Type to Another

See the original posting on DZone Python

Let me start with one scenario. Just imagine we have an object which has lots of public properties and we need to use only some properties of it for the user profile method. For example, we have a class Teacher_Interview and another class named Teacher_College.

Public class Teacher_Interview  
    Public int UID {get; set;}  
    Public string Name {get; set;}  
    Public string Email {get; set;}  
    Public string Subject {get; set;}  
Public class Teacher_College  
    Public int TID {get; set;}  
    Public string Name {get; set;}  
    Public string Email {get; set;}  

Here, we have written both the classes. As we can see, we have a Teacher_Interview class that contains its public properties. Now, we need to use the Teacher_College class object and want the same values from the Teacher_Interview class object.

Localization in Angular Using i18n Tools

See the original posting on DZone Python


In this article, we will learn how to make our Angular app available in different languages using i18n and localization. We will create an Angular application and configure it to serve the content in three different languages. We will also deploy our app to Google Firebase and see how localization works in real-time.

We will use Angular 7 and VS Code to develop our application. Take a look at the application output.

Clone a Project in Visual Studio 2019

See the original posting on DZone Python


To start with, first, we need to have Visual Studio 2019 installed and a valid server URL. Cloning is the process of downloading or copying a repository to the destination location from the server/source. Cloning projects with Visual Studio 2019 in the Solution Explorer is very easy. Before starting the cloning process, we must have an existing repository which points out our repository on the server. Every server has its own unique repository URL.


  • Visual Studio 2019 (Download from here).
  • Any server account like TFS, GIT, BitBucket, etc.

Step 1: Open Visual Studio 2019

Go to the Start menu on your Windows desktop and type Visual studio 2019; open it.

10 Underused Laravel Blade Directives

See the original posting on DZone Python

Laravel Blade is the template engine that’s built into the framework. It makes working with HTML a breeze. I have been working with Laravel for more than a year, but never realized some of Blade’s features. I want to share with you 10 underused blade directives that will clean up your code and save some time in the process. Let’s get going.

Check out – an ever growing collection of great Laravel resources

Loading Data in React: Redux-Thunk, Redux-Saga, Suspense, and Hooks

See the original posting on DZone Python


React is a JavaScript library for building user interfaces. Very often using React means using React with Redux. Redux is another JavaScript library for managing global state. Sadly, even with these two libraries, there is no one clear way to handle asynchronous calls to the API (backend) or any other side effects.

In this article, I’m trying to compare different approaches to solving this problem. Let’s define the problem first.

How to Use a Start/Stop Loader on Every AJAX Call

See the original posting on DZone Python


In this article, we’ll learn how to put an AJAX loader for all AJAX calls from all pages which extend from your layout page into our MVC structure. Here, we will create a simple MVC project and call AJAX functions from view. For beginners who are new to AJAX, AJAX is Asynchronous JavaScript and XML, it’s a front-end web technology that calls web-servers asynchronously. It will load your content without loading or leaving your current page.

Recommended Prerequisites

  • Visual Studio 

Step 1

Open Visual Studio and select “File” >> "New". Then, click on Project.

Using Sinon Stubs

See the original posting on DZone Python

A few days ago, I wanted to test a JS function. Part of the test was to verify that another function gets called, and gets called correctly (with the correct parameters). I ended up using Sinon for the task, and now, looking back at it, it’s pretty easy and straightforward. The thing is, when I was trying to write my tests I didn’t find good examples and there was a little struggle until I figured it out, which is the motivation for this post (why not share and make someone’s else life easier, right?). 

So let’s go down to business!

Advanced Basics: Bootstrap 4 With ASP.NET Core TagHelpers

See the original posting on DZone Python

The title of this post, Advanced Basics, takes the basics and fundamental concepts of what a developer has learned, whether it be a technique or library, and extends it exponentially to advance it to be something more efficient and useful for future projects.

We kick this post off by combining some Bootstrap with ASP .NET Core TagHelper goodness to provide a worthy post (maybe even a series? See below for more).

Full-Stack Vue App With Node, Express, and MongoDB

See the original posting on DZone Python

Much of application development, including web applications, has to do with CRUD – creating, reading, updating, and deleting data. Today, we will be building a full stack Vue note-taking application and showing you how to perform the aforementioned processes, using Node.js running the Express.js framework for the backend, and MongoDB to store our data.

Below is a preview of the application we will be building:

Cross-Browser Automation Testing Using Watir

See the original posting on DZone Python

What Is Cross-Browser Parallel Test Automation?

Cross-browser parallel testing is performed to run a single test across multiple browser combinations, simultaneously. This is a very practical and powerful scenario for automation testing. Cross-browser parallel test automation allows you to scale back execution time while not compromising with coverage of your check and leads to faster test results.

What Is Watir?

Watir is an open source Ruby library which helps to achieve cross-browser automation testing. Watir supports Ruby, which is an object-oriented language and typically it’s simpler and faster than other languages. The good thing about Watir is that it supports any web application irrespective of the technology used to develop that application.

Native Animation for Mobile Apps Using Lottie

See the original posting on DZone Python

Meet the Lottie Framework

Imagine it’s Monday morning. You wake up and grab your phone to check your Twitter feed. You scroll and scroll — what’s that? Oh, news from NASA. “Like!” And then you suddenly see that the heart-icon has not only changed but did so gorgeously.

At first, it may seem like nothing. But the truth is, small animations in the interface can make a big difference. When you use a certain app and you know for sure it has reacted to your tap, it means the design was well thought through. The app creators not only made it practical but also attractive and pleasant to use. And it’s true — animations add uniqueness and mood to an application. Those of you who’ve ever tapped “Heart” on Twitter know this feeling — you simply go, “Aaawww!” Such a reaction proves how important animations can be in an interface. With tiny animations like this, users can’t help but like your product. On top of that, they’ll better understand what’s going on inside the app and how to interact with its interface.

How to write agile user stories: 7 guidelines

See the original posting on JavaWorld

Fundamentally, agile user stories are short, simple tools to document a single action or intention desired by the targeted user to achieve a goal. The simplest user stories have a format, “As a user type or role, I want to action or intent so that reason or benefit” that answers at least three simple questions on who, what, and why the story is in the backlog queue.

To read this article in full, please click here