Skip to content

Improve every course: hand-written quick checks for all 211 chapters and lesson fixes - #59

Merged
samanyugoyal2010 merged 33 commits into
codewpurpose:mainfrom
srivibhavpadakandla:courses-improvements
Oct 11, 2026
Merged

samanyugoyal2010 merged 33 commits into
codewpurpose:mainfrom
srivibhavpadakandla:courses-improvements

Conversation

@srivibhavpadakandla

@srivibhavpadakandla srivibhavpadakandla commented Oct 10, 2026 •

Copy link
Copy Markdown
Collaborator

Improves every course on the site: real quick checks for all 211 chapters, plus a correctness and clarity pass through the lessons.

Hand-written quick checks (the big one)

Until now every chapter's quiz was auto-drafted from its headings, with distractors pulled from other courses' headings — so a Python lesson could ask about git's HEAD. src/lib/quiz.ts called them drafts awaiting review.

  • New src/lib/quizzes/<track>.ts (one file per course, keyed by chapter slug). A chapter listed there uses its authored questions, with seeded option shuffling so server and client match; unlisted chapters fall back to the drafts.
  • 211 / 211 published chapters now have 3–4 authored questions, mostly applied (predict the output, pick the fix, compute the metric). A script confirmed every slug is covered, answers are valid indexes, and options are distinct; numeric questions were hand- or script-checked.

Lesson fixes, by course

  • Python: separate-if grade chain actually gave 95 a "C"; wrong traceback line numbers; fibonacci stepper missing 13; defaultdict(list()) raises TypeError; sys.path order; KeyError vs "fails silently"; chapter counts; predict-the-output exercises.
  • ML / Computer vision: mean-average-precision widget used the wrong AP formula (81% → 67%); husky/wolf example; backwards coefficient-size logic in feature scaling and regularisation; gradient-descent convergence claim; EU AI Act wording; colour-receptor claim; try-it exercises.
  • HTML/CSS / GitHub: .gitignore with inline comments that wouldn't work; unreadable dark-mode links; favicon paths that break on GitHub Pages subfolders; git status --short columns; reflog and git restore behaviour; add -p hunk headers.
  • Vibecoding / Roblox: missing-child errors throw immediately in Roblox (lessons and widgets said they return nil); script-placement count; per-script globals; Anchored/CanCollide and CFrame explanations.
  • Financial literacy / Health in tech: the 50/30/20 button wasn't 50/30/20; minimum-payment and deferred-interest examples; interest-free window; index-fund claims (and the simulated chart is now labelled); rollover counts. Kept general and educational.

No chapter slugs, titles or order changed; chapters.sql stays in sync.

Checks

lint, typecheck, learn:check and next build pass on top of the merged #57. Verified a lesson renders its authored quick check in the redesigned quiz. No conflicts with #58.

Review round 2 (Samanyu's requested changes)

  • More interactive Python in lessons: a TryIt block (runnable .py + one-line prompt) and 68 runnable snippets across all 31 Python chapters; 39 runnable snippets across ML and Computer Vision. Snippets are self-contained and were run to check their output.
  • HTML/CSS interactivity: WebPlayground live editor (sandboxed srcdoc preview, network blocked) in six HTML/CSS chapters, plus a full editor at /playground/web with #code= sharing.
  • Removed the "Enrol buttons open the full course on Udemy in a new tab" caption.
  • Course header: lighter mint learning-space bar; more of the light-green palette throughout.
  • Decluttered: removed the Chapters/Parts/Reading box, level bars, per-chapter minutes/levels and count-heavy headings; friendlier unlock and progress copy (progress still shows once a student starts).
  • AI Resources: remade.
  • Code Playground: redesigned UI, and a drag-and-drop ML builder (Load dataset → Split → Scale → Model → Train → Evaluate → Plot) that writes the Python live and runs it in the browser — e.g. iris + kNN scores 97.4% on held-out data.
  • Projects: new /projects with 10 guided projects (Python, Web, ML), each with steps, hints, starter code, a solution, and Open-in-playground links. Added to the nav, footer and sitemap.
  • Bot review comments: fixed across all courses; where you'd already accepted a suggestion on this branch, your wording was kept. Quiz questions are now typed as 3-/4-option tuples so an invalid answer can't ship.

This branch also contains main (incl. #58 and the performance cleanup); no decorative animation loops were reintroduced. lint, typecheck, learn:check and next build pass.

🤖 Generated with Claude Code

srivibhavpadakandla and others added 7 commits October 10, 2026 15:54
src/lib/quizzes/<track>.ts maps chapter slugs to authored questions; a
chapter listed there uses them (with seeded option shuffling) instead of
the auto-drafted quiz, whose distractors come from other courses' headings.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
All 31 chapters get authored questions (mostly predict-the-output). Fixes
include the grade-chain example (separate ifs gave 95 a C), a traceback with
wrong line numbers, a fibonacci stepper missing 13, defaultdict(list())
raising TypeError, the sys.path search order, KeyError behaviour, and
chapter counts; adds predict-the-output exercises.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
All 44 chapters get authored questions with hand-checked arithmetic. Fixes
the mean-average-precision widget's AP formula, the husky/wolf example,
backwards coefficient-size logic in feature scaling and regularisation, the
gradient-descent convergence claim, EU AI Act wording, and colour-receptor
claims; adds try-it exercises and common-mistake notes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
All 45 chapters get authored questions. Fixes a .gitignore with inline
comments that would break, unreadable dark-mode links, favicon paths that
break on GitHub Pages subfolders, git status --short columns, reflog and
git restore behaviour, add -p hunk headers, and colour/specificity claims.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
All 43 chapters get authored questions. Fixes Roblox's missing-child error
behaviour (it throws immediately, not nil) in lessons and widgets, the
script-placement count, per-script globals, Anchored/CanCollide and CFrame
explanations, and Connect(onTouch()) wording; adds exercises.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…fixes

All 48 chapters get authored questions with script-checked calculations.
Fixes the 50/30/20 budget button, the minimum-payment and deferred-interest
examples, the interest-free window, index-fund claims (and labels the
simulated chart), rollover counts, and other figures; stays general and
educational.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@vercel

vercel Bot commented Oct 10, 2026

Copy link
Copy Markdown

Someone is attempting to deploy a commit to the Shreyan Mitra's projects Team on Vercel.

A member of the Team first needs to authorize it.

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All reported issues were addressed across 179 files

Reply with feedback, questions, or to request a fix.

View guided diff | Re-trigger cubic

Comment thread src/components/python/StringsLesson.tsx Resolved
Comment thread src/components/roblox/OutputConsole.tsx Resolved
samanyugoyal2010 and others added 12 commits October 10, 2026 16:29
Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>

@samanyugoyal2010 samanyugoyal2010 left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you add more interactive Python code experiences in the lesson and then also add similar things for the HTML and CSS lessons!

The main website has a type where it says 'Enrol buttons open the full course on Udemy in a new tab.'

Image

I like the transitions; however, as you can see the header here can be modified

Image

remove content like this in the website because it makes it visually too overwhelming and makes it seem like too much work the user has to do we don't want to discourage them from learning

The AI Resources section can be made better so if you could remake that, it would be very beneficial for us!

For the Code Playground, the UI can be massively improved so please do that. Also add like ML Support with Drag and Drop code so we can explain all of that as well

Also in the lessons add more instances where they can run code and then mess around with it if applicable because I feel like that will be better

use light green color pallete more if possible as well

samanyugoyal2010 and others added 5 commits October 10, 2026 18:06
An out-of-range answer or wrong option count is now a type error instead
of a question nobody can answer (review comment on codewpurpose#59).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Starter cards, a steady status badge, side-by-side editor and output, and
an ML builder: drag Load dataset, Split, Scale, Model, Train, Evaluate and
Plot blocks into a pipeline, see the generated Python live, and run it in
the same Pyodide worker. Order is validated with friendly messages; mouse,
touch and keyboard all work. Links to the new HTML/CSS editor and projects.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
srivibhavpadakandla and others added 9 commits October 10, 2026 19:00
WebPlayground: HTML/CSS (and optional JS) tabs with a sandboxed srcdoc
preview that blocks network access. /playground/web is the full editor,
shareable via #code=<base64url JSON>. Six HTML/CSS chapters get a 'change X
and watch Y' editor, plus review-comment fixes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A TryIt block (runnable .py CodeBlock plus a one-line prompt) and 68
runnable snippets across the 31 chapters, each self-contained; excerpts
that can't run alone are opted out. Fixes the review comments (hashable
keys, namespace packages, import math, instance methods, __init__).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
39 runnable snippets (22 ML, 17 CV) using small synthetic or built-in
scikit-learn data, each checked through the Run button with matching
numbers in the text. Fixes the review comments (monotone transforms, kNN
scale, forest scores, class-aware NMS, latency vs throughput).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Removes the Chapters/Parts/Reading box, level bars, per-row minutes and
levels, chapter-count headers and the 'Enrol buttons open…' caption; softer
copy for unlocking and progress; a light mint learning-space header and
more of the light-green palette. Progress still shows for students who
have started.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
/projects with 10 beginner projects across Python, Web and ML, each with
steps and hints, starter code, a revealed solution, a stretch goal, links
to course chapters, and Open-in-playground buttons. Added to the nav,
footer and sitemap.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… courses

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…-improvements

# Conflicts:
#	src/components/computer-vision/ConvolutionLesson.tsx
#	src/components/github/WhatABranchIsLesson.tsx
#	src/components/html-css/DisplayAndFlowLesson.tsx
#	src/components/html-css/HowCssAttachesLesson.tsx
#	src/components/ml/FeatureScalingLesson.tsx
#	src/components/python/StringsLesson.tsx
#	src/components/roblox/OutputConsole.tsx
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@samanyugoyal2010
samanyugoyal2010 merged commit 194fc4a into codewpurpose:main Oct 11, 2026
2 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants