Code Monkey home page Code Monkey logo

phase-1-using-array-reduce's People

Contributors

alveem avatar dependabot[bot] avatar drakeltheryuujin avatar graciemcguire avatar hyeokjungkim avatar ihollander avatar jenmyers avatar jlboba avatar lizbur10 avatar maxwellbenton avatar rrcobb avatar thuyanduong-flatiron avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

phase-1-using-array-reduce's Issues

Reference to Object.assign()?

Canvas Link

https://learning.flatironschool.com/courses/4541/assignments/147065?module_item_id=310446

Concern

Hello!

Is this text referencing the Object.assign() method?

**Imagine we also have a sortingHat object that includes an assign() method. That method takes the name of a student as its argument and returns the name of the house the student should be assigned to. We could call this method directly:
sortingHat.assign(studentName);
**
I was under the impression that the syntax for using the Object.assign() method must be Object.assign(targetObject, sourceObject, sourceObject2, etc.). Can it be used in the manner mentioned in the text? Is there a different assign method that can be used in the manner demonstrated?

If this is just a fictional method used to illustrate a point (i.e. this method doesn't actually exist with JS), it might be better to give it a different name to avoid confusion.

Thanks!

Additional Context

No response

Suggested Changes

Use a different name for this method if it's not a real JS method. The fact that there is a real JS Object.assign() method whose syntax differs from the assign() method in the example is confusing.

"Demonstrate using reduce() with an Object as the Return Value" Section For "Using the Array Reduce Method" Lab Should Be Rewritten

Canvas Link

https://learning.flatironschool.com/courses/5284/assignments/172279?confetti=true&submitted=0

Concern

The "Demonstrate using reduce() with an Object as the Return Value" section for this lab should be replaced with a more concise block of code that explains itself.

I really shouldn't have to be reading 5 separate paragraphs to fathom what's really going on, as I really just want to look at code, and its associated patterns so I can learn the pattern, and then apply it to the assignment so it sticks.

This particular section rambles way too much and could be better off by just replacing most of the paragraphs present with just the block of code followed by an explanation paragraph so that the student gets the point.

Additional Context

No response

Suggested Changes

No response

Reduce method example of: reduce with an Object as a Return Value

Canvas Link

https://learning.flatironschool.com/courses/5649/assignments/207821?module_item_id=479040

Concern

There are no technical issues I am referring to. The example of artsShowcases and using reduce to assign "imaginary students" to the empty array value in the objects properties is a mind f. I had to re read that example like 8 times to comprehend where these names came from in the final results of the function method.

//=> [yishayGarbasz, wuTsang, mickaleneThomas] <-- wtf

this is complicated stuff and I will admit for myself I have to go over the new information a couple times for it to really start to sink in. I will be doing that for this lesson do-to it being complicated stuff to a newbie. However, I have to complain about the fact that this delicate information I am trying to understand is only made more blurry when a method is being used (showcaseAssign()) that is quoted as being unimportant for how it works for the sake of the example. I learn by taking the examples and breaking them apart and messing around with them in different ways. I can not do this when data (the students) is not given. Granted I could make my own date structure and assign it to, what the example used, (incomingStudents.reduce) but I do not know everything about JavaScript and as far as my knowledge goes that may or may not be a mistake assuming that I can just make up my own array of students. I don't know if this is making any sense but I just do not like curve balls being thrown my way when introducing a new concept. I suggest using a better example for introducing the reduce() method and its relationship to returning an object as the value. I will be going over this lesson again and hoping I find my foot in my mouth after submitting this. I understand that I may be missing something do to that fact that coding is very abstract so I will be trying to find if what I say is true still holds up in the future or not.
Final thoughts are 1). the example is barely relatable and awkward as a general real world example.
2). explain what showCaseAssign() is before throwing it into an example of a complicated abstract concept.

Additional Context

No response

Suggested Changes

Change the example I referred to.

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.