Skip to content

aljwhara aldossary - selection-project #11

Open
aljwhara0 wants to merge 1 commit intoGDSC-IAU:masterfrom
aljwhara0:master
Open

aljwhara aldossary - selection-project #11
aljwhara0 wants to merge 1 commit intoGDSC-IAU:masterfrom
aljwhara0:master

Conversation

@aljwhara0
Copy link

No description provided.

@aljwhara0 aljwhara0 changed the title all done aljwhara aldossary - selection-project Jan 31, 2024
Copy link
Contributor

@RyamAlmalki RyamAlmalki left a comment

Choose a reason for hiding this comment

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

Good job! 👏 Very proud of you! Can't wait to see more of your work.


void createNote() {
stdout.write('Enter note title: ');
final title = stdin.readLineSync() ?? '';
Copy link
Contributor

Choose a reason for hiding this comment

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

You should check that the user hasn't entered a null title, as you don't want the title to be without a name.

Copy link

@Radwan-Albahrani Radwan-Albahrani left a comment

Choose a reason for hiding this comment

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

Great work. Lacks a bit in creativity though, feels a little plain. Here are some suggestions to help improve functionality.

Comment on lines +42 to +43
stdout.write('Enter note content: ');
final content = stdin.readLineSync() ?? '';

Choose a reason for hiding this comment

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

Same here

Comment on lines +73 to +76
stdout.write('Enter new note title: ');
final newTitle = stdin.readLineSync() ?? '';
stdout.write('Enter new note content: ');
final newContent = stdin.readLineSync() ?? '';

Choose a reason for hiding this comment

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

As well as here

Suggested change
stdout.write('Enter new note title: ');
final newTitle = stdin.readLineSync() ?? '';
stdout.write('Enter new note content: ');
final newContent = stdin.readLineSync() ?? '';
stdout.write('Enter new note title: ');
final newTitle = stdin.readLineSync() ?? '';
if(newTitle.isEmpty)
{
print("Cannot have empty title");
}
stdout.write('Enter new note content: ');
final newContent = stdin.readLineSync() ?? '';

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.

3 participants