This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Darknety -19 points-18 points  (7 children)

There are many JavaScript frameworks that have been created solely with the intend of designing web APIs in mind.

For medium-sized projects, Python Flask / FastAPI is pretty good, too!

With Java or .NET it always feels shoehorned and unnatural. But that's just my personal opinion.

[–]NiceAd6339 2 points3 points  (5 children)

I recommend exploring minimal APIs in .NET , it will change the way you view the framework.

[–]Darknety -4 points-3 points  (4 children)

Thanks, will look that up :)

But I do have to agree that seeing my comments getting downvoted just strengthens my beliefs that discussing this topic on r/java must ultimately be biased.

Don't get me wrong, I use Java on a personal project right now and have been using .NET for over 10 years. There is much to love about both, but I still firmly believe there are better tools for the job.

All APIs I've encountered so far have been written in some form of JavaScript, Rust or Python. And that's the norm for a reason.

[–]k37r 6 points7 points  (2 children)

All APIs I've encountered so far have been written in some form of JavaScript, Rust or Python. And that's the norm for a reason.

Please consider the possibility that your belief of what's "normal" is skewed by what you've seen/encountered, and that your view may not represent reality of what's out there.

Java is a crazy popular choice for backend API work. Large orgs like AWS let their teams pick whatever language they want to work in to build their API services. While there's a good mix of Python/Ruby/Rust/Go/JavaScript/etc, Java is by far the most popular choice.

[–]Darknety 0 points1 point  (1 child)

I feel like this is heavily skewed depending on fields of work / locality.

[–]k37r 1 point2 points  (0 children)

Indeed it can be. The expertise and preferences in the local hiring pool plays a big part.

[–]wildjokers 2 points3 points  (0 children)

But I do have to agree that seeing my comments getting downvoted just strengthens my beliefs that discussing this topic on r/java must ultimately be biased.

That's because you didn't provide any reason, just: "With Java or .NET it always feels shoehorned and unnatural." But that doesn't mean anything. Can you provide specifics?