Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix minor grammar and embolden the golden rule #59

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

fix minor grammar and embolden the golden rule #59

wants to merge 1 commit into from

Conversation

himangSharatun
Copy link

i want to translate this guide into Bahasa Indonesi but i don't have time yet.

Copy link
Owner

@cxxr cxxr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I dislike the changes to making things capitalized like CAUTION. If you revert those I'll look again. Thanks!

own. Better is to make your exceptions extend RuntimeException instead. This
allows your users to handle your exceptions in the way they would like, rather
than forcing them to handle/declare that it throws every time, which pollutes
[Checked exceptions][checkedex] should be used with CAUTION, if at all. They
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I prefer the lowercase version

Try to avoid using nulls when you can. Do not return null collections when you
should have instead returned an empty collection. If you're going to use null,
consider the [@Nullable][nullable] annotation. [IntelliJ IDEA][intellij] has
Try to avoid using null when you can. DO NOT return null collections when you
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lowercase

@@ -247,8 +247,7 @@ public class FooWidget {
```

So now it's clear that *data* will never be null, but *bar* may or may not be
present. *Optional* has methods like *isPresent*, which may make it feel like
not a lot is different from just checking *null*. But it allows you to write
present. *Optional* has methods like *isPresent*, which make it seems similar with just checking *null*. But it allows you to write
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

linebreak

@himangSharatun
Copy link
Author

okay i will fix it but i will create another pull request after i finish translating it to indonesia

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants