Thoughts on the JS Modules #392
Replies: 3 comments
-
(Testing) @all-contributors please add @moneyinthesky for content and code |
Beta Was this translation helpful? Give feedback.
-
I would like to record on this discussion this completely different approach to JS modules from HYF Belgium |
Beta Was this translation helpful? Give feedback.
-
@moneyinthesky Inviting you please to review when @Dedekind561 opens PRs for revision for JS3. (JS1 is done, JS2 in train, JS3 upcoming) over September. Deadlines posted in https://codeyourfuture.slack.com/archives/C012UUW69S8/p1691089169584079?thread_ts=1691089163.660329&cid=C012UUW69S8 |
Beta Was this translation helpful? Give feedback.
-
Variable Scope
Variable Scope, first formally discussed in JS3/Week3, had actually caused a lot of confusion for trainees well before we discussed it, and I've found myself informally discussing it with trainees during JS1 and JS2. Because of this, and also because it's such a fundamental concept in programming in general, maybe we could move this discussion to earlier in the syllabus?
fetch
I believe the most challenging class for the trainees so far has been JS3/Week2. Personally, I think that's fair enough given the content, but I wonder if we can do anything to ease them into these concepts a bit more...
fetch
, we also introduce error handling in a promise chain usingcatch
. This was confusing for trainees because the idea of handling errors (user-defined or otherwise) was never discussed in a synchronous context, and now we're talking about it in an async context. Is it worth briefly discussing try-catch-throw / error handling / user-defined errors earlier in the course? I'm a back-end Java developer myself, so I'm actually not sure how important this stuff is for JS devs! Also, I know there's not enough time to cover everything in classes - maybe some of this could be at-home reading material?async/await
So far,
async
/await
hasn't really been included in the syllabus. Just wondering if this was intentional, or maybe we just haven't gotten around to adding it yet?fetch
, either in addition to promises or instead of.async
/await
.Old JS vs New JS
That leads to a more general question about how we balance new-style vs old-style JS. Do we include the new stuff and leave out the old? Do we try to touch on a bit of both? I can see pros/cons either way, and I guess the answer will be case-by-case. Some examples are:
Beta Was this translation helpful? Give feedback.
All reactions