cloudinary / cloudinary/cloudinary_java
Replace Map usage with OOP design classes
- Ngôn ngữ chính
- Java
- Star
- 175
- Fork
- 113
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
I am currently testing your service and evaluating to be your customer. But i am dissapointedd from the _Java integration_ you provide.
Everywhere you pass generic `Map` instances holding `String` key value pairs for configuration, upload options / results. That is not suitable for an object oriented programming language, and looks like 15 years ago programming style (including underscores).
Also enumeration classes could be used for fixed parameters like transformations and meaningfull exceptions shall be thrown. To detect a **_resource not found_** exception one must check the generic message like `if (e.getMessage().contains("Resource not found"))`.
That key-value and error message approach is very error prone and really not developer friendly.
**Example:**
String publicId = (String) uploadResult.get("public_id");
**Could be:**
String publicId = uploadResult.getPublicId();
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Đánh giá
Issue này chưa được đánh giá.