Code Monkey home page Code Monkey logo

Comments (8)

gikf avatar gikf commented on May 22, 2024

One option could be trying to join the two, when that's possible. Taking the same example as above:

  • One specific user story, using in test the exact values as in the user story.

When the #search-input element contains the value Red and the #search-button element is clicked, an alert should appear with the text "Pokémon not found"

  • One generic user story, where test should be essentially the same as in the specific case, but using different value to search.

When searched text is not a Pokémon name, an alert should appear with the text "Pokémon not found"

from freecodecamp.

ilenia-magoni avatar ilenia-magoni commented on May 22, 2024

note, it's not only an issue for the Pokémon search app, I have seen this for the palindrome checker and the roman numeral converter too

from freecodecamp.

jeremylt avatar jeremylt commented on May 22, 2024

Yeah, campers seem to be struggling really hard with how to create original functions that meet the user story outcomes here.

This isn't wholly surprising, as up to the point where they get to the first project (and some of the later projects) they no longer encounter places where we ask them to generate small functions to accomplish a task. I think the fix is twofold. One, we need to test for and prohibit testing to the solutions. Second, we need to give campers smaller opportunities to build single functions from scratch that meet a tested objective - maybe something that looks like https://www.freecodecamp.org/learn/javascript-algorithms-and-data-structures/#basic-javascript 🙃

from freecodecamp.

a2937 avatar a2937 commented on May 22, 2024

Yeah something like that basic JavaScript path would be great before we get to the html/css/javascript projects considering their bulky size.

As for the prohibiting testing to the solutions, I like the idea of a hidden test with additional inputs the code is tested against rather making all the tests generic. Some specific actual tests are nice so we can run the code right there and see a response in the console. If they're not coding just towards the solution, then those additional inputs will work and everything will be fine.

from freecodecamp.

jdwilkin4 avatar jdwilkin4 commented on May 22, 2024

@a2937 and @jeremylt

Yeah something like that basic JavaScript path would be great before we get to the html/css/javascript projects considering their bulky size.

that is why the new intro project is being created

freeCodeCamp/CurriculumExpansion#374

from freecodecamp.

jdwilkin4 avatar jdwilkin4 commented on May 22, 2024

I vote for this approach

One option could be trying to join the two, when that's possible.

A combination of generic and specific user stories would be ideal

from freecodecamp.

jeremylt avatar jeremylt commented on May 22, 2024

That's a good project but it's one project though. I'm proposing that we give back the campers the opportunities to do many small one off functions to practice open ended problem solving before they get to the certification projects.

from freecodecamp.

Related Issues (20)

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.