filmov
tv
Java Records Unleashed: Validation Best Practices
Показать описание
Simplifying RESTful Web Service Constraints in Java
In this episode of 'Tales from the Jar Side,' Ken Kousen guides Java developers through the process of simplifying constraints when interacting with a RESTful web service. Using a text-to-speech service example, Ken demonstrates four steps to enforce input restrictions programmatically. He covers using Java records, defining constants and enums, utilizing compact constructors for validation and transformation, and applying Bean Validation annotations. The episode also includes practical coding examples and a final test to ensure proper service utilization. All code is available in the accompanying GitHub repository.
00:00 Why do you we need to do this?
02:40 A basic request class
03:30 Defining constants
03:56 Adding enums
06:13 Overloaded constructors
07:44 Compact constructors
09:16 Bean Validation
11:17 Adding the validation dependency
12:01 Bean Validation Annotations
13:50 Testing
15:14 What have we learned?
16:41 Generating audio from text
In this episode of 'Tales from the Jar Side,' Ken Kousen guides Java developers through the process of simplifying constraints when interacting with a RESTful web service. Using a text-to-speech service example, Ken demonstrates four steps to enforce input restrictions programmatically. He covers using Java records, defining constants and enums, utilizing compact constructors for validation and transformation, and applying Bean Validation annotations. The episode also includes practical coding examples and a final test to ensure proper service utilization. All code is available in the accompanying GitHub repository.
00:00 Why do you we need to do this?
02:40 A basic request class
03:30 Defining constants
03:56 Adding enums
06:13 Overloaded constructors
07:44 Compact constructors
09:16 Bean Validation
11:17 Adding the validation dependency
12:01 Bean Validation Annotations
13:50 Testing
15:14 What have we learned?
16:41 Generating audio from text
Java Records Unleashed: Validation Best Practices
Unleash Your Coding Skills: Master DDD Backend with Java & Spring! EP1 Aggregate Root
Avoid Returning Null From Methods – There Is a Better Way To Write Them!
Java 21 Tool Enhancements: Better Across the Board #RoadTo21
Katalon Chrome Extension for Record and Play | Software Automation Testing | IT Expert System, INC
Kill Anemic Domain Models with Encapsulation: The Hard Part
Extend the Power of Neo4j with Stored Procedures and APOC
Trisha Gee - Life Beyond Java 8
Testing Big Data application without ETL | Jinsan George & Narmadha Ramasamy | vodQA 2023
Narrative Engineering: Unleashing the Power of Storytelling in Software Development By Ramon Wielema
Session by Starof Java on 'Unleash the power of your applications with Micronaut and GraalVM”
Geb Functional Testing Unleashed
CIS 1500 - Intro to Programming ( Java ) - Correctness & Robustness - Winter 2023
GeeCON Prague 2023: Juarez Junior -Unleash the power of your applications with Micronaut and GraalVM
The Biggest Mistake Beginners Make When Web Scraping
Leveraging Eclipse SUMO and Eclipse MOSAIC
(IAM) Advantage Unleashed: Pinnacle Solutions for Accelerating and Elevating Government Security
Mastering Session Replay
NestJS Unleashed #1 - Introduction
Database Consistency with High Performance - How Does it Change My Digital Transformation
How to Check if Someone is Remotely Accessing Your Computer
J-Fall 2023: Kotlin & Functional Programming: pick the best, skip the rest - Urs Peter
FREE COURSE API Testing Basics, Fundamentals, and Tools
The Battle of Midway 1942: Told from the Japanese Perspective (1/3)
Комментарии