Coder Social home page Coder Social logo

phase-1-mapping-arrays-readme's Issues

Does 'map' really "transform values from the array"?

Canvas Link

https://learning.flatironschool.com/courses/5185/pages/mapping-arrays?module_item_id=396141

Concern

In the "Callback city" section we say:
We want to transform values from the array,

This makes me cringe a little. :-(
It implies that we are going to change the values - bordering on manipulating the original values of the array.

Additional Context

No response

Suggested Changes

Maybe soften this:
"We want to transform values from the array, ..."

to something like this?:
"We want to do something with each value from the array, ..."

Language of "each value" highlights how every element from the map will be an input.

Phrasing of "Let's accept that" can mislead...

Canvas Link

https://learning.flatironschool.com/courses/5185/pages/mapping-arrays?module_item_id=396141

Concern

Technically, this phrase makes grammatical sense:
Let's accept that callback function as the second argument to map():

However, as a reader, my initial reading of those first three words was as:
Let's accept that the sky is blue.

Given this orientation, I had to backup, reread, reconsider, reprocess - all of that, in order to make sense of the sentence.
That's not useful work/mental processing. Can this line be simplified?

Additional Context

No response

Suggested Changes

Instead of:
Let's accept that callback function as the second argument to map():

How about:
So, let's use that callback function as the second argument to map():

or:
So, let's take that callback function as the second argument to map():

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.