Foundations: Declaring variable in tutorial task seems deprecated #25450
Replies: 8 comments
-
Hey @dariocodes What do you think the solution would be. To provide a warning with a link to the SO post? |
Beta Was this translation helpful? Give feedback.
-
Hello, I've seen this issue being brought up a couple of times in discord recently, therefore I think it might be important to resolve it. My initial consideration was to open an issue on the javascript.info repository, but after giving it a look, even though it is still active, there appear to be a lot of open issues and PRs so I'm not sure how probable it is for this to get any attention. Furthermore, searching for this issue a bit brings up similar results for other keywords (such as I propose:
If the above proposition is approved, feel free to assign this issue to me. |
Beta Was this translation helpful? Give feedback.
-
Thanks for looking into this @ioakeimo, agree it needs fixed. It looks like a PR was made to javascript.info and then closed for this unfortunately javascript-tutorial/en.javascript.info#3126 The cleanest™️ solution would be using another tutorial if theres a suitable alternative out there. I don't like the idea of needing another link to explain whats broken in the first. It can lead to a lot of confusion. We could maybe have a brief explanation within the lesson on TOP about reserved keywords with a demonstration using event? |
Beta Was this translation helpful? Give feedback.
-
@KevinMulhern the tutorial isn't necessarily broken, but it can be very confusing for sure. That said, I'm realizing that explaining scopes and the global object to learners as early as familiarizing them with something as simple as variable declaration can be problematic. Even the Additional javascript.info resource provided at the end of the lesson that does expand on scopes, only briefly mentions the global object and avoids a deep dive hinting it is explained later.
after potentially exposing readers to related issues is a bit ironic) Replacing the resource would indeed be ideal but makes the scope of this change bigger, will probably need some research and therefore delay the change. |
Beta Was this translation helpful? Give feedback.
-
Great idea 💪. Yep, lets do it. Would you still like to be assigned @ioakeimo?
Totally agree with this, it's a lot to take in right away. |
Beta Was this translation helpful? Give feedback.
-
I was looking into how I could make the change before answering to take this on, and to be completely honest I don't see my last suggestion improving the issue either after further consideration. Furthermore, I can definitely see a curious learner intrigued by the warning/instruction to skip that specific task trying to understand what the issue is with the example rather than encouraged to leave it be. I ended up giving some similar articles about variables a read as an alternative resource, I thought I'll list some here in hopes of helping anyone that might look into this in the future:
To sum up:I end up both realizing why this issue has been open for the duration it has, and that I'm possibly not qualified to take this on. I think I should probably let this be resolved by someone more qualified than me |
Beta Was this translation helpful? Give feedback.
-
@KevinMulhern Can you take a look at this mate. |
Beta Was this translation helpful? Give feedback.
-
Thanks for that write up and looking into this so deeply @ioakeimo. Agree that this isn't as straight forward as it seems on the surface unfortuntley. A lot of issues related to this section of lessons have been like this recently 😅 I'll move this to a discussion until a solution is found or until we get a chance to rewrite this part of the curriculum. It's in need of a refresh. |
Beta Was this translation helpful? Give feedback.
-
Describe your suggestion
In the first Javascript lesson in the foundation course, there is a reference to a 'Variable Tutorial' on https://javascript.info/variables.
The first task at the end of that tutorial tells you to create 2 variables. Firstly admin and secondly 'name'.
When doing this exercise your might find that javascript crosses out the variable
name
when you try to put it in theadmin
variable as if it's deprecated. This might cause a student to think they did something wrong. You can find more information about the particular issue here: https://stackoverflow.com/questions/65379554/why-does-my-variable-show-its-deprecated
Path
Foundations
Lesson Url
https://www.theodinproject.com/lessons/foundations-fundamentals-part-1
Checks
(Optional) Discord Name
jackedseal#6283
(Optional) Additional Comments
No response
Beta Was this translation helpful? Give feedback.
All reactions