Skip to content

NW | 2026-mar-sdc | Zabihollah Namazi | Sprint 2 | jq #381

Open
ZabihollahNamazi wants to merge 2 commits into
CodeYourFuture:mainfrom
ZabihollahNamazi:ZabihollahNamazi-jq
Open

NW | 2026-mar-sdc | Zabihollah Namazi | Sprint 2 | jq #381
ZabihollahNamazi wants to merge 2 commits into
CodeYourFuture:mainfrom
ZabihollahNamazi:ZabihollahNamazi-jq

Conversation

@ZabihollahNamazi
Copy link
Copy Markdown

Self checklist

  • I have titled my PR with Region | Cohort | FirstName LastName | Sprint | Assignment Title
  • My changes meet the requirements of the task
  • I have tested my changes
  • My changes follow the style guide

Changelist

all are done and please review them , thanks

@ZabihollahNamazi ZabihollahNamazi added 📅 Sprint 2 Assigned during Sprint 2 of this module Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. labels Mar 15, 2026
Copy link
Copy Markdown

@cjyuan cjyuan left a comment

Choose a reason for hiding this comment

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

Your solution works. You may want to check out these alternatives: https://github.com/CodeYourFuture/Module-Tools/tree/solutions/jq (especially the approach that uses string interpolation.)

Comment thread jq/script-03.sh Outdated
# The input for this script is the person.json file.
# TODO: Write a command to output the name of the person, then a comma, then their profession.
# Your output should be exactly the string "Selma, Software Engineer", but should not contain any quote characters.
jq -r '[.name, .profession] | join(", ")' person.json # join works on arrays thats why we need to to put values of name and profession in a array to be able to use join
Copy link
Copy Markdown

@cjyuan cjyuan May 9, 2026

Choose a reason for hiding this comment

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

Inline comments should be avoided in shell scripts unless they are very short, since separate-line comments are generally clearer and safer.

To further improve readability, consider also using empty line as separator to separate the spec and your solution.

Can you improve the readability of your scripts?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

i have done what you suggested
thank you

@cjyuan cjyuan added Reviewed Volunteer to add when completing a review with trainee action still to take. and removed Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. labels May 9, 2026
@ZabihollahNamazi ZabihollahNamazi added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label May 12, 2026
@cjyuan cjyuan added Complete Volunteer to add when work is complete and all review comments have been addressed. and removed Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. Reviewed Volunteer to add when completing a review with trainee action still to take. labels May 12, 2026
@cjyuan
Copy link
Copy Markdown

cjyuan commented May 12, 2026

All good.

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

Labels

Complete Volunteer to add when work is complete and all review comments have been addressed. 📅 Sprint 2 Assigned during Sprint 2 of this module

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants