Java

1385 readers
1 users here now

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

founded 1 year ago
MODERATORS
76
77
12
submitted 1 year ago by costalfy to c/java
78
 
 

This proposal aims to as the name implies bring more structure to concurrent programming. This will be done by treating related tasks that are running in different threads as a single unit. Thus making it easier for us to manage the state, and also keep an eye on what’s happening.

Note: we won’t be diving into the synchronized keyword, or the Lock interfaces which offer additional capabilities compared to synchronized. But they’re certainly also worth looking into, but which flavour of lock fits best depends on your thread safety & performance requirements.

79
80
81
 
 

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

I came across this semi-randomly by using Search Marginalia to find information on functional programming courses.

I also very much enjoyed the two articles referenced in the footnotes.

82
83
84
12
submitted 1 year ago* (last edited 1 year ago) by LadyLeeLoosh to c/java
 
 

In this blog, I’ll outline why learning and mastering Spring Boot in 2023 is a worthwhile endeavor, even though there may be a few differing opinions. I’ll also explore how Spring Boot compares to other backend technologies and alternative Java frameworks.

85
 
 

Will Amper kill Maven and Gradle?

86
87
88
 
 

Tests can run assertions on your code but also reveal important insights about how your application really works.

Automated testing will assuredly go down in the annals of software development history as one of these industry-changing trends. Although few actually fully adhere to TDD discipline (I am in awe of those that do, just to be clear), most developers make sure to prioritize and include testing in their dev cycle. It took some time, but once the benefits of tests finally sunk into the collective developer psyche, tests successfully evolved from a chore, an inevitable victim of procrastination, to an important area of investment in your personal dev cycle.

Deceptively, the phrase ‘automated testing’ includes a wide gamut of testing techniques and methodologies. From unit tests, often just an echo of your coding assumptions, to integration tests, user-acceptable end-to-end testing, load testing, and more. In fact, early on developers were plagued by hard questions with no definitive answers around exactly that topic: ‘how much’ and ‘what’ exactly should be tested. How do you know you’ve tested enough?

89
 
 

An easy non-obtrusive way to collect data about your dockerized app without changing your existing docker-compose.yml or docker files.

90
91
92
93
11
submitted 1 year ago* (last edited 1 year ago) by lysdexic to c/java
 
 

Saved you a click:

  • JaCoCo for test coverage,
  • PMD for static code analysis
  • SpotBugs (successor of FindBugs) for linting and enforce coding style/best practices,
  • japicmp to check semantic versioning
  • codecov and checkstyle.
94
9
A tale of Java Hash Tables (www.andreinc.net)
submitted 1 year ago by agilob to c/java
95
96
97
98
 
 

Advances in the java programming language, version 16 and newer, slashed a million lines of code from my codebase. Maintaining my programs became easier overnight, due to this 1 secret trick: Records. 
Unfortunately version 16 was not LTS, so I had to wait until this year's release of version 21, which is LTS. 
 Go read the linked article. It explains Java Records in a very approachable manner.

99
14
submitted 1 year ago by agilob to c/java
100
view more: ‹ prev next ›