Replace Map usage with OOP design classes
@aleksandar-cloudinary đang làm issue này rồi.
Từ ngày 13/6/2020.
Đánh giá
Issue này chưa được đánh giá.
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();
- Ngôn ngữ chính
- Java
- Star
- 176
- Fork
- 113
- Merge trung bình
- 9 ngày 20 giờ
- Pull request đã merge (30 ngày)
- 2
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Không có hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của cloudinary/cloudinary_java
-
`options` map modified directlyCó thể làm lại được @adimiz1 đã nhận 481 ngày trước và không có pull request nào đang mở. Đang mở
cloudinary/cloudinary_java#383 · 3 bình luận · 1 reaction · 1 người được giao ·
-
Api#resourceByAssetID does not support same options as in documentationCó thể làm lại được @adimiz1 đã nhận 646 ngày trước và không có pull request nào đang mở. Đang mở
cloudinary/cloudinary_java#357 · 2 bình luận · 1 người được giao ·
-
Readme - Maven dependencyCó thể làm lại được @adimiz1 đã nhận 754 ngày trước và không có pull request nào đang mở. Đang mở
cloudinary/cloudinary_java#349 · 1 bình luận · 1 người được giao ·
-
cloudinary-http5 ignores system propertiesCó thể làm lại được @adimiz1 đã nhận 754 ngày trước và không có pull request nào đang mở. Đang mở
cloudinary/cloudinary_java#348 · 2 bình luận · 1 người được giao ·
-
Make usage of http clients (apache, OkHttp, Jetty, Asynch) easierCó thể làm lại được @ManishS6 đã nhận 772 ngày trước và không có pull request nào đang mở. Đang mở
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
cloudinary/cloudinary_java#343 · 6 bình luận ·
Tất cả issue của cloudinary/cloudinary_java
Issue tương tự
-
bug(core): skip_nodes.json is missing SELECT and PRE, causing Python and Java to insert separators into dropdown options and preformatted textCó thể đã có người làm @Bhumit267 đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
Maintainer thường phản hồi trong vòng 1 ngày
-
ExceptionThrowShouldUseContext: NullPointerException on a catch block inside an annotation typeCó thể đã có người làm @Carbon14-48 đã nhận hôm nay. Đang mởapproved
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
checkstyle/checkstyle#22784 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
ASSERT-KTH/depclean#591 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Api537FlareFlameModel.setStackHeightM accepts a negative heightCó thể đã có người làm @EvenSol đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
Maintainer thường phản hồi trong vòng 1 ngày