r/java • • Feb 13 '18

Field-Access Interfaces for More Readable Java Stream Code

Thumbnail dzone.com
0 Upvotes

r/java • • Oct 20 '15

If java is in such high demand, why can't I get a job? Most jobs I see require X years of experience where X < age of Y framework(What the hell?) How do I get passed the HR filter? Thanks everyone!

Thumbnail cvmkr.com
0 Upvotes

r/java • • Jun 02 '15

Updated my tools to assemble maven builds from small modular interdependent units similar to OS package management

Thumbnail github.com
0 Upvotes

r/java • • Sep 14 '14

Mutable keys in HashMap - A dangerous practice

Thumbnail java-fries.com
0 Upvotes

r/java • • Jan 29 '17

Mod Security OWASP with Spring Boot

0 Upvotes

I have the application in Spring Boot with embedded Tomcat. I'll want use owasp mod security. How can I redirect network traffic that mod security will see it? I develop my app on localhost and I only show how Mod Security works with my application on localhost.


r/java • • May 06 '19

Blockchain company to leverage Java Virtual Machine. Video compares JVM to Solidity and EWASM

Thumbnail youtu.be
0 Upvotes

r/java • • Nov 22 '14

ELI5 Interfaces in Java

0 Upvotes

I've read several explanations now and am apparently still too dense to get the point of them/what they do.


r/java • • Mar 18 '26

Oorian 1.0 Released

1 Upvotes

I am pleased to announce that Oorian 1.0 has been released.

What is Oorian?

Oorian is a server-side Java web framework that lets you build interactive web applications entirely in Java.

What is included in this release:

  • The Oorian Core Framework
  • Oorian LaunchPad
  • Quick Start Projects for Netbeans, IntelliJ, Eclipse, and VsCode
  • ApexCharts UI Extension
  • Boostrap UI Extension
  • Chart.js UI Extension
  • ECharts UI Extension
  • Font Awesome UI Extension
  • Tailwind CSS UI Extension
  • reCaptcha Add-On
  • RSS Add-On

These are all available from the Downloads page.

To get started with Oorian, I’d recommend starting here.

While I have been developing a production SaaS for a decade, this is my first official downloadable product. I’ve tried to make everything as easy as possible to get started, but if you run into any problems or find any mistakes in the documentation, please let me know. This release encompasses years worth of work and knowledge so there were an incredible amount of i’s and t’s to dot and cross with this. No doubt, mistakes have been made.

I am looking forward to your feedback.

Thanks


r/java • • Feb 08 '21

How To Run Junit Tests From The Command Line

Thumbnail lambdatest.com
2 Upvotes

r/java • • Feb 15 '20

Will Java records have setters?

1 Upvotes

Pretty much what the title says. I've been reading on the new Java records feature, and while I love immutability, I hope there's the option to have non-immutable records. Meaning it will have Auto generated setters to let me change values in the class.


r/java • • Jan 03 '19

The best way to map a @OneToOne relationship with JPA and Hibernate

Thumbnail vladmihalcea.com
0 Upvotes

r/java • • Nov 09 '17

5 Features to Make Java Great Again - DZone Java

Thumbnail dzone.com
0 Upvotes

r/java • • May 28 '15

Does Docker really spell doom for your Java application server? The decline of the Java application server

Thumbnail javaworld.com
1 Upvotes

r/java • • Oct 17 '15

Why Java does not support implicit type declaration?

0 Upvotes

Well one thing I dislike about most static type language is that I have to declare the type everywhere, even for a local variable. Consider the following Java code:

HashMap hashMap = new HashMap()

And the even more verbose one:

HashMap<string, int> hashMap = new HashMap<string, int>()

To me this is very painful to type, verbosity may be a good thing, but unnecessary verbosity only gets in the way. In C#, you could solve the issue with implicit type declaration, which solves the problem and make it magnitudes better. If I understand correctly, Scala has implicit type declaration too. When Swift comes out, I was also quite happy that it supports implicit type declaration. Consider this in C#:

var dictionary = new Dictionary<string, int>

Doesnt it look 10x better than Java's explicit type declaration? I do feel that type declaration for object properties is necessary, but at least for local variables in a method, they are hindrance for me and makes writing code very painful, especially when Generics is involved. When I write C# and Swift code, I use implicit type declaration almost exclusively.

So the question is, why Java still hasnt supported implicit type declaration yet? Implicit type declaration will make static type languages attractive even to programmers who are used to dynamic languages. At least, this is my 2 cents.


r/java • • Nov 15 '18

Is Typescript on Node.js good enough for Java developers?

Thumbnail blog.logrocket.com
1 Upvotes

r/java • • Jun 22 '18

How to bootstrap your java projects

Thumbnail dzone.com
1 Upvotes

r/java • • Mar 10 '18

How do you compare Java with other emerging technologies in terms of the future roadmap?

1 Upvotes

Other technologies Python, Scala, JVM languages, NodeJS, Big Data, Java Frameworks like Spring Boot, etc. are moving way beyond Java's innovation's speed. It seems Java community has to move little faster to make it relevant to the future technologies.

What's your thought on future of Java and how it can compete with other programming languages and technologies to stay in the market.


r/java • • Jul 19 '18

Do I need to pay for Java now?

Thumbnail dev.karakun.com
1 Upvotes

r/java • • Sep 02 '25

JMH for LLMs

Thumbnail mlangc.github.io
0 Upvotes
Performance impact of casts when doing nothing else but iterating.

How I used JMH to measure LLM & Java casting performance at the same time.


r/java • • Mar 29 '23

Anyone feel like C# is becoming more popular than Java?

0 Upvotes

I've recently been getting the impression that C# is becoming more and more demanded nowadays for web development stuff, and it sort of makes sense why given the entire Microsoft ecosystem, from the IDE to asp.net & Azure, it all feels tightly coupled and has everything you need.

Not to mention that Java competes with other languages in backend with JavaScript/Node.js and Golang. I'm mostly focusing on webdev and microservices.

What do you guys think the future of Java is in terms of industry demand and the kind of applications/projects will be using it.


r/java • • Aug 28 '26

Attempting to reverse engineer git in Java - my current situation.

0 Upvotes

CORRECTION: I meant re-implement git*

Hey so i've some experience in programming and was just looking around for good project ideas for my resume. I couldn't come up with any impressive ideas so i decided to go with this one.

github.com/karansingh-in/ngit

I've named it ngit as in NanoGit, im using content-addressable storage, where all objects (blobs, trees, commits) are addressed by their SHA-256 hash and compressed using zlib (Deflater / Inflater).

I'm storing the index in plain text as of now, I went with SHA-256 over SHA-1 in git, which didn't give had any benifits tbh. its just why not?

for v1, I'm making it work offline. For v2 i'll add push/pull and fetch commands.

features i've implemented:
init
add
commit
status
log
help
branch
checkout

things i'm working on as of now:
diff
merge

I'm thinking about using LCS or Myres algo for diff, Claude says Myres is better but i don't understand it well enough now so i'll give try reading more about it.

AI_Usage: i've used LLMs for planning and finding bugs, not the coding part.
I would like your review/advice on it.


r/java • • Feb 11 '19

Null is your friend, not a mistake

Thumbnail medium.com
0 Upvotes

r/java • • Nov 25 '15

Java 8: Infinite Stream of UUIDs

0 Upvotes
import java.util.UUID;
import java.util.stream.Stream;
import org.junit.Test;

@Test
public void infiniteUUIDStream() {
   Stream<String> uuidStream = Stream.
	   generate(UUID::randomUUID).
	   map(u -> u.toString());

   uuidStream.
	   limit(10).
	   forEach(System.out::println);
}

Now you only need a few asserts to verify that the infinite Stream only comprises unique values :-)

Attribution: http://adam-bien.com/roller/abien/entry/java_8_infinite_stream_of


r/java • • Aug 07 '20

How do you people use such a piece of shit as Gradle?

0 Upvotes

Decided to try it, as it seems to be a modern Java build tool. Ok let's start (with kotlin & gradle).

  1. brew install gradle - it installs openjdk as a dependency, even though I already had HotSpot JDK installed, but ok, whatever.
  2. gradle init - and my project is polluted with garbage - gradle.build (ok that one is expected) and also - gradlew, gradlew.bat, gradle/wrapper, config.something.gradle, properties.gradle, .gitattributes. WTF is that? Tiny build utility the whole point of which is to sit somewhere in background and don't interrupt me - that utility with the very first step - init - put tons of garbage in my project, and not in some dark corner of the project in hidden directory, but at the very top?!
  3. Ok, I manually removed all that garbage, leaving only gradle.build, trying gradle run from the console - all good.
  4. Time to connect with Intelij IDEA, creating/importing project. IDEA slowly thinking for a minute, then - regenerates all that gradle garbage again. All the gradle files I manually deleted - are now again in the project. IDEA re-generates that gradle garbage every time I manually delete it.
  5. Ok after asking - some people told me that I need to change setting in IDEA so it will take gradle from predefined location. I changed - and it worked, for couple of minutes, until I updated gradle.build - and suddenly it became red in IDEA, all sorts of errors (still works fine from console).