Programming
Customizing REST API Error Response in Spring Boot / Spring-Security-OAuth2
Defining error format is important part of REST API design.
Spring-Boot and Spring Security provide pretty nice error handling for RESTful APIs out of the box. Although it has to be documented, especially when contract-first approach to API design is used.
It is good idea to follow some common format for error responses. But OAuth2 specification and Spring Boot format may not satisfy those requirements.
Monitoring your application locally with NewReclic
The New Relic Digital Intelligence Platform provides actionable insights to drive digital business results. You can monitor your application and infrastructure performance so you can quickly resolve issues and improve digital customer experiences.
Following instruction should help you to connect your application to NewRelic platform and customize application events sent to the platform.
The Programmers Oath
A must-see speech by Robert “Uncle Bob” Martin on programmers responsibilities in digital world and 9 principles every programmer should follow (“The Coders’ Code”).
Logging Policy
There are different points of view on how logging levels should be used in code. I will share mine.
My assumption is: “There should be no errors in logs when everything is fine.”
How to Start Testing UI Before Backend is Ready
REST API Design Resources
Selenium Tests with Maven and Selenide
Spring+Freemarker Tips
I hope you will find following tips useful when developing Spring Boot application with Freemarker.
DevMode Javascript Exception Handler
StackOverflow-driven JS development:
try {
something
} catch (e) {
window.open('https://stackoverflow.com/search?q=[js]+"' + e.message + '"');
}