Skip to content

strings - Expand concept by newline and text blocks #2941

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 4 commits into
base: main
Choose a base branch
from

Conversation

fapdash
Copy link

@fapdash fapdash commented Apr 27, 2025

pull request

  • Add multi-line strings / text blocks (Java 15)
  • Add explanation of newlines / end of line chars, so students can understand the motivation behind text blocks

Noticed that the String concept was lacking text blocks.
While there are quite some details and intricacies to text blocks, they're not relevant for the level of detail the syllabus is aiming for, therefore it doesn't make sense to have them as an extra concept imo.
I added infos about newlines so students can appreciate the motivation behind text blocks.

Looking forward to your feedback. :)


Reviewer Resources:

Track Policies

fapdash added 4 commits April 27, 2025 17:42
- Add multi-line strings / text blocks (Java 15)
- Add explanation of newlines / end of line chars,
  so students can understand the motivation behind text blocks
@fapdash
Copy link
Author

fapdash commented Apr 27, 2025

Not sure if system dependent newlines are too much information for this concept?

I've looked at how other tracks are testing multi-line strings. Elixir uses highschool sweetheart, which asks you to print a multi-line ascii heart. but I'd rather not swap out the whole exercise.

Maybe tell the students that the system should be able to produce a "fancy" message with the log level?

logLevelMessage("warning");
=>
┌───
│   Exercism Log System
│   Level: warning
└───

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.

1 participant