Dynamic Unit Conversions in Math.js

Using Math.js for Dynamic Unit Conversions

Lou Mauget Articles, Development Technologies & Tools, JavaScript Leave a Comment

In this post, Iโ€™ll survey a convenient JavaScript math.js library approach for converting a numeric value having a unit to a value for another unit. Iโ€™ll show how to convert a number associated with a unit to a value having another unit, add custom units and conversions, and evaluate textual expressions containing values with units. To wrap up, weโ€™ll walk through a few practical use cases.

By the end of this post, I hope you are inspired to use math.js in your projects. Itโ€™s a powerful tool in the right scenarios. With that, letโ€™s get started.

Optimizing Output File Testing in Spring Batch

Optimizing Output File Testing in Spring Batch

Jonny Hackett Articles, Java, Spring, Spring Batch, Testing Leave a Comment

Attention: This article was published over 3 years ago, and the information provided may be aged or outdated. While some topics are evergreen, technology moves fast, so please keep that in mind as you read the post.Itโ€™s quite common to build Spring Batch jobs in which the output is a file for distribution to another team, or to another business. …

Dev Container CLI Escaping the IDE Restrictions

Dev Container CLI: Escaping the IDE Restrictions

Jake Everhart API Development, Articles, Development Technologies & Tools, Docker, Programming 1 Comment

In past blogs, I have discussed development containers (dev containers) in detail, from explaining their general mechanics to showing how they can bolster a team’s build automation. As a brief recap for the uninitiated: dev containers are a way of encapsulating a developerโ€™s setup into a container, typically a Docker container. As a practical example, rather than forcing a new teammate to manually install and configure all the necessary tooling before contributing to a project, they can leverage a teamโ€™s devcontainer.json definition file to quickly spin up a fully configured development environment.

Microsoft has championed this workflow over the past few years, offering tight integration with tools like VS Code and Codespaces to make containerized development as seamless as possible. At the time of writing, the developer experience has reached a point where I honestly prefer to operate within a dev container for certain types of projects. When I open a teamโ€™s codebase within VS Code and it informs me that they have provided a dev container to use, I have higher confidence that Iโ€™ll be using the same versions of their tools and seeing the behaviors that they expect.

Iโ€™ve even come to trust these setups more than an equivalent set of Dockerfiles or docker-compose scripts, just because the simplicity of the ecosystem makes it more likely that everything is well-maintained and configured correctly. Itโ€™s easy to see how these standardization and automation benefits can be a huge boost to teamsโ€ฆonce theyโ€™ve adopted the right tools to integrate with them.

But what if you donโ€™t want to use VS Code?

Macros: To Code or Not to Code

Joel Buckingham Articles, Development Technologies & Tools Leave a Comment

No matter what project I find myself working on, it seems like I have a batch of actions I need to sift through to find all the instances of some conditions and then do something with each instance found at least once a week. You only need to do it once and then move on, so buying a tool or writing some fancy code to handle it seems like overkill. This is where text editors with macro recording functionality can save the day, or at least a few hours of the day.

In this blog, Iโ€™ll share a practical use case for macros. Iโ€™ll walk you through the example, and then weโ€™ll dive into what it looks like to use macros. I hope that this demonstrates the value and versatility of adding macros to your programming tool belt.

What is Business Intelligence (BI)?

Caven Andersen Articles, Business Intelligence (BI), Development Technologies & Tools, PowerBI, Tableau Leave a Comment

I’m sure you’ve come across the term “Business Intelligence” or “BI” in your workplace or on LinkedIn. It’s remarkable how many people are now embracing the advantages it offers for making better business decisions, making data more accessible and comprehensible, and much more.

One of the primary objectives of BI is to enable companies to make informed, data-driven decisions by following a multi-step process. This process encompasses data collection through ETL (Extract, Transform, Load), data analysis, data visualization, and the subsequent presentation of findings to key decision-makers within the organization. These tasks are accomplished using BI tools and various programming languages, which are employed to access and analyze extensive datasets. The results are then presented in reports that incorporate charts, graphs, maps, and key performance indicators (KPIs) for a detailed overview of the business’s performance.