Skip to content

Conversation

@zkhOlga
Copy link
Contributor

@zkhOlga zkhOlga commented Feb 29, 2024

Description

The new entry variables.md is created for Dart

Issue Solved

Closes #4237

Type of Change

  • Adding a new entry under the path: docs/content/dart/concepts/variables/variables.md

Checklist

  • All writings are my own.
  • My entry follows the Codecademy Docs style guide.
  • My changes generate no new warnings.
  • I have performed a self-review of my own writing and code.
  • I have checked my entry and corrected any misspellings.
  • I have made corresponding changes to the documentation if needed.
  • I have confirmed my changes are not being pushed from my forked main branch.
  • I have confirmed that I'm pushing from a new branch named after the changes I'm making.
  • I have linked any issues that are relevant to this PR in the Issues Solved section.

@CLAassistant
Copy link

CLAassistant commented Feb 29, 2024

CLA assistant check
All committers have signed the CLA.

@zkhOlga zkhOlga closed this Feb 29, 2024
@zkhOlga zkhOlga reopened this Feb 29, 2024
@zkhOlga zkhOlga marked this pull request as draft February 29, 2024 17:19
@zkhOlga zkhOlga marked this pull request as ready for review February 29, 2024 17:19
@dakshdeepHERE dakshdeepHERE self-assigned this Mar 6, 2024
@dakshdeepHERE dakshdeepHERE added dart Dart entries new entry New entry or entries status: under review Issue or PR is currently being reviewed labels Mar 6, 2024
Copy link
Collaborator

@dakshdeepHERE dakshdeepHERE left a comment

Choose a reason for hiding this comment

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

I have few comments for you to work on. Overall amazing entry.

Object name = 'value';
```

The Dart Language enforces sound null safety, allowes to set default values, constants and to declare the late variables (for more details see https://dart.dev/language/variables#default-value).
Copy link
Collaborator

Choose a reason for hiding this comment

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

Linking something outside of codecademy platform isn't allowed. Let's remove this hyperlink.

Copy link
Contributor Author

@zkhOlga zkhOlga left a comment

Choose a reason for hiding this comment

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

The suggestions from the code review are implemented

@zkhOlga zkhOlga requested a review from dakshdeepHERE March 11, 2024 10:25
Copy link
Collaborator

@dakshdeepHERE dakshdeepHERE left a comment

Choose a reason for hiding this comment

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

LGTM 🚀

@ishg-153 ishg-153 added status: under review Issue or PR is currently being reviewed and removed status: ready for next review labels Mar 15, 2024
@ishg-153 ishg-153 self-assigned this Mar 15, 2024
Copy link
Contributor

@ishg-153 ishg-153 left a comment

Choose a reason for hiding this comment

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

@zkhOlga Suggested changes to the syntax section. Everything else looks great.

Sorry for the delayed review.

When declaring a variable in Dart, the type of variable goes first, followed by the name, and then the value:

```pseudo
type name = 'value';
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
type name = 'value';
type name = value;

So that value can be any data type.

type name = 'value';
```

The default type 'var' is inferred to be a `string`. If an object isn't restricted to a single type, specify the Object type (or dynamic if necessary):
Copy link
Contributor

Choose a reason for hiding this comment

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

Since we are adding all the values of type can take above, let's make this a note.
> **Note:** text inside note

@ishg-153
Copy link
Contributor

ishg-153 commented Apr 9, 2024

@zkhOlga How are the suggested changes coming along?

@ishg-153
Copy link
Contributor

ishg-153 commented May 8, 2024

Due to lack of response from @zkhOlga I'm moving forward by making the changes

Copy link
Contributor

@ishg-153 ishg-153 left a comment

Choose a reason for hiding this comment

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

Good to merge.

@ishg-153 ishg-153 merged commit ac0d22c into Codecademy:main May 15, 2024
@github-actions
Copy link

👋 @zkhOlga
You have contributed to Codecademy Docs, and we would like to know more about you and your experience.
Please take a minute to fill out this four question survey to help us better understand Docs contributions and how we can improve the experience for you and our learners.
Thank you for your help!

🎉 Your contribution(s) can be seen here:

https://www.codecademy.com/resources/docs/dart/variables

Please note it may take a little while for changes to become visible.
If you're appearing as anonymous and want to be credited, see here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Entry] Variables: Creating new concept entry variables.md

5 participants