WTF Is the Deal with the ES6 Section?

Coming right off of Basic JavaScript we’re bombed with filter() and map() and chaining callbacks on top of it all in a lesson that’s supposed to be simply about proper arrow function notation.

W, T, F was the Challenge creator smokin’???

NB4 you “well pro devs spend 99% of their time googling” me, I just wanna know WTF the lesson creator was smokin’…

2 Likes

Hi, can you please provide a link to the lesson?
It’s kind of complicated to give you a feedback without one.

1 Like

Seriously, though, really need to work on how to develop these lessons…segue smoothly into things…not just hit people up all at once with stuff that’s never been covered!

This:

https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/es6/write-higher-order-arrow-functions/

It’s like the very beginning of the ES6 Section…just very strange how suddenly a bunch of never-before-imagined stuff is just thrown in there in a lesson that’s about something else entirely!!

I checked it and I see nothing strange about it.
That lesson is not meant to teach filter, map and chaining function. It merely touches them to provide an example of a function that has another function as a parameter. You’ll see map and filter along with reduce in the “functional programming” section.
That lesson is teaching you how to use the arrow notation instead of the equivalent normal function declaration that is present in ES5.
The example of map and filter are there to provide a context in which you can use the arrow notation.

Also, please, do consider the fact that this is a free course developed by volunteers and attacking like this is not very nice (I honestly wanted to flag your initial post since it sounds extremely rude).
If you instead want to contribute to the challenges I’m sure the devs will be happy for it. I kinda understood they are reviewing the challenges for the new version of FCC anyway.
Also, for how I see it, the course is not meant to hold your hands in every context. It’s here to give a guidance, a direction.
Than it’s up to you to study it in the official documentation. This is true both for the lessons (they can’t be too deep) and for the projects (where surely you’ll have to look for stuff by your own).
I know this is an answer that you won’t like, but this is part of getting knowledge and getting the fundamental skill of “problem solving”.

3 Likes

I checked it and I see nothing strange about it.

Really?? Going from “Guten Morgen, Herr JavaScript” to “Konzeption betriebswirtschaftlicher Anwendungen mit hoher Usability mit Design Thinking oder Lean UX Methoden für unsere Kunden unter Berücksichtigung der Nutzeranforderungen und aktueller technischer Trends” isn’t strange to you???

That lesson is not meant to teach filter, map and chaining function.

And yet it absolutely requires them. I actually looked up the filter() and map() quickly enough but didn’t realize function chaining was even a thing and wasted two to three whole hours over my Sunday trying every which way to “hack” the code until I was forced to give up and look at the hints…

That lesson is teaching you how to use the arrow notation instead of the equivalent normal function declaration that is present in ES5.

Yes, so why bring in all that other jazz – especially without even mentioning function chaining (which is required to solve the Challenge)???

Also, please, do consider the fact that this is a free course developed by volunteers and attacking like this is not very nice (I honestly wanted to flag your initial post since it sounds extremely rude).

Incompetence is incompetence. It’s really too bad that people are so politically correct about everything, JFC…what’s rude and not very nice is putting up a lesson with a secret requirement (function chaining) that’s never been covered before!!!

Also, for how I see it, the course is not meant to hold your hands in every context. It’s here to give a guidance, a direction.

No, that’s not the promise of FCC. This is supposed to be a complete course in itself. Of course it won’t be exhaustive but it’s supposed to be a complete course.

Stop excusing the inexcusable. THIS IS EXACTLY WHY WE HAVE BUGGY SOFTWARE – OH WELL IT’S FREE, IT’S CHEAP, IT’S BRILLIANT OTHERWISE, STOP COMPLAINING.

I know this is an answer that you won’t like, but this is part of getting knowledge and getting the fundamental skill of “problem solving”.

How about the fundamental skill of learning to communicate and proper pedagogy??? Did Larson review this??? He’s supposed to have been an actual teacher…

I heard there’s a beta version of a new curriculum which makes more sense

1 Like

Please keep the tone civil in this discussion. Thank you.

Thanks, but that’s been bandied about for some time now.

I’m just really surprised anyone ever approved of the ES6 Section. It’s like every other Challenge was written by someone with a total lack of understanding of how to actually teach.

Like okay class, we’ll learn how to say good morning in French today…then the next day it’s the pluperfect tense! And the next we’ll do how to count in French…and the day after it’s the past subjunctive imperfect!!!

It’s been civil. Have you actually worked as a developer?? I’m Mr. Cotton Balls compared to how a real-world code review is.

Stop trying to censor people. The ES6 Section is blatant incompetence – it’s pedagogical malpractice is what it is!

Hi, professional developer here: tone it down please. You would get reprimanded for using this tone in most real world code reviews.

Also, as a former teacher, with a Masters degree in education: it is not pedagogical malpractice. It’s just not as clear as it could be.

As a member of our community with an interest in seeing it improve, you can submit issues to GitHub to suggest how the challenge could be improved.

You can do so here: https://github.com/freeCodeCamp/freeCodeCamp/issues

Just be sure to check the issue hasn’t already been raised.

10 Likes

Honestly, I had a hard time with this one as well and I had a similar reaction when being thrown functions that I had barely used before. Didn’t help that a lot of the “solutions” found were for older versions of the lesson.

Ultimately, I was able to find some good guides on taking a base function and working backwards through a series of steps to put it in the arrow function format. It can be found Here

My solution:

const squaredIntegers = arr.filter(x => (x > 0)).filter(n => ((n - Math.floor(n)) == 0)).map(g => g ** 2);

I recommend you to follow this order instead of the one given by default. I’ve run to the same “WTF is all this” but following the order that user recommends helped me inmensely.

2 Likes

I’ve basically paused my whole route … to try and even figure out what don’t I get about what’s going on … I can get past the one project, but I dont want to just go past it without understanding intrinsically what I dont get about it all … turns out …

Part 1. The answers were too advanced too (So I’m not going to copy and paste something for that sake … I need to learn how to visualize the embedded paths of the functions running within each other … etc)

Part 2. Recurring functions

Part 3. I did try gamincode ? codingame or something like that … they were even more advanced … I literally did copy and paste for 1 and a half lessons

Part 4. I’ve been reading a lot, and trying to understand a lot else … but it truly comes down to … Many do need training on how to understand to think to program Declaratively

Part 5. I can understand this person … my perception (may be incorrect, but … it has to do with . If someones going to teach someone else, and prepare teaching for them, then prepare teachings as if a student does not already know everything that you or other students know already … So for example … I had to learn to control myself doing tech phone support when I was younger and pre realize that not all adults are phoning just for help with their familiar computer, sometimes, they’re the grandmum phoning for help because their grandson is away and called their grandmum to please help them check their email (yes … back then 56k modem days), and the grandmum has never used a computer in her life … so I had to realize that and patiently understandingly step her through everything knowing that she knows very close to nothing about her grandsons computer at all) …

Part 5. I really wish I could learn as that guy that studied from your courses and then got a junior programming job … but it hasnt been that way for me (yet? wishing hoping studying*)

Part 6. I’ve also found a really super source which I’m also trying to read and learn to understand how more advanced percievers and thinkers and coders proceed … https://eloquentjavascript.net/

1 Like

Also consider grandmum is calling for tech support because she wants to hear from you :slight_smile:

1 Like

xD lol ^^ thanx ^^

Oh the irony. :slight_smile:

2 gentle points:

  1. You have a point but your message is lost in the way you’re communicating it. You are consequently receiving feedback on your communication style and approach. Take it to heart, think about it. Do not give in to the impulse to immediately respond with more belligerence. Taking a more co-operative, patient and less polemical approach will be much more productive, I guarantee it.

  2. I’d like to reiterate JacksonBates’ advice: Open an issue about it and try to get an improvement made. Report your experience and motivate the case and you should be able to get it changed, so those who follow won’t fall down this weakness anymore.

Good luck to you. :slight_smile:

1 Like

I agree, the ES6 section was brutal.
I think you should be a little less critical of a FREE code camp though.
Suggestions are ok, but you’re acting like you just paid $500 for these lessons.

No, that’s not the promise of FCC. This is supposed to be a complete course in itself. Of course it won’t be exhaustive but it’s supposed to be a complete course.

I think for the most part FCC is the one stop shop for this. Even if you do other courses, like codecademy, they link to the MDN docs in case you need to look up what you are being taught. I wouldn’t say that the creators of FCC are incompentent when one portion of a course with 1000+ hours is not as well put together.

NB4 you “well pro devs spend 99% of their time googling” me, I just wanna know WTF the lesson creator was smokin’…

Maybe that is the goal of this particular lesson, to get you exposed to situations you aren’t as comfortable with and spend some time researching it. If that is the case then I say they hit a bulls-eye on it.

2 Likes

As mentioned by @luishendrix92 there is a beta version and it’s actually public now, and that particular exercise is gone … https://www.freecodecamp.dev/learn/