Split a File as Stream

Last week I discussed that the new (@since 1.8) method splitAsStream in the class Pattern works on the character sequence reading from it only as much as needed by the stream and not running ahead with the pattern matching creating all the possible elements and returning it as a stream. This behavior is the true nature of streams and it ...

Read More »

Getting to Working Software – Introduction

“Working software” – How is it made? Here’s the secret sauce – Working software is really about the people who build it. Working software is built by professionals. And professionals are not just tech wizards. They write software in specific effective ways. What practices do we have in our disposal, that make us professional? Think about it: As developers, our ...

Read More »

When to Switch to Microservices

With the rise of microservice architecture in the past couple of years, many developers find themselves wondering if it’s right for them. There are two frequently asked questions I’ve seen concerning microservices: Should I switch to utilizing microservices? When and how should I switch to microservices? Should You Switch? The focal point of whether to change your architecture can often ...

Read More »

AppDev in the Cloud with Financial Customer Evaluation Solution

The oldest business logic demo in modern JBoss BRMS times is the Customer Evaluation example launched back in June 2012. Back then, JBoss BRMS included rules, events and processes. The project provides a fully installed and configured environment for showcasing the project and all the available BPM components. It  includes a JBoss Developer Studio project complete with unit tests. Since then ...

Read More »

Intro to Redis with Spring Boot

1. Overview In this article, we will review the basics of how to use Redis with Spring Boot through the Spring Data Redis library. We will build an application that demonstrates how to perform CRUD operations Redis through a web interface. The full source code for this project is available on Github. 2. What is Redis? Redis is an open ...

Read More »

Functional Java by Example | Part 2 – Tell a Story

This is part 2 of the series called “Functional Java by Example”. The example I’m evolving in each part of the series is some kind of “feed handler” which processes documents. In previous part I started with some original code and applied some refactorings to describe “what” instead of “how”. In order to help the code going forward, we need ...

Read More »

How Spending Too Much Time on Debugging Will Get You in Trouble

Are you and your company suffering from the side effects of spending too much time on debugging tasks? We asked some of the engineering teams that we work with how much time their developers spend on debugging processes. The answer? On average, 25% of developers’ time is spent on debugging alone. That means that more than a full day of the ...

Read More »

Too Many PreparedStatement Placeholders in Oracle JDBC

java-interview-questions-answers

There are multiple causes of the ORA-01745 (“invalid host/bind variable name error”) error when using an Oracle database. The Oracle 9i documentation on errors ORA-01500 through ORA-02098 provides more details regarding ORA-01745. It states that the “Cause” is “A colon in a bind variable or INTO specification was followed by an inappropriate name, perhaps a reserved word.” It also states ...

Read More »