Skip to content

Update the introduction #2922

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

Open
wants to merge 8 commits into
base: main
Choose a base branch
from
Open

Conversation

chrollorifat
Copy link
Contributor

@chrollorifat chrollorifat commented Mar 4, 2025

pull request

This commit will:

  • Update the introduction with beginner-friendly information
  • Fix some minor grammar

Reviewer Resources:

Track Policies

Copy link
Contributor

@jagdish-15 jagdish-15 left a comment

Choose a reason for hiding this comment

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

I think these changes look good. @kahgoh, any thoughts or feedback?

@kahgoh kahgoh added the x:rep/small Small amount of reputation label Jun 8, 2025

```java
int explicitVar = 10;
```

Updating a variable's value is done through the `=` operator. Once defined, a variable's type can never change.
Updating a variable's value is done through the `=` operator. Here, `=` does not represent mathematical equality. It simply assigns a value to a variable. Once defined, a variable's type can never change.
Copy link
Member

Choose a reason for hiding this comment

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

I think it might more friendly if we just explain what = does (not sure if the "mathematical equality" will be understood by everyone).

Suggested change
Updating a variable's value is done through the `=` operator. Here, `=` does not represent mathematical equality. It simply assigns a value to a variable. Once defined, a variable's type can never change.
The `=` operator assigns a value to a variable. It can also be used to update a variable's value.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

But we have to make the distinction between the equals to and assigning operator clear though. I've seen people not really grasping the difference between them when they start out and they usually take it as a equals to sign.

chrollorifat and others added 2 commits June 12, 2025 23:00
Co-authored-by: Kah Goh <villastar@yahoo.com.au>
Co-authored-by: Kah Goh <villastar@yahoo.com.au>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
x:rep/small Small amount of reputation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants