Skip to content

binary and/or trinary: use non-numeric symbols instead of digits? #223

Closed
@kytrinyx

Description

@kytrinyx

In a pull request on the Lisp track @wobh suggested that we switch from using 0 and 1 (and 2) for the binary/trinary exercises, which makes it much more obvious that the exercise is about parsing rather than figuring out how to use the standard library to do conversions from one format to another.

Another suggestion was to leave binary alone, and use non-numeric symbols for trinary, to make these more different from each other.

I like both ideas. I originally made the exercises because a group of students at a developer training program (a.k.a. bootcamp) didn't understand how numbers work, and I wanted to force them to think about it for a bit. Using non-standard symbols might actually make it easier to think about this without getting confused by existing misconceptions.

For binary I was thinking dots and dashes - for zero, . for one.

For trinary, we could either continue on the dots and dashes and add something else to replace 2 (pipe, maybe), or go with completely different symbols, so that it feels different.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions