Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JS Beta: please teach what hardcoding is so people can stop doing it for the challenges and projects #55590

Closed
hbar1st opened this issue Jul 21, 2024 · 1 comment
Labels
status: waiting triage This issue needs help from moderators and users to reproduce and confirm its validity and fix. type: feature request Threads classified to be feature requests. Implementation to be considered as a nice to have

Comments

@hbar1st
Copy link
Contributor

hbar1st commented Jul 21, 2024

Is your feature request related to a problem? Please describe.

I think I must have had to explain hardcoding at least 3 times in the past 2 weeks to different people on the forum who chose to hard-code every single testcase for their projects. I'm a horrible teacher. Please spare me this and add a lesson in the gradebook review or earlier to teach people what hardcoding is and why it is not proper coding. (but that it can be useful for debugging).

Hopefully this is doable.

Describe the solution you'd like

Around the time learners are asked to write a function to add two numbers, maybe step 55? of the pyramid project, people start also hardcoding the example into their function with statements like 5+10 being returned. They don't know that this is hardcoding, so we should teach them this explicitly. We can teach them why it is not what we do in coding and why it is what we do in debugging. Maybe we need to deliberately ask them to hardcode the solution once for example then show them why it is not flexible. Then take them to the point of understanding that coding should not involve hardcoding unless on purpose for debugging? I can squeeze my brain for more ideas if needed, let me know.

Describe alternatives you've considered

The only alternative I know of is to continue to tell people who've hardcoded their solutions not to do it. I suppose we can create a canned response for this scenario to respond to people with. But why not use it as a teaching opportunity in the curriculum?

Additional context

I can provide links to forum posts that features hardcoding if needed.

@hbar1st hbar1st added status: waiting triage This issue needs help from moderators and users to reproduce and confirm its validity and fix. type: feature request Threads classified to be feature requests. Implementation to be considered as a nice to have labels Jul 21, 2024
@jdwilkin4
Copy link
Contributor

I am going to close this since this will be resolved in the proposed updates to functions issue

@jdwilkin4 jdwilkin4 closed this as not planned Won't fix, can't repro, duplicate, stale Jul 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: waiting triage This issue needs help from moderators and users to reproduce and confirm its validity and fix. type: feature request Threads classified to be feature requests. Implementation to be considered as a nice to have
Projects
None yet
Development

No branches or pull requests

2 participants