In this post I will present you a simple trick about how to make the length of the text shown in a paragraph responsive. The example presented is written in Java Server Pages (JSP) and makes use of JavaServer Pages Standard Tag Library (JSTL), but you can use the same trick with other technologies and media queries as you will find out in the coming paragraphs.
Error handling is one of the most procrastinated and least enjoyable parts when writing code… I mean, why should the application not always work as expected, when we’ve written it with so much passion and care, and, you know, the clients of the application always send the right requests, right?!? Unfortunately things do go wrong from time to time, and when it does we should be prepared to some extent at least… This is especially the case when writing REST APIs, because clients only get a black box with specification, having no clue what to do when the expected answer doesn’t come back, unless we do something about it…
Bottom line: error handling is essential when designing REST APIs.
Looking to REST in Java? Then you’ve come to the right place, because in the blog post I will present you how to “beautifully” design a REST API and also, how to implement it in Java with the Jersey framework. The RESTful API developed in this tutorial will demonstrate a complete Create,_read,_update_and_delete (CRUD) functionality for podcast resources stored in a MySql database.
Just wanted to share some useful resources I came across, when trying to figure out how to expose errors in a RESTful API
- Apigee : RESTful API Design – Second Edition
- Slides – https://www.slideshare.net/apigee/restful-api-design-second-edition/51
- Blog post – RESTful API Design: what about errors?
- API UX
In this post I will present a trick I used to create the responsive menu on Podcastpedia.org :
Source code for this post is available on Github - podcastpedia.org is an open source project.