Skip to content

Instantly share code, notes, and snippets.

@AdamBien
Last active February 11, 2025 19:07
Show Gist options
  • Save AdamBien/99e1996d77ffcbe7ad6ce49b5db4797f to your computer and use it in GitHub Desktop.
Save AdamBien/99e1996d77ffcbe7ad6ce49b5db4797f to your computer and use it in GitHub Desktop.
131stAirhacksQ&A.md

Ask questions and see you on February 11th (exceptionally at Tuesday) at 8pm CET (one week later, I'm speaking at jfokus: https://jfokus.se/talks/2524): youtube.com/c/bienadam

Also check out the latest episode:

 airhacks.tv

Please keep the questions as short and as concise as only possible. Feel free to ask multiple, shorter questions. I will also answer some questions in my "shorts" youtube.com/@bienadam/shorts between the shows.

Upcoming airhacks.tv events will also be announced at meetup.com/airhacks

New: The airhacks.tv discord server: discord.gg/airhacks

@AdamBien
Copy link
Author

The purpose of sealed interfaces, classes and records. Inspired by comments in: https://youtu.be/PJw9uzM-5kg?si=RID7FACTQAsz8Clf

@dempile
Copy link

dempile commented Feb 3, 2025

Hi Adam,
We have a big load on the database and we want to implement a caching system in order to reduce the charge, you said that you dont use cache, but we want to know the different layers of cache and the usecases where caching makes the big difference, and what are the best ways to implement it. By the way we are thinking of hazelcast in Payara and Infinispan in Quarkus.
Thanks

@AdamBien
Copy link
Author

AdamBien commented Feb 11, 2025

By FrankTheTank from airhacks discord:

You often mention things you encountered, I would really be interested in, seeing your vast experience as a consultant, are project post-mortems and/or lessons learned.
As the saying goes, no plan survives the initial enemy contact and sometimes you just have to do ugly things.
Would love to hear more.
Kinda like the 'no one uses Java8, where in reality a lot of codebase has been written in Java8 and you often just update the version and add on top. Refactoring everything is just too expensive.

@AdamBien
Copy link
Author

JFokus conference report

@AdamBien
Copy link
Author

@AdamBien
Copy link
Author

So, why not just skip the nesting functions and get straight to using a List function? After all, the Reference Function getting called repeatedly occupies Processing Time, and if you are doing that thousands to hundreds of thousands of times per second (as is common in games as recently as the Nintendo 64's Perfect Dark, and the PC's Minecraft), then you will be able to speed up your game by multiple FPS with such a basic optimization.

I love the explanation BTW.

Youtube Shorts comment: https://www.youtube.com/watch?v=RE19m_OMg8k&lc=UgyCBIUo6r5VlJGwJi14AaABAg

@AdamBien
Copy link
Author

About "Real World Lean Java Practices, Patterns, Hacks and Workarounds" https://youtu.be/ftnH9ZX1Atk?si=AwSgCYl3zi5wFKzN

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment