-
Notifications
You must be signed in to change notification settings - Fork 126
feat: use the Python course as a template for a new JavaScript course #1584
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
Conversation
f4c5ab8
to
ca304ee
Compare
Preview for this PR was built for commit |
Preview for this PR was built for commit |
bc2ff07
to
eb05470
Compare
Preview for this PR was built for commit |
Preview for this PR was built for commit |
e3b6f07
to
6e6db97
Compare
Preview for this PR was built for commit |
… (groundworks) (#1651) See #1584 for more details. I carved out these two commits so that we can do incremental reviews of my changes in subsequent PRs instead of a huge PR with everything stuffed in it: - 8e6a303 is a copy-paste of the Python course to a new directory called `javascript2` (nothing to review, really) - 9ccf0df makes it `unlisted` There are, of course, more changes to come. This is just groundworks. The `unlisted` trick was recommended by @TC-MO in a [Slack convo](https://pyvec.slack.com/archives/C03BHBQNNG3/p1750773530207319), hopefully ensuring the duplicated course won't be visible on production. Apparently it behaves differently dev vs prod, so I couldn't really verify it properly locally. I tried running `npm run build` hoping I'd get a prod build of the docs, but I only got errors. Using `npm start` I can see the pages in the navigation, but the warning is in place, so I think Docusaurus picks it up correctly: <img width="781" alt="Screenshot 2025-06-27 at 10 37 52" src="https://github.com/user-attachments/assets/7753def0-c08d-47b5-b0c7-96c98541399a" /> Hopefully in the prod build it won't be in the navigation. But in the case it's not gonna work properly on prod, I'm ready to revert this PR immediately.
6e6db97
to
104c5cc
Compare
Preview for this PR was built for commit |
104c5cc
to
82bf3ee
Compare
Preview for this PR was built for commit |
Preview for this PR was built for commit |
When working on #1584 I realized it'd be better if the lesson started with JSON and continued with CSV, not the other way. In Python it doesn't matter and in JavaScript it's easier to start with JSON, which is built-in, and only then move to CSV, which requires an additional library. So for the sake of having both lessons aligned, I want to change the order in the Python lesson, too. So most of the diff is just the two sections reversed, and the two exercises reversed. I made only a few additional changes to the wording.
d284f74
to
b689317
Compare
Preview for this PR was built for commit |
Preview for this PR was built for commit |
Preview for this PR was built for commit |
ee7ae7d
to
fa29e5a
Compare
Preview for this PR was built for commit |
A part of apify#1584 --------- Co-authored-by: gullmar <[email protected]>
…ript (apify#1761) Part of apify#1584⚠️ 🐍 Includes a small change also to an exercise in the original `scraping_basics_python` lesson --------- Co-authored-by: gullmar <[email protected]>
…ipt (apify#1760) Part of apify#1584, fixes apify#1648⚠️ 🐍 Includes respective changes also to the original `scraping_basics_python` lesson --------- Co-authored-by: Michał Olender <[email protected]>
As I progressed with apify#1584 I felt the code examples were starting to be more and more complex. Then I remembered that when I was young, us jQuery folks used to lean towards a naming convention where variables holding jQuery selections were prefixed with $. I changed the code examples in all lessons to adhere to this as I feel it makes them more readable and less cluttered. ----- ℹ️ The changes still use `$.map` and `$.each`, because they were made prior to the facb3c0 commit. It's gonna happen, but not yet.
As I progressed with apify#1584 I felt the code examples were starting to be more and more complex. Then I remembered that when I was young, us jQuery folks used to lean towards a naming convention where variables holding jQuery selections were prefixed with $. I changed the code examples in all lessons to adhere to this as I feel it makes them more readable and less cluttered. ----- ℹ️ The changes still use `$.map` and `$.each`, because they were made prior to the facb3c0 commit. It's gonna happen, but not yet.
As I progressed with apify#1584 I felt the code examples were starting to be more and more complex. Then I remembered that when I was young, us jQuery folks used to lean towards a naming convention where variables holding jQuery selections were prefixed with $. I changed the code examples in all lessons to adhere to this as I feel it makes them more readable and less cluttered. ----- ℹ️ The changes still use `$.map` and `$.each`, because they were made prior to the facb3c0 commit. It's gonna happen, but not yet.
As I progressed with apify#1584 I felt the code examples were starting to be more and more complex. Then I remembered that when I was young, us jQuery folks used to lean towards a naming convention where variables holding jQuery selections were prefixed with $. I changed the code examples in all lessons to adhere to this as I feel it makes them more readable and less cluttered. ----- ℹ️ The changes still use `$.map` and `$.each`, because they were made prior to the facb3c0 commit. It's gonna happen, but not yet. --------- Co-authored-by: gullmar <[email protected]>
…ript (apify#1848) Part of apify#1584 ----⚠️ 🐍 This PR contains also changes to the Python course, to keep the lessons consistent and synced. --------- Co-authored-by: Michał Olender <[email protected]>
…ut JavaScript (apify#1846) Part of apify#1584 ----⚠️ 🐍 This PR contains also a small change to the Python course, to keep the lessons consistent and synced. --------- Co-authored-by: gullmar <[email protected]>
…cript (#1847) Part of #1584 ----⚠️ 🐍 This PR contains also changes to the Python course, to keep the lessons consistent and synced. --------- Co-authored-by: Michał Olender <[email protected]> Co-authored-by: gullmar <[email protected]>
9d7c368
to
479a736
Compare
Preview for this PR was built for commit |
479a736
to
5b59e87
Compare
Preview for this PR was built for commit |
5b59e87
to
1ed4660
Compare
Preview for this PR was built for commit |
1ed4660
to
86bb36f
Compare
Preview for this PR was built for commit |
86bb36f
to
2ec727c
Compare
Preview for this PR was built for commit |
Closing in favor of #1907 |
This is a proof of concept exploring whether using the Python course as a template for a brand new JavaScript course would take less time than trying to improve the original JavaScript course. This work is sanctioned by both @mnmkng and @TC-MO. If viable, this should have the potential to implement #1550 and, of course, deprecate #1579
Done
Challenges
Todo