A simple android app that demonstrate basic linear algebra. - GitHub - Ghodawalaaman/2dBallAnimationAndroid: A simple android app that demonstrate basic linear algebra.


-
Java @programming.dev whoareu @lemmy.ca My first Android app in Java ( made 3 years ago ) :D
github.com GitHub - Ghodawalaaman/2dBallAnimationAndroid: A simple android app that demonstrate basic linear algebra.Hello folks,
I made a very basic game named 2dBallAnimation, it's using basic vector math in order to make the Animation happen.
there is only 3 classes in the entire app:
- MainActivity.java : it gets executed when the app start
- DefaultScreenView.java : it's responsible to make the animation work by doing vector math
- V2.java : contains the x,y values of a vector and methods for vector addition, subtraction, multiplication, normalization etc..
are you Android dev or Java dev? share your thoughts about the app? feel free to give me some suggestion too.
-
Java @programming.dev cyberblob @discuss.tchncs.de Who Uses Vaadin?
vaadin.com Who Uses Vaadin? Well-Known Customers & Success StoriesFrom Johnson & Johnson to Lufthansa, organizations around the world are using Vaadin's Java web frameworks to quickly build enterprise applications.
So far I have worked on many different projects, seeing many different approaches to modern web application development including among others:
Thymeleaf, Freemarker, ZK, Angular2, Vue.js, React and Vaadin
to facilitate rendering of a UI. Obviously, there are always advantages and disadvantages and different paradigms involved.
With all the advantages that do exist with modern js frameworks, it also almost always feels like a lot of bloat and overhead to me to work with these frameworks.
More recently, I did work with Vaadin, and as a Java developer at heart, I rarely felt that much „at home“ for creating a UI.
I have to admit, it is still quite handy to know your js and css for special behaviours and edge cases, but something in me just loves working with Vaadin.
So now we can talk a lot about Performance and stuff, but Vaadin‘s simplistic approach is imho very much appealing to people who Like Java.
It might not be the best fit for everything, but it can surely get you far,
-
Java @programming.dev Custodian6718 @programming.dev java champions speaking out against lombok
www.linkedin.com Why I Believe Lombok Should Be Discarded from Java Projects | Julien PongeThis. Lombok was initially a fun hack, but its widespread use is causing more harm than good. Modern Java doesn’t need this.
Java champions and Senior engineers speaking out against lombok
-
Java @programming.dev CodyIT @programming.dev What's new in Java 24
pvs-studio.com What′s new in Java 24On March 18, a new Java version is set to arrive! Let′s take a peek at new features, including the long-awaited final implementation of Stream Gatherers!
On March 18, a new Java version is set to arrive! Let's take a peek at new features, including the long-awaited final implementation of Stream Gatherers!
-
Java @programming.dev maxint @programming.dev josephmate.github.io 3,200% CPU UtilizationA while back my machine was so messed up that I could barely ssh onto it. 3,200% CPU utilization - all 32 cores on the host were fully utilized! Compare that to my last bug where it only used 1 core, 100% Fortunately, it was using Java 17 runtime which...
-
Java @programming.dev CodyIT @programming.dev pvs-studio.com Top 10 most intriguing Java errors in 2024In 2024, we′ve analyzed a wealth of projects, sharing our discoveries on our blog. Now it′s New Year′s Eve—it′s time to tell festive tales! We′ve collected the most intriguing Java errors detected in...
PVS-Studio has collected the most intriguing Java errors detected in open-source projects
-
Java @programming.dev CodyIT @programming.dev Java serialization: let's dig it up
pvs-studio.com Java serialization: let′s dig it upJava equips developers with convenient tools for serializing objects. Although they seem primitive at first glance, their internal implementation contains a wealth of interesting insights. In this...
Java equips developers with convenient tools for serializing objects. Although they seem primitive at first glance, their internal implementation contains a wealth of interesting insights. In this article, we'll explore the essentials of serialization and its nuances. Let's see how it operates under the hood!
-
Java @programming.dev agilob @programming.dev www.infoq.com Java 24 to Reduce Object Header Size and Save MemoryJEP 450 (Compact Object Headers) has been targeted for delivery in JDK 24. This currently experimental feature optimizes heap utilization by shrinking the size of the mandatory object header in HotSpot. This should reduce overall heap size, improve density of deployments, and increase data locality.
-
Java @programming.dev bahmanm @lemmy.ml AssertJ's custom assertions
cross-posted from: https://lemmy.ml/post/22574276
If there was one reason I liked coding in Java, it'd be AssertJ and its brilliant extensibility.
The image is an example of it from bjForth
The ability to create custom assertions makes the test code concise and read naturally.
-
Java @programming.dev MV (Jerboa dev) @programming.dev Java on Kubernetes
Not a lot of information out there about running Java on k8s
I have also been looking into benchmarks between HTTP servers.
There is this but its just "Hello world"
-
Java @programming.dev MV (Jerboa dev) @programming.dev Containerize your Java applications
learn.microsoft.com Containerize your Java Applications - Java on AzureThis article provides an overview of recommended strategies for containerizing your Java applications.
Even though I don't use Azure, I found this quite interesting.
-
Java @programming.dev CodyIT @programming.dev pvs-studio.com YYYY? yyyy!Do you know what′s the difference between the ′Y′ and ′y′ characters in the Java date pattern? In this article, we′ll explore how an incorrect date format can cause an error. We′ll also introduce our...
-
Java @programming.dev Lanky_Pomegranate530 @midwest.social Need help with Networking homework. FTP program using UDP.
So I am working on a homework project for my network architure class were I have to devlop an FTP program using UDP (not TCP). I was able to get my GET and PUT functions to send a 21byte test file and it worked. However when I tried to do a 1MB file the program hanged and did not send all of the data. I need to be able to send files of 1MB, 25MB, 50MB, and 100MB. Here is my code.
GET (Client Side)
undefined
private static void getFile(String serverFilePath, String clientFilePath) throws IOException { clientFilePath = clientFilePath.replaceAll("^\"|\"$", ""); //Strip quotes if any. if(!clientFilePath.startsWith("/")) clientFilePath = currentDir + "/" + clientFilePath; sendMessage("GET " + serverFilePath); //Write file to client try (FileOutputStream fos = new FileOutputStream(clientFilePath)) { while (true) { byte[] buffer = new byte[BUFFER_SIZE]; DatagramPacket packet = new DatagramPacket(buffer, buffer.l
-
Java @programming.dev LadyLeeLoosh @programming.dev 25 Reasons Why Financial Enterprise Companies Use Java
digma.ai 25 Reasons Why Financial Enterprise Companies Use Java - DigmaI’ve been a Java developer for almost two decades, and one thing has stood out to me: nearly all fintech enterprise companies rely on Java. This trend has
-
Java @programming.dev LadyLeeLoosh @programming.dev foojay.io How to profile a performance issue using Spring Boot profiling toolsProfiling performance issues and establishing robust monitoring and observability are critical for maintaining the health and efficiency of your Spring Boot application.