exercism / common-lisp

Exercism exercises in Common Lisp.
https://exercism.org/tracks/common-lisp
MIT License
82 stars 77 forks source link

[v3] Implement new Concept Exercise: strings #311

Closed TheLostLambda closed 3 years ago

TheLostLambda commented 4 years ago

This document describes how to implement the strings concept exercise for the Common Lisp track.

Please also watch the following video:

Goal

The goal of this exercise is to familiarise students with strings in Common Lisp and some of the functions for creating and manipulating them (including the relevant sequence functions).

Additionally, the student should be taught how to print values to both strings and the standard output. The focus should be on non-format printing functions, as format is a complex topic for another set of exercises.

Learning objectives

Out of scope

Concepts

Prerequisites

Resources to refer to

Hints

After

More human-friendly print functions could be mentioned (princ, terpri, etc.)

Representer

Analyzer

Implementing

Printing can be mentioned as a debugging technique for the online test-runners, but isn't a large focus here. The focus should be on doing something interesting with string manipulation.

Help

If you have any questions while implementing the exercise, please post the questions as comments in this issue.

verdammelt commented 4 years ago

This looks good. There are a lot of functions to talk about here - but I think it will give the student a good foundation of strings.

TheLostLambda commented 4 years ago

It is a bit big. I agrees they are good to include, but we can always look into splitting things up if implementing the exercise becomes difficult!

verdammelt commented 4 years ago

There are a few possible seams to split along, perhaps splitting off searching, splitting off printing...

But I think we should leave that to implementation - like you said - we can split it up if it is too hard.