Skip to content

[beta] confusing instructions in Root-level Request Logger challenge - Basic Node #13168

@no-stack-dub-sack

Description

@no-stack-dub-sack

Challenge Name

http://beta.freecodecamp.com/en/challenges/basic-node-and-express/implement-a-rootlevel-request-logger-middleware

Issue Description

The instructions currently say:

Build a simple logger. For every request, it should log in the console a string taking the following format : method path - ip.

But since there is no example provided it is not immediately clear the exact solution the tests will be looking for. Even with an example, I think it could be a bit confusing unless we explicitly spell it out. Even though I had the basics of the code down, I had to look at the solution to get the specific formatting correct.

I was able to get that there should be a dash in between "path" and "ip", but one might think the rest of the spacing is there just to make things readable, not because it is necessarily required.

A better solution might be to change the instructions to say:

Build a simple logger. For every request, it should log in the console a string taking the following format: method path - ip. An example would look like: GET /json - ::ffff:127.0.0.1. Note that there is a space between method and path and that the dash separating path and ip is surrounded by a space on either side...

Note: There are some other issues with this challenge as well from a grammar point of view, so could probably all be fixed with one PR

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions