r/learnjava • u/[deleted] • Aug 03 '20
What are some fun low level things you can do with Java?
Im getting kind of bored of web and android stuff (not as a career but as a student who is learning) and looking to learn more about topics such as embedded programming. I saw some tutorials about java and rasberry pi on youtube but what other options are there? Also, does doing embedded programming make you a better programmer in general or is it more of a niche subject?
86
11
u/alphabytes Aug 04 '20
System.out.println("Hello World");
3
u/Topikk Aug 04 '20
for (int index = 0; index < 100000000; index++){ System.out.println(“Hello World “); }
0
Aug 28 '20
[deleted]
1
u/Topikk Aug 28 '20
You do when it’s on the next line, which is how I wrote it. I forgot reddit discards formatting.
0
Aug 28 '20
[deleted]
1
u/Topikk Aug 28 '20
I just tried it out and was surprised to see it work and end the loop based solely on the indentation.
Even still, I'm not sure why you wouldn't want your loop body more clearly defined than that. That's certainly not going to fly if you're coding professionally and other people need to be able to easily read your code.
6
Aug 04 '20
Java combined with JavaFX is great fun on Raspberry Pi when you combine it with electronic components! Check my blog and book for examples https://webtechie.be/books/
2
u/Mediocre_Bathroom_28 Aug 04 '20
I don't consider it that low level, i'd say lowish moving towards medium level?
But i really like following javafx tutorials from this fella he really goes in depth and it's actually quite nice to follow around and try to add your own thing
1
u/prussianapoleon Aug 04 '20
I know it’s not actually low level, but messing around with FileStreams and making a little program that writes and reads raw bytes to a file was fun for me. I also read about the native keyword which allows bindings to native functions such as C++ files on windows I think. That might be a cool project- make something in C++ and have an interface for Java.
1
u/integralWorker Aug 04 '20
Embedded is more if you're interested in circuits/microcontrollers/FPGA. If you're really interested I suggest you get a STM32 nucleo and "light up an LED with GPIO"
1
u/Mr_Trustable Aug 05 '20
Going through the project Euler archives is always fun, and great practice too
8
u/[deleted] Aug 03 '20
Have you tried playing with OpenGL or Vulkan? LWJGL is fun