Articles

My first draft of hierarchy traversing component got some serious feedback, and it’s time to make some changes before moving on to the next challenges. Hierarchy traverser is not optimal yet as it uses tail-call recursion and it’s easy to run to Stack Overflow with it. This blog post solves this problem and prepares for the next challenges like node cache and continue-from-given-node.

Problem: Running to Stack Overflow

As reader Ants pointed out then, .NET runtime doesn’t always optimize tail-call recursion and using this simple piece of code, it’s possible to run to Stack Overflow fast.

Source de l’article sur DZONE

I really love tiny and breadboard-friendly boards, especially if they are very affordable and can be used with Eclipse-based tools. So, I was excited to see the NXP LPC845-BRK board available at Mouser, and I ended up ordering multiple boards right away. Why multiple? Because they only cost CHF 5.95 (around $6)!

NXP LPC845-BRK Board

Source de l’article sur DZONE

ArangoDB is a multi-model NoSQL database. NoSQL databases have four types: key-value, column, document, and graph, every kind with specific persistence structures to solve particular problems. ArangoDB covers three NoSQL types: key-value, document, and graph. There is a post that talks about the key-value and document, but this post will explain how to connect with Java and Jakarta EE technology.

The graph has a unique structure that makes it more natural to do a deeper relationship, even more than the relational database technology. The NoSQL Graph database has success cases within the recommendation system, such as that does exist on Social Media and Netflix. This post talks about the graph structure more deeply.

Source de l’article sur DZONE

In this tutorial, we’ll learn more about Fragments — what are they, how to use them, and how to create them.

What Are Fragments?

A Fragment represents a portion of the user interface. You can combine multiple fragments in a single activity to build a multi-pane UI and reuse a fragment in multiple activities.

Source de l’article sur DZONE

What are we trying to accomplish:

  • Create a release pipeline that automates your software delivery process using AWS CodePipeLine, Azure DevOps and Jenkins.
  • Automate code deployments by connecting your pipeline to Source Repo -> code changes committed to your source code repository and trigger Maven commands on different phases to perform further action with respect to application deployment.
  • Use Mule Maven Plugin to automate deployment on CloudHub by extracting information from POM. AWS CodeBuild, Azure DevOps, and Jenkins will initiate the corresponding Maven command to trigger the deployment on CloudHub after application packing is completed.

For the purpose of this article, we created a simple Mule 4 project and configured mule-maven-plugin 3.1.6 for deploying to CloudHub.

Source de l’article sur DZONE

Consider the graph below. I already talked about this graph when I wrote about permission-based graph queries.

Permission-based graph queriesIn this post, I want to show off another way to deal with the same problem, but without using graph queries and using only the capabilities that we have in RavenDB 4.1.

Source de l’article sur DZONE

The following illustration explains how an HTTP POST request can be configured for multiple files in a single request using RAML 1.0 and Mule version 4.1.4.

RAML 1.0 construct:

Source de l’article sur DZONE

I wouldn’t class myself as a JavaScript developer, I always joke that it’s a language I never meant to learn. It’s so pervasive now, it just happened. I go through phases of enjoying it and despising it. But through the peaks and troughs of love and not quite hate. One problem persisted: if I’m to be a good JS developer and write functional JavaScript, how then do I write code in a way that implies a proper domain model?

In traditional OO languages, such as Java, C#, and even Go actually, it’s easy to write code that’s architected around a domain design. You have classes, which are big and do a lot of stuff. Which of course is something you generally avoid like the plague in JavaScript, for fair enough reasons.

Source de l’article sur DZONE

Before you start: If you don’t know what Katalon Studio is, read this first, and get to know why I picked it to build web automation.

Katalon Studio at a Glance

To be mentioned, before looking at the studio, Katalon project offers an IDE tool for Chrome, called Katalon Recorder. It’s an extension that records actions, captures web elements, plays the automated test case you recorded and speaks Selenese.

Source de l’article sur DZONE

In this article, I will explain how to return custom HTTP errors in Spring Boot. When we make an HTTP request to a resource, it is common that the request has to consider the option of returning an error.

It is the typical case that we made a RESTful request to query for a record, but it does not exist. In this case, you will usually return an HTTP code 404 (Not Found), and with this code, you also return a JSON object that with a a format defined for Spring Boot, like this:

Source de l’article sur DZONE