Creating java code and simplifying execution with JBang

  Рет қаралды 1,166

Daniel Persson

Daniel Persson

Күн бұрын

Пікірлер: 12
@quintesse
@quintesse 4 жыл бұрын
Great video! Btw, a really nice way to show off the usefulness of being able to install multiple JDKs is to use some new code feature that only exists in that version (eg. "record") and then add "//JAVA 15" to the file. If you run it you will see that Jbang will automatically download Java 15 for you before running the code. It makes it really easy to share little snippets of code or small tools without having to worry that the other person has the correct Java version installed.
@digiwizkid
@digiwizkid 4 жыл бұрын
A nice introduction to JBang, please do a simple automation job example using it. Thanks
@DanielPersson
@DanielPersson 4 жыл бұрын
Hi Digiwizkid. Thank you for watching my videos. There is a lot of different automation jobs you could setup but I don't have anything I want to automate with jbang at the moment but if you have a more specific example I might look into it if it's an interesting problem that more people might be interested so see a solution about. Best regards Daniel
@digiwizkid
@digiwizkid 4 жыл бұрын
Hi! Thanks for responding. I was thinking about automating android apps, something like this kzbin.info/www/bejne/eqbCkH2cjdamd9U I do understand the complexity involved in this example, but even achieving a similar simpler task would be great. Regards, Digiwizkid
@DanielPersson
@DanielPersson 4 жыл бұрын
Hi again Digiwizkid. I watched that video and I really like the way he approach it. Played a game 3 years ago on my gaming channel and when I had a puzzle that was so tedious that I did not want to think about the solution I created a program to find all the solutions to that puzzle.. Pretty sure I made a video about it as well but I can't find it now. So the prospect of playing games or solving puzzles with code is a really alluring one so I will look into creating that kind of videos in the future. Not sure what jBang will add to that equation but using java is a given :) Any suggestion on games I can try to solve with code? Best regards Daniel
@LeandroCoutinho
@LeandroCoutinho 4 жыл бұрын
Amazing video! Thanks a lot for doing it! =)
@ЛеонидГ-я1я
@ЛеонидГ-я1я 3 жыл бұрын
Very helpful video. Thank you! But the only thing I cannot understand. How vscode knows how to find dependencies? Deps in comments is not standard. And I couldn't see any .pom .groovy here. Was there some special plugin?
@DanielPersson
@DanielPersson 3 жыл бұрын
Hi Леонид Thank you for watching my videos. Very astute of you; there is special tooling involved here. I run all commands using JBang, which reads those comments, applies missing dependencies, and handles the builds. Unfortunately, VSCode does not handle any of the dependencies and can't really display them either. So for actual java development where you need to keep track of your dependency, I recommend using IntelliJ. I hope this helps. Best regards Daniel
@sharifyy
@sharifyy 2 жыл бұрын
Nice video. Thanks for sharing. How to set port for rest server?
@DanielPersson
@DanielPersson 2 жыл бұрын
Hi Mohamad Thank you for watching my videos. You should be able to change the port using the "-Dquarkus.http.port=8888" according to the documentation. Or you could use the same variable in resources/application.properties. I've not played around more with quarkus so I can't say for sure that this works. I hope this helps. Best regards Daniel
@MaxRydahlAndersen
@MaxRydahlAndersen 4 жыл бұрын
Thanks for spreading the info! Good walkthrough, but doing ./hello.java should actually also work in a bash like env like mingw on windows - if it does not that is a bug - I spent way too many nights checking that worked. If you can reproduce do please open a bug for what you use and I'll get it fixed.
@DanielPersson
@DanielPersson 4 жыл бұрын
Bug is reported and resolved. Great work people.
Development Tools: Getting Started with Java: The JBang Way
26:45
Microsoft Developer
Рет қаралды 5 М.
Camel JBang - Run Camel as Script using JBang
17:26
Saggu
Рет қаралды 1,4 М.
The evil clown plays a prank on the angel
00:39
超人夫妇
Рет қаралды 53 МЛН
VIP ACCESS
00:47
Natan por Aí
Рет қаралды 30 МЛН
Quickly run Camel JBang with Spring Boot or Quarkus
5:59
Claus Ibsen
Рет қаралды 767
I created a game - part 1 [Löve2d]
20:22
Daniel Persson
Рет қаралды 1,1 М.
jbang - Unleash the power of Java by Max Rydahl Andersen
31:35
NVIDIA CEO Jensen Huang's Vision for the Future
1:03:03
Cleo Abram
Рет қаралды 380 М.
Spicing up JMX with Jolokia
30:14
Parleys
Рет қаралды 11 М.
Java 24 - Experimental Escalation
21:33
Daniel Persson
Рет қаралды 160
How to Do 90% of What Plugins Do (With Just Vim)
1:14:03
thoughtbot
Рет қаралды 916 М.
Fast prototyping with Camel Designer and Camel JBang
12:39
Bruno Meseguer
Рет қаралды 873
Where Does Bad Code Come From?
42:21
Molly Rocket
Рет қаралды 212 М.
The evil clown plays a prank on the angel
00:39
超人夫妇
Рет қаралды 53 МЛН