![Adam Bien](/img/default-banner.jpg)
- Видео 1 329
- Просмотров 3 334 426
Adam Bien
Добавлен 13 дек 2011
Screencasts around Java, Clouds, Web, Web Components, MicroProfile, Java EE, Jakarta EE, software architecture and software development
124th airhacks.tv: GraalVM, J2EE Migrations, Serverless, Databases #airhacks #live
Join the airhacks.tv discord server: discord.gg/airhacks
airhacks.tv - the monthly (first Monday of the month, 8pm CET/CEST) Questions and Answers live streaming show. The live dates are also announced on: adambien.blog and meetup.com/airhacks
This episode of airhacks.tv covers:
"
Migration from EJBs to Jakarta EE, stateful EJBs and passivation, scopes in Java EE, pooling in EJBs vs CDI, request-scoped vs application-scoped beans, concurrent data structures, entities vs scoped beans, GraalVM use cases, serverless Java deployment, managing multiple environments in serverless, versioning and blue-green deployment in serverless, professional coding practices, Java's role in database engine dev...
airhacks.tv - the monthly (first Monday of the month, 8pm CET/CEST) Questions and Answers live streaming show. The live dates are also announced on: adambien.blog and meetup.com/airhacks
This episode of airhacks.tv covers:
"
Migration from EJBs to Jakarta EE, stateful EJBs and passivation, scopes in Java EE, pooling in EJBs vs CDI, request-scoped vs application-scoped beans, concurrent data structures, entities vs scoped beans, GraalVM use cases, serverless Java deployment, managing multiple environments in serverless, versioning and blue-green deployment in serverless, professional coding practices, Java's role in database engine dev...
Просмотров: 290
Видео
JVector: Cutting-Edge Vector Search in Java
Просмотров 19114 часов назад
An airhacks.fm (airhacks.fm) conversation with Jonathan Ellis (@spyced ( spyced) ) about: discussion of JVector, a Java-based vector search engine, Apache Kudu (kudu.apache.org/) as an alternative to Cassandra (cassandra.apache.org) for wide-column databases, FoundationDB (www.foundationdb.org/) - is a NoSQL database, explanation of vectors and embeddings in machine learning, differe...
Object-Oriented Programming (OOP) vs. Data-Oriented Programming (DOP) in Java
Просмотров 429День назад
Object-Oriented Programming (OOP) vs. Data-Oriented Programming (DOP) in Java
Single File, Zero Installation, No Dependencies Java Web (Dev) Server #java #coding #airhacks
Просмотров 93614 дней назад
Single File, Zero Installation, No Dependencies Java Web (Dev) Server #java #coding #airhacks
From JSP to Rife and From Kotlin to Java
Просмотров 23714 дней назад
From JSP to Rife and From Kotlin to Java
"No Dependencies" Java 21 / LLM / Llama3 Integration #java #coding #airhacks #llama #llm #genai
Просмотров 1,5 тыс.21 день назад
"No Dependencies" Java 21 / LLM / Llama3 Integration #java #coding #airhacks #llama #llm #genai
123rd airhacks.tv: Lambda Communication, EDAs, Step Functions and llama #airhacks #live
Просмотров 360Месяц назад
123rd airhacks.tv: Lambda Communication, EDAs, Step Functions and llama #airhacks #live
Observability-Driven Development with Digma, Serverless and Java
Просмотров 200Месяц назад
Observability-Driven Development with Digma, Serverless and Java
Exploring ONNX, Embedding Models, and Retrieval Augmented Generation (RAG) with Langchain4j
Просмотров 173Месяц назад
Exploring ONNX, Embedding Models, and Retrieval Augmented Generation (RAG) with Langchain4j
High-Performance Java, Or How JVector Happened
Просмотров 281Месяц назад
High-Performance Java, Or How JVector Happened
From Bare-Metal JAR to Serverless Lambda with Quarkus and MicroProfile #quarkus #airhacks #java
Просмотров 957Месяц назад
From Bare-Metal JAR to Serverless Lambda with Quarkus and MicroProfile #quarkus #airhacks #java
llama2.java--Llama 2 in With One Pure Java 21 File #java #coding #airhacks #llama #llm
Просмотров 1,4 тыс.Месяц назад
llama2.java Llama 2 in With One Pure Java 21 File #java #coding #airhacks #llama #llm
LLama2.java: LLM integration with A 100% Pure Java file
Просмотров 309Месяц назад
LLama2.java: LLM integration with A 100% Pure Java file
122nd airhacks.tv: Serializable, parallelStream() vs. Reactive Programming, EpsilonGC #airhacks
Просмотров 604Месяц назад
122nd airhacks.tv: Serializable, parallelStream() vs. Reactive Programming, EpsilonGC #airhacks
How To Learn Quarkus #java #coding #airhacks #quarkus
Просмотров 1,6 тыс.2 месяца назад
How To Learn Quarkus #java #coding #airhacks #quarkus
Application Configuration with Java's Preferences API #java #coding #airhacks
Просмотров 1,1 тыс.2 месяца назад
Application Configuration with Java's Preferences API #java #coding #airhacks
bld 🛠️ vs. Apache Maven #java #coding #airhacks #bld
Просмотров 1,5 тыс.2 месяца назад
bld 🛠️ vs. Apache Maven #java #coding #airhacks #bld
bld 👉 The Hypersonic Java Build Tool #java #coding #airhacks #bld
Просмотров 1,2 тыс.2 месяца назад
bld 👉 The Hypersonic Java Build Tool #java #coding #airhacks #bld
121st airhacks.tv: Serverless Java with AWS Lambda, Frameworkless, Testing, #airhacks #live #java
Просмотров 5402 месяца назад
121st airhacks.tv: Serverless Java with AWS Lambda, Frameworkless, Testing, #airhacks #live #java
Underscore, Pattern Matching, Java LTS And When Previews Are Stable
Просмотров 2412 месяца назад
Underscore, Pattern Matching, Java LTS And When Previews Are Stable
Integrating AI with Java: Quarkus and Langchain4j
Просмотров 3723 месяца назад
Integrating AI with Java: Quarkus and Langchain4j
Java 22+: Run HTTP Server Project Without Compiling #java #coding #airhacks
Просмотров 1,5 тыс.3 месяца назад
Java 22 : Run HTTP Server Project Without Compiling #java #coding #airhacks
If y’all haven’t seen Adam Bien live, do so! It’s such good comedy! I still have very fond memories of a talk at Jax many many years ago 👌 It was about EJB and he just created an interface and then the class for it saying „we call it the same name + Impl“ to emphasise the decoupling between the two 😜 And it just kept going ❤️ It was so refreshing after the other more serious talks at that conference
Thank you so much! I'm going to w-jax this year, so if you're also attending, please say hello! Back to "Impl": I recently reviewed a project with hundreds of 1:1 Interface -> Impl pairs and marked it as a defect.
Super usefule like most of thes shorts.... NOT
Thanks, Adam for your effort. I really like your short videos.
it's actually really cool but still using the ms notation doe to the fact that lot of languages uses just ms fact is that in case I don't want to express "seconds" this becomes really really handy, ty
What about: System.out.println("good night"); Thread.sleep(Duration.ofMillis(1_000)); System.out.println("good morning"); Thank you for watching!
There is a better option TimeUnit.SECONDS.sleep(1) since Java 1.5
I was always convinced, this man is an imposter. 😂😂😂 Does not know about he talks. Really sad.
In latrst java version concerning single claass app you can run and compile in one step 😊
That's not a deadlock at all! Study finite automata theory first, before publishing random code examples
how to sleep 8 hours in 1 nanosecond😅
...I would even invest a whole millisecond for 8 hours of sleep 😀
If you need this in Java, the probability that you are doing something wrong is high.
Please elaborate beginner here
I have a concrete use case that I will implement soon - and maybe make a short film about it 😀 The "Serve and Open" github.com/adamBien/SaO.java is a development tool that starts an HTTP server and opens a default browser with the configured URI. But: to open a specific browser you need an OS specific command (e.g. open -a Chrome on Mac). By the way, I got questions about Windows support right after the release. That's why I need to know the OS...
And thanks for your response about Java and database engines, I will working in a edge cloud database system using Java.
"edge cloud database system using Java"? 👉 you are invited to: airhacks.fm for a chat. Btw. this is the reference to the podcast I mentioned during the show: airhacks.fm/#episode_295
I usually use webjars when programming using templates in Java
Thank you for your feedback. Good to know!
Interesting...❤
Thanx good to know but is it useful.
Can you do this in prod?
It depends on the load / operation per second. I would use it in prod after performing load tests and measuring the impact. Thanks for watching!
Why is the code wrapped inside an interface? Isn't an interface requires only abstract methods?
Look the previous Videos, Adam explains this also, that is possible to use interfaces with main Method.
Exactly: "Why the main() Method Belongs in an Interface" 👉 ruclips.net/user/shorts3A1TmTm01Q0 Thank you!
What does it do in real life if i make a java app? Will it make the app run faster?
For the efficiency nerds, no, you should never do this in hot code or real time systems or anything that needs efficiency
Why?
@@HtcMega having each operation include a branch in your CPU is basically a sentence to death for your efficiency
Just switch to BigInteger 🙂
java is coooool
👍 Thanks for watching!
👌
Adam, do you think Java is losing space in the development of database engines? What do you see in Java development that will remedy this?
An interesting question! I will cover the question at the 124th airhacks.tv livestream: adambien.blog/roller/abien/entry/ejb_migrations_kubernetes_serverless_java Thank you for listening!
This Design desicion is horrible. Given you work on a lib and change your collectors (like sonar will advice you). Now you`re changing the behavior without the Client beeing able to check this at compile time. Don`t ask me how i know.
What’s is benefit or advantage of doing that ?
Using enums to do polymorphism can have performance improvements due to the compiler knowing the exact size of any variant of Languages. Vs if you used an interface the compiler does not necessarily know you didn’t add more fields to a specific implementation of languages and thus must be stored on the heap.
There are no advantages, just another option that might be helpful. I'm working with enums a lot and got the idea to record this short. Thank you for watching!
This is some kind of wizardy
We call it just: "Java" 😊 Thanks for watching!
Cool!
👍
🙏😊
Why you use interface
"Why the main() Method Belongs in an Interface" 👉 ruclips.net/user/shorts3A1TmTm01Q0 Thank you! 😀
Just reading "interface App" reminds me why I quit Java and never bothered to touch it again.
Disclaimer: Java developers don't write main methods very often. However: just rename it to '"class App" and you are back in the game. Btw. I have a lots of fun with Java Thanks for watching my Java shorts 😀
It reminds me. When i was so beginner (still a beginner) i was doing something with this but i really don't remember (i like playing with programming language to understand it 😅😅) i was pulling my hair why it gives me this behaviour and i searched alot to know that. But still don't know why this behaviour. Why no turning it to long for example. Also this behaviour occurs with long types
This is terrible behavior, they should just give you an exception so it doesn't go unnoticed when it happens. Kotlin and C++ seem to do the same thing.
This is also possible: "Preventing The Integer Overflow" 👉 ruclips.net/user/shortsiZeUJTHWIYI Thank you. The short in the reply was inspired by your comment.
How to avoid it or get an exception when it is underflow or overflow?
Getting exceptions is easy in Java 😀: "Preventing The Integer Overflow" 👉 ruclips.net/user/shortsiZeUJTHWIYI
I am trying to raise a Jboss on port 1543 but I get this error "Caused by: java.lang.IllegalArgumentException: port out of range:-2188" using the offset ports option, I cannot raise a Jboss with a lower port to 2188?
hi Adam
The int subtraction can overflow. You can instead use Integer.compare(this.number, other.number).
+1 Delegating to Integer is also more readable. Thanks for watching!
...like this?: ruclips.net/user/shortsJO_l5BwlQRE?feature=share 😀 Stay tuned.
Thanks for the hint 👉 ruclips.net/user/shortsDcl-m45ZCi4?feature=share 😊
The Abstract Factory pattern is there. Using runtime polymorphism it will decide.
Thank you Adam🙂
Does this apply to fetching values of same/different keys via multiple threads as well?
Sorry im pythonic, C, C++ and dart but hate java
back in black
...after White Wedding
Only when I try to write into a hashmap?
your videos are so cool ❤
Thank you for watching! Java is cool 😀
Cool!
Thanks!
This is really cool for debugging. Because sometimes you just want to check if your long chain of steaming methods are doing the right thing! Nice! So you could also use a logger as consumer, right?
Sir tips and tricks you can recommend for peeps to improve their algorithm
Cool! Thanks for sharing! 👍
After watching the video. I use the same thing in my code and it work. Thanks for creating the video
Actually quite useful! Thanks
This one was good
Only the most homosexual features for the most bloated language for the most bloated runtime lol
I suspect that you never bothered to learn how to leverage Javadocs to understand what Java classes do, and how to use them.
@@MarkJaeger Bruh if your functions don't need to fit into classes, have good names, have reasonable arg names, and aren't too convoluted, you don't need documentation for the vast majority of your functions.
@@HansPeter-qg2vc you ignore the fact that not all code is for internal consumption. If you want to publish a public API, it's irresponsible to fail to provide Javadocs.