javacodegeeks.com

Logic Should Hide In Plain Sight

I’m sure you’ve heard the words “dig in the code” before. It’s the first second thing a developer does when they are new on a project. They open the IDE, look for the app’s entry point and start ctrl+clicking until they find the “business logic”. Then, they start reading the code in order to understand how the puppets in the codebase are brought to life.It’s a common practice, it’s also what I usually do, there’s no way around it in today’s mainstream practices. However, I realised that there should be no such place in...

baeldung

JAX-RS is just an API!

1. Overview The REST paradigm has been around for quite a few years now and it’s still getting a lot of attention. A RESTful API can be implemented in Java in a number of ways: you can use Spring, JAX-RS, or you might just write your own bare servlets if you’re good and brave enough. All you need is the ability to expose HTTP methods – the rest is all about how you organize them and how you guide the client when making calls to your API. As you can make out from the title, this article will cover JAX-RS. But what does “just an API”...