Tutorials
Tutorials
-
OpenAI API tutorial: How to use AI prompt chaining
This walkthrough teaches developers how to chain AI prompts and models using the OpenAI API, in this case to identify and present specific data from William Shakespeare plays. Continue Reading
-
Natural language programming using GPTScript
GPTScript enables programmers to use natural language syntax and tap into OpenAI when building apps. Here's a basic GPTScript tutorial with examples for beginners. Continue Reading
-
Using generics in Typescript: An in-depth tutorial
Generic variables give the TypeScript language versatility and compile-time type safety that put it on par with Java, C# and C++. These examples show how to use TypeScript generics. Continue Reading
-
How the saga design pattern in microservices works
When a sequence of steps must be performed to support an operation, the microservices saga design pattern is a perfect fit. Continue Reading
-
How to tame Gradle dependency version management
Need to quickly and easily switch between versions of your dependencies at build time? Gradle's dependency catalogs are the answer. Here's how to use them. Continue Reading
-
Understanding TypeScript generics
Programming languages such as Java, C# and Swift use generics to create code that's reusable and enforce type safety. In this tutorial, learn how generics in TypeScript work. Continue Reading
-
Understanding the TypeScript method decorator
This tutorial explores TypeScript method decorators, reusable code similar to Java annotations that lets developers apply logic in a declarative manner at design time. Continue Reading
-
11 lessons learned from writing my first Java program
You'll be amazed how easy it is to learn Java and write powerful cross-platform applications when writing your first Java program. Some misconceptions about Java just aren't true. Continue Reading
-
Your top 4 Java user input strategies
From System.in to the Scanner class, there are many ways to read user input into your Java programs. Find out which Java user input strategy is best for your software needs. Continue Reading
-
How Java's System.in reads input from the user
The Java System.in component provides universal access to console-based user input. Learn how to make your applications interactive with this Java System.in tutorial. Continue Reading
-
An example of how suppressed exceptions in Java work
Don't ignore suppressed exceptions. In this quick tutorial we show you how to anticipate when code will throw suppressed exceptions, along with the best practices to handle them. Continue Reading
-
A simple 'try with resources' in Java example
Java's 'try-with-resources' exception handling feature can help you write better, more effective Java code. Here's a quick example of the try with resources construct in action. Continue Reading
-
Fix the top 10 most common compile time errors in Java
Flummoxed why your Java code won't compile? Here are the 10 most commonly encountered Java compile errors, along with the fixes that will get your code working in no time. Continue Reading
-
How to revert a Git commit: A simple example
The git revert command is commonly misunderstood. In this quick tutorial, we will show you exactly how the command works and how to perform a simple undo in your repo. Continue Reading
-
How to use Epsilon GC to stop Java garbage collection
The best way to stop Java garbage collection from happening is to use the experimental Epsilon GC, no-op garbage collector from JDK 11. Learn how and when to use it. Continue Reading
-
An Apache Commons FileUpload example and the HttpClient
In this article you will have a look at the capabilities of the HttpClient component and also some hands-on examples. Continue Reading
-
WebAssembly Hub boosts Envoy filter development
Examine WebAssembly Hub's features, why developers have turned to the portal to share Envoy filters and how it seems to be built for the long haul. Continue Reading
-
Why the 8 Java primitive data types are not objects
What's the difference between Java primitive types and objects? To start, don't classify primitive types as objects. Let's explore the 3.5 categories that primitive types fall into. Continue Reading
-
How to properly perform Java String comparisons
Don't let incorrect Java String object comparisons bog down your code. Follow this tutorial to understand the differences between =, == and .equals. Continue Reading
-
A Jenkins tutorial for beginners with examples
If you're ready to try Jenkins, this quick start tutorial lays out the specific steps you'll need to take to download and install the CI tool on your local machine. Continue Reading
-
How to install the JDK on Windows and set up JAVA_HOME
You have options when it comes to JDK installations on Windows and Linux. Here are some helpful tips to ensure a proper install and why JAVA_HOME can be helpful. Continue Reading
-
Use the Java JDeps tool to root out internal API calls
If you have internal Java API calls in your code, it will soon stop working. Here's a way to identify those calls and replace the problematic code with options on how to fix it. Continue Reading
-
Succeed with the test-first Java certification prep approach
Java certification exam prep is an important step for anyone interested in the test. Consider a test-first approach that might help you more effectively study for the exam. Continue Reading
-
Avoid boilerplate code with this typable Spring beans tutorial
Java is always criticized for being bloated. But there are ways to minimize all the fill-in code. This Spring beans tutorial shows you how to write more efficient applications. Continue Reading
-
Jenkins Git integration: GitHub pull request via the Git plugin
This Jenkins Git integration tutorial demonstrates how to create a freestyle build job that performs a Jenkins GitHub pull request. It's an example of the Jenkins Git plug-in in action. Continue Reading
-
Spring MVC tutorial: How Spring Boot web MVC makes Java app development easy
Spring Boot has provided an opinionated approach to developing microservices. In this Spring MVC tutorial, we show how Spring Boot has changed Java web development as well. Continue Reading
-
5 basic Git commands developers must master: Tutorial with examples
Just getting started with Git or GitHub? If so, there are five basic Git commands you need to master. This Git commands tutorial for beginners takes you through each. Continue Reading
-
Jenkins environment variables list for shell script build jobs
The Jenkins environment variables list outlines the various properties that developers can inject into advanced Jenkins shell scripts and batch programs. Continue Reading
-
How to deploy an embedded Tomcat server in an executable JAR with Maven example
There's nothing magical about packaging Java web apps in an executable JAR file. This embedded Tomcat tutorial shows you how to use the Apache Maven plugin to create and run an executable JAR that has Tomcat embedded within it. Continue Reading
-
Fix broken builds with this log4j Maven dependency example
DevOps professionals need to know how Maven dependency management works. This log4j Maven dependency example demonstrates how to use Maven Central and resolve external libraries. Continue Reading
-
How to install Maven and build apps with the mvn command line
If you want to learn Maven and become a build master, the first step is to install Maven, and the second is to use the mvn command-line tool to compile and package Java apps. Continue Reading
-
Create your first Jenkins build job: A freestyle project tutorial for beginners
The Jenkins freestyle job is the foundation of Jenkins CI. In this CI tutorial, we show you how to both create a freestyle job and run it using the CI tool. Continue Reading
-
Use the Jenkins OAuth plug-in to securely pull from GitHub
The easiest way to securely push code to your remote GitHub repository from your continuous integration server is to use the Jenkins OAuth plug-in. This tutorial shows you how. Continue Reading
-
What Java developers need to know about TypeScript syntax
For Java developers transitioning into JavaScript frameworks, like React and Angular, this TypeScript tutorial on syntax will help make the transition easier. Continue Reading
-
Apache Drill case study: A tutorial on processing CSV files
Rob Terpilowski decided to take Apache Drill for a test drive and use it for processing CSV files. Here's a quick tutorial to show how you can do it to. Continue Reading
-
Portlet tutorial: Defining and namespacing JavaScript objects
A great deal of frustration can ensue when referencing JavaScript objects within a portlet. Defining a namespacing JavaScript component properly will help avoid that. Continue Reading
-
Portlet filters and Spring tutorial
Working with a complex product like WebSphere, it helps to integrate a lightweight framework. This portal and Spring tutorial demonstrates how to use portal filters with Spring. Continue Reading
-
How to install JDK 8 and write the Java Hello World application
In this tutorial, we look at how to set up a basic Java SE development environment by installing JDK 8, after which we write, compile and run the Java Hello World application. Continue Reading
-
How to use Java conditional statements effectively
Our first tutorial on learning Java left room for improvement. Here are ways to use Java's if, else and switch statements more effectively. Continue Reading
-
Comparing Java and JavaScript: Advanced conditional logic
How do the conditional logic semantics of Java and JavaScript compare? In a browser versus JVM language comparison, this is one place where the two languages are very similar. Continue Reading
-
This Java programming example will help you learn the language
Learning Java in a way that is both fun and effective is possible. In this tutorial, we take a problem-based approach to developing a stand-alone Java application. Continue Reading
-
Learning modern programming languages like Ruby made easy
Interested in learning Scala, Ruby, Java or JavaScript? Do you want to learn one of these modern programming languages quickly? Here's a strategy to help you do just that. Continue Reading
-
Learning Ruby for Java developers: A comparative tutorial
This comparative tutorial helps you learn how to program in Ruby, while also showing differences and similarities with Java. Continue Reading
-
How to perform conditional logic effectively with Ruby
Our first Ruby versus Java tutorial offered some refactoring opportunities. Here we look at using Ruby's if, elsif and case statement more efficiently. Continue Reading
-
Understanding JavaScript for the Java developer
After writing a simple application in a Java tutorial, we now move to the world of JavaScript, contrasting the languages to make the learning process easier. Continue Reading
-
How to integrate Spring Cache with an In-Memory Data Grid (IMDG)
Interested in combining the efficiencies of Spring Cache with the power of an In-Memory Data Grid (IMDG). This simple tutorial demonstrates just how easy the process is. Continue Reading
-
Examine modular code development with Java's Project Jigsaw
Project Jigsaw is the new standard for modular code development in Java. Expert Barry Burd takes an in-depth look at the first early access release. Continue Reading
-
Asynchronously invoking a second managed bean method in JavaSever Faces (JSF)
The new features added to JSF make doing an asynchronous call to the server incredibly easy, but what if you need to follow that first asynchronous call with a second asynchronous call to a JavaServer Faces managed bean? It's a bit of work, but in ... Continue Reading
-
How to invoke a JSF managed bean asynchronously through JavaScript
Sometimes great frameworks like JSF, Wicket or Spring MVC make simple tasks surprisingly difficult to do. With JavaServer Faces, the simple task of invoking a method on a managed bean is actually a bit of a chore. In this tutorial, we tackle that ... Continue Reading
-
Step-by-step guide to Android development with Eclipse
Learn how to create applications in an Android development environment in this guide. Continue Reading
-
Advanced JSF Tutorial: The single page interface (SPI) with Facelets, Ajax and HTML5
Some say it's impossible, but if you really understand the technology, you will realize that creating a single page interface (SPI) with JSF, Facelets, Ajax and HTML really isn't all that hard. In fact, JavaServer Faces makes it pretty easy! Continue Reading
-
JSF Tutorial: Completing the Ajax based Facelets application
If you're using JSF, you're probably using Facelets, and if you're creating modern web based applications, you'll likely want to use Ajax based request-response cycles. Here we conclude our tutorial on JavaServer Faces, Facelets and Ajax based ... Continue Reading
-
Integrating Ajax into your Facelets pages: Death to JSF's request-response cycle
If you're doing Facelets development, this might be the most important tutorial you will ever read. It will explain to you how to throw out that annoying request-response cycle, and explain how to integrate Ajax based JSF components with a ... Continue Reading
-
Template based web design with JSF Facelets: ui:insert versus ui:include
When creating a web page template with JSF, a developer needs to know the difference between ui:insert and ui:include. They're actually quite different, but the similar sounding names can create confusion. Here's a great example of when to use ui:... Continue Reading
-
Creating pages based on a JSF template: Using the Facelets ui:define tag
What do you do once you've set up a handsome page template using the Facelets functions that come with JSF 2.x? Well, you start creating new pages, meshing those ui:define tags in with ui:composition and ui:insert. It's easier than it sounds, trust ... Continue Reading
-
Turning a web page into a JSF 2.0 template with Facelets
How do you take a web page and turn it into a template using Facelets as the template engine? It takes some JSF, some HTML, maybe some CSS, and lots of JSF UI tags, but overall, it's an easy and simple process if you follow this tutorial. Continue Reading
-
An introduction to template building with Facelets, CSS, HTML and JSF 2.2
Facelets is a great technology for creating templates for websites and then adding dynamic functionality. In this tutorial, we will introduce the idea of creating a template page with CSS, HTML, JavaScript and JavaServer Faces 2.2 (JSF). Continue Reading
-
Adding the MBean to the JMX server
Part two of this tutorial delves into how and why to add MBean to the JMX server. Continue Reading
-
Configuring VisualVM to connect to the app server
Learn how to configure VisualVM in part three of this tutorial. Continue Reading
-
Monitor your Web applications using JMX and Spring
Learn how to use JMX and Spring to monitor new Web application projects. Continue Reading
-
O'Reilly Fluent 2014 conference coverage
Get the latest on Web platform technology from Fluent 2014. Continue Reading
-
How to animate your web pages using JavaScript, HTML and CSS: A tutorial
One of the great benefits to using JavaScript is the fact that it allows you to animate your web pages in simple yet creative ways. Here we look at a simple example that animates the result of a game or rock-paper-scissors. Continue Reading
-
Tutorial: Coding a simple Rock Paper Scissors application in JavaScript
Rock, paper scissors, or Rashambo as it is called in some circles, is a simple game that most people understand, which makes it a great scenario for learning how to program in JavaScript. Continue Reading
-
A simple tutorial on using the JavaScript event model
To be great at JavaScript languages like JQuery, Dojo and YUI, you must master the basics of JavaScript. Here we look at implementing a simple Roshambo application using the JavaScript event model. Continue Reading
-
Application_Scope versus Portlet_Scope: Understanding the JSR 286 PortletSession
Managing state through the PortletSession is a supremely important job for the portal developer, and knowing how to manage the session means understanding the difference between the PortletSession scopes: APPLICATION_SCOPE and PORTLET_SCOPE. Continue Reading
-
JSR-286 development tutorial: Linking back to the portal with the PortletURL
In this JSR-286 development tutorial we look at the PortletURL and the challenge developers face when trying to link back to the portal, a portal page or a given portlet instance. Continue Reading
-
Enums versus Exceptions: An new, Agile approach to application error handling
As Agile teams recognize the overhead of using throwable objects, the enums versus exceptions debate is beginning to rage, but smart developers know that using enums means better error handling. Continue Reading
-
Top ways that Java enums can simplify the software development process
Introduced in Java 5, the enum has become an effective tool in simplifying software development in Java. But not every developer is using the enum construct to its fullest. This article will demonstrate interesting and unique ways to simplify ... Continue Reading
-
Which EJB to use? Stateful, stateless and singleton session beans compared
When developing a service layer, Java architects are often challenged with which of the three session beans, stateful, stateless or singleton, should be used. Continue Reading
-
JSR-286 Development Tutorial: JSPs, MVC and the portlet tag library
This JSR-286 tutorial demonstrates how to develop JSPs, using the portlet tag library, that comply to the MVC design pattern. Continue Reading
-
JSR-286 development tutorial: Mastering request-response programming
This portlet programming tutorial shows how the PortletRequest and Portlet Response are used when developing JSR-286, request-response based apps. Continue Reading
-
JSR-286 development tutorial: An introduction to portlet programming
This portlet programming tutorial is an introduction to developing JSR-286 applications that can be deployed to any standards-based portal server. Continue Reading
-
How 'big data' solved the content management (CMS) problem
Content management systems that need to sift through huge amounts of data are big data problems in need of a solution. Fortunately, projects like Hadoop and MapReduce are coming to the rescue. Continue Reading
-
Mobile application development tutorial
Looking for a start in developing mobile apps for existing enterprise computing systems? This mobile application development tutorial is here to help. Continue Reading
-
Spring sucks? Refuting the case against Spring
Because some old school J2EE types think Spring sucks, Ken Rimple takes some time to refute common complaints about Spring. Continue Reading
-
Java EE vs. Spring: The two are not quite equivalent
Java EE has certainly improved since the days of J2EE, but a look at Spring and Java EE today shows Java still has some catching up to do. Continue Reading
-
A Spring summary: The Spring framework is still relevant
Ken Rimple, Spring guru and co-author of 'Spring Roo in Action,' introduces the Spring framework and presents three reasons why Spring is still relevant. Continue Reading
-
Convert server-side Java to client-side HTML
This brief video tutorial uses Java code on the server side to push an HTML link to the client in simple html. Continue Reading
-
Translate "Hello, world!" automatically via the Web browser
In this lesson, Cameron McKenzie will demonstrate how to build a Web application that automatically translates itself for various audiences based on the default language of the end user's Web browser. Continue Reading
-
Installing the JavaServer Faces Web application framework
Obtain and install the JavaServer Faces Web application framework as a solid basis for deploying Java applications on a Tomcat server. Continue Reading
-
Install the Apache Tomcat application server
The first choice in application servers for many Java developers is the open source Apache Tomcat. Learn how to download and install the Apache Tomcat 6 servlet engine. Continue Reading
-
Installing the Java Development Kit (JDK) and setting JAVA_HOME
The first choice in application servers for many Java developers is the open source Apache Tomcat. Learn how to download and install the Apache Tomcat 6 servlet engine. Continue Reading
-
New Java 7 Features: How to Use a More Precise Rethrow in Exceptions from Project Coin
Afficionados of other languages such as Scala or Clojure are always slagging the fact that Java is too verbose and cumbersome. So, it's not too surprising to find out that Java 7 introduced a number of new facilities that can help to trim down the ... Continue Reading
-
New Java 7 Features: A Numeric Underscores with Literals Tutorial
If you're doing the OCPJP upgrade exam, or just hitting the full blown OCPJP 7 Java certification, you need to know the ins and outs of the new language features. One fun and friendly syntax introduced with Java 7 is using numeric underscores. It's ... Continue Reading
-
New Java 7 Features: Using String in the Switch Statement Tutorial
The new Java 7 Certified Professional exam expects you to know what's new with the switch statement in Java 7. The biggest news? The fact that you can now switch on a String literal. Continue Reading
-
New Java 7 Features: Binary Notation and Literal Variable Initialization
Now with Java 7, you can not only use standard decimal notation, or the beloved hex notation, but you can use binary notation as well. Here's a good look at the ins and outs of binary notation, with a focus on what you'll need to know in order to ... Continue Reading
-
Writing Java code in the cloud
The road bumps one experiences when they drive towards cloud computing can be avoided, especially when one has the opportunity to learn from the experiences of those who have gone before. Continue Reading
-
Working with CDI and JSF 2.0 on Tomcat 7: Configuring Weld
By default, you can't use CDI in your JSF 2.0 applications when they are simply deployed to a standard servlet engine such as Tomcat 7. But, with Weld, you can make it work. Continue Reading
-
WebSphere Portal 7 and Spring 3.0 Portlet MVC Integration :
What happens when the industry leading Portal and the world's greatest application framework combine? Only good things!In this introductory article, I'll guide you through setting up the Spring 3.0 Portlet MVC Framework to work with JSR 286 Portlets... Continue Reading
-
Slingshot Yourself Into DataNucleus 2.1 and JPA 2.0
Slingshot Yourself Into DataNucleus 2.1 and JPA 2.0 with this Tutorial for RDBMS Continue Reading
-
Spring Package Scanning for @Component Decorated POJOs
This little tip shows you how to do package scanning for @Component decorated POJOs with the AnnotationConfigWebApplicationContext. Continue Reading
-
How to Use Spring 3.0 In a Servlet Based Web Application
This tutorial will show you how to run a simple web based application that uses Spring 3 as an IoC container. Continue Reading
-
Classloaders Demystified - Understanding How Java Classes Get Loaded in Web Applications
Classloaders Demystified - Understanding How Java Classes Get Loaded in Web Applications Continue Reading
-
Use Sonar to Develop a Quality Feedback Loop into the Build Cycle
Sonar is great for ferreting out quality problems in your code base. But what if it kept the problems out in the first place? With a little work, key Sonar feedback metrics can be integrated into the code/test/commit/build cycle. Continue Reading
-
Getting Started with WebSphere Portal
This tutorial shows you how to get started with a fully installed WebSphere Portal 7 installation, and shows you how to configure portlets on the portal. Continue Reading
-
Hibernate 3.5 Without Hibernate: Migrating to the Java Persistence API
Here we look at using the Hibernate framework as our persistence mechanism, but only referencing the JPA libraries in our code. This way, your persistence code is not bound to the vendor that implements your persistence architecture. Continue Reading
-
Creating DAOs with Hibernate 3.5 & JPA 2.0 Annotations
This tutorial will help you learn how to create good DAO components that can be easily integrated into a Spring based application. This tutorial concentrates on the Data Access Objects. The next lesson will deal with Spring 3 integration. Continue Reading
-
Using Hibernate 3.5 as a JPA 2.0 Persistence Implementation
Are you interested in JPA 2.0, and you want to use Hibernate as your implementation? This tutorial shows you how easy it is to take your JPA annotated components and use the Hibernate 3.5 as your implementation. Continue Reading
-
Slingshot Yourself Into Hibernate 3.5 and JPA 2.0 with this Tutorial
Get up to speed with Hiberante 3.5 and JPA 2.0 with this quick tutorial that will get you up and running, without any supurfluous talk or banter. If you want to learn Hibernate and JPA 2.0 quickly, this is the tutorial you need. Continue Reading
-
Hibernate 3.5 without JPA and Annotations: The Good Old Hibernate Mapping File
This tutorial takes a look at how we can map entities and properties to database tables and columns using Hibernate 3.5 and the traditional mapping file instead of JPA 2.0 annotations. Continue Reading