Java

1665 readers
7 users here now

For discussing Java, the JVM, languages that run on the JVM, and other related technologies.

founded 2 years ago
MODERATORS
1
 
 

Hello,

I am trying to make an anonymous chat website like Omegle. I only know Spring Boot and Thymeleaf which means I have to utilize SSR.

Has anyone made a web app using only SSR? Is it even possible?

2
 
 

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.

3
6
Who Uses Vaadin? (vaadin.com)
submitted 3 weeks ago by [email protected] to c/java
 
 

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, and it seems that indeed quite a few companies are leveraging its advantages.

I am curious, anyone else with a positive opinion about Vaadin out there?

Best

4
9
submitted 1 month ago* (last edited 1 month ago) by Custodian6718 to c/java
 
 

Java champions and Senior engineers speaking out against lombok

5
6
9
What's new in Java 24 (pvs-studio.com)
submitted 2 months ago by CodiUnicorn to c/java
 
 

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!

7
12
3,200% CPU Utilization (josephmate.github.io)
submitted 2 months ago by maxint to c/java
8
9
 
 

PVS-Studio has collected the most intriguing Java errors detected in open-source projects

10
14
submitted 5 months ago by CodiUnicorn to c/java
 
 

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!

11
12
 
 

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.

13
5
Java on Kubernetes (www.youtube.com)
submitted 6 months ago by testAccount to c/java
 
 

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"

14
7
submitted 6 months ago by testAccount to c/java
 
 

Even though I don't use Azure, I found this quite interesting.

15
1
YYYY? yyyy! (pvs-studio.com)
submitted 6 months ago by CodiUnicorn to c/java
16
17
18
19
20
 
 

Hey Guys,

For my current spring boot project I have been using a @Scheduled annotation and using cron syntax for running jobs, but now I don't want to schedule jobs on holiday (based on US calendar).

So is there any approach to skip the schedule on holiday.

Thanks for your help in advanced.

21
22
 
 

cross-posted from: https://programming.dev/post/19544005

When managing a database, speed and efficiency are crucial. As applications handle more data and become more complex, the performance of database queries plays a big role in keeping everything running smoothly. One of the best ways to make queries faster is by using indexes. Similar to a book’s index that helps you quickly find a topic, database indexes allow you to find specific data without searching through the entire database. This article explains the basics of indexing, how it improves query performance, and some simple tips for using indexes effectively. Whether your database is small or large, understanding how to use indexes can help keep your application fast and responsive.

23
19
submitted 8 months ago by lysdexic to c/java
24
19
The Arrival of Java 23 (blogs.oracle.com)
submitted 8 months ago by lysdexic to c/java
25
view more: next ›