Episode 465: Kevlin Henney and Trisha Gee on 97 Things Every Java Programmer Should Know

Topics covered
Popular Clips
Episode Highlights
SQL Thinking
The concept of SQL thinking in Java encourages developers to adopt a declarative approach to data handling, moving away from traditional control flow methods. explains that SQL thinking involves framing questions about data in terms of selection criteria rather than loops, which can lead to clearer and more efficient code 1. This approach helps developers focus on the intention behind their code, enhancing their relationship with data collections.
As a developer, you have written all the loops you will ever need to write.
---
By recognizing the logic programming aspects of SQL, developers can apply similar strategies in Java, leading to improved clarity and functionality 1.
Java Streams
Java Streams, introduced in Java 8, offer a powerful way to manipulate data collections using a SQL-inspired approach. highlights how streams allow developers to filter, sort, and process data without explicitly iterating over collections, similar to SQL queries 2. This shift in thinking requires developers to specify what they want from the data, rather than how to retrieve it.
Instead of iterating over and pulling stuff out of our collections, we could say for every one of, well, actually the worst one is for everyone do this thing.
---
The introduction of streams, alongside lambdas, enriches Java's capabilities, enabling more concise and expressive code 2.
Related Episodes


Episode 91: Kevlin Henney on C++
Answers 383 questions

Episode 15: The Future of Enterprise Java
Answers 383 questions

Episode 431: Ken Youens-Clark on Learning Python
Answers 383 questions

Episode 47: Interview Grady Booch
Answers 383 questions

Episode 36: Interview Guy Steele
Answers 383 questions

Episode 462: Felienne on the Programmers Brain
Answers 383 questions

Episode 38: Interview James Noble
Answers 383 questions

Episode 21: Error Handling Pt. 2
Answers 383 questions
Episode 125: Performance Engineering with Chris Grindstaff
Answers 383 questions

Episode 96: Interview Krzysztof Czarnecki
Answers 383 questions

Episode 46: Refactoring Pt. 1
Answers 383 questions

Episode 97: Interview Anders Hejlsberg
Answers 383 questions

Episode 441 Shipping Software - With Bugs
Answers 383 questionsEpisode 7: Error Handling
Answers 383 questions

Episode 112: Roles in Software Engineering II
Answers 383 questions














