The Silliest Line of Java Code Ever Written
Tales from the jar side
@talesfromthejarsideAbout
I'm Ken Kousen. I have entirely too much academic training (two BS degrees from MIT, an MA and a Ph.D. from Princeton, and an MS from RPI), I'm the author of six technical books about Java, Groovy, Kotlin, Android, Gradle, and Mockito, I've given talks at conferences all over the world, and I have 25+ years of experience in Java and related topics. Let me help you understand what's important in the IT world and what isn't. "Tales from the jar side" is a pun on (1) The Far Side cartoons by Gary Larson, and (2) how Java applications are delivered as "jar" (Java archive) files. It's about my continuing Java journey. Lame, sure, but I'm committed to it now. By the way, my last name is pronounced "cousin", like the relative, even though it doesn't look like that. Thanks for visiting!
Video Description
The Silliest Line of Java Code Ever Written In this episode of 'Tales from the Jar Side', we explore what could be the silliest line of Java code ever created. Using Java's modern features like records and local variable type inference (LVTI), we construct a bewilderingly silly line of code. We'll dive into a project that whimsically utilizes 'var' as a package name, a record name, a property name, and even a variable name. Watch as we push the limits of silliness, and see how this whimsical approach impacts code readability and maintenance. Join us for a fun and educational journey through Java's quirkiest possibilities! 00:00 Introduction to the Silliest Java Code 00:39 Setting Up the Silly Java Project 00:58 Creating the Var Record 01:51 Writing the Silly Test Class 03:06 Enhancing the Silliness with Static Factory Method 05:10 Final Thoughts and Maximum Silliness 06:08 Conclusion
Java Developer's Desk Must-Haves
AI-recommended products based on this video

Hydrocolloid Bandages for Wound Care, Extra Large Medical-Grade Hydrocolloid Roll with Self-Adhesive, Ultra Absorbent, Flexible & Waterproof, DIY Size & Shape First Aid Kit Essential (2in*4.8ft)

Rain-X 600001 Windshield Repair Kit - Quick and Easy Durable Resin Based Windshield Repair Kit for Chips and Cracks, Good for Round Damage Below 1" in Diameter and Cracks Smaller Than 12" in Length

GOOACC - GRC-33 240PCS Bumper Retainer Clips Car Plastic Rivets Fasteners Push Retainer Kit Most Popular Sizes Auto Push Pin Rivets Set -Door Trim Panel Fender Clips for GM Ford Toyota Honda Chrysler

ANKER 737 Power Bank, 24,000mAh 3-Port Laptop Portable Charger with 140W Fast Charging, Smart Display, for Outdoor Work, Compatible with iPhone 16/15/14 Series, Vision Pro, Samsung, MacBook, and More

Anker iPhone 16 Charger, 2-Pack 20W Fast USB C Charger Block, for iPhone 16/16 Pro Max/15 Series/iPad Pro and More (White, 2 Pack & 2 Cable)

FIFINE Gaming USB Microphone for PC PS5, Condenser Mic with Quick Mute, RGB Indicator, Tripod Stand, Pop Filter, Shock Mount, Gain Control for Streaming Discord Twitch Podcasts Videos- AmpliGame Global Recycled Standard

Guitar Wall Mount 2 Pack, Black Walnut Wood Guitar Hanger, U-Shaped Guitar Wall Hanger Mount, Guitar Holder Hook Stand Wall for Acoustic, Electric Guitar, Banjo, Bass, for Guitar Player Men Boy

Lamicall Bike Phone Holder, Motorcycle Mount - Motorcycle Phone Holder, Handlebar Cell Phone Clamp, Scooter Phone Clip for iPhone Air 17 Pro Max, 16 15 Pro Max Plus, S20, More 4.7 to 6.8" Smartphones Global Recycled Standard
![Car Phone Holder for Magsafe [78+LBS Strongest Suction & 2400gf Magnetic] 360° Adjustable Car Phone Mount, Phone Holders for Your Car for iPhone 17 Pro Max 16 15 14 13 12 Air Plus (Carbon Fiber) Global Recycled Standard](https://m.media-amazon.com/images/I/712lUnThXpL._AC_UL960_FMwebp_QL65_.jpg)
Car Phone Holder for Magsafe [78+LBS Strongest Suction & 2400gf Magnetic] 360° Adjustable Car Phone Mount, Phone Holders for Your Car for iPhone 17 Pro Max 16 15 14 13 12 Air Plus (Carbon Fiber) Global Recycled Standard

Eye Contact Web Camera for Desktop Computer – 1080P USB Camera with Microphone & Stand, Center Cam for Laptop or Desktop, Manual Focus, Plug & Play for macOS & Windows(Black)





















