Early Code

1 language
  • Article
  • Read
From Wikipedia, the free encyclopedia
This article is about the interactive demo. For the search engine that hosts it, see David's Internet.
Early Code
TypeInteractive demo
OriginUC San Diego CSE 12, CSE 15L, and CSE 100
DeveloperDavid
Written inC++, Java, JUnit, Python, TypeScript
TestsFive live widgets fixture-tested against Python references
Built withCoursework from 2021 to 2024, presented as a timeline of running programs
Hosted onDavid-Internet/demos/earlycode
Websitehttps://david-internet.vercel.app/demos/earlycode

Early Code is an interactive timeline of David's earliest programs from 2021 to 2024, each with a live widget.[1] It covers a C++ final, CSE 12 data structures, CSE 15L URL handlers, a planted JUnit bug, and a from-scratch string matcher.

The C++ final re-runs over its original numbers files in a fake terminal, preserving the original program's quirks. MyArrayList animates inserts, shifts, and capacity doubling. A mini browser replays chat and doc-search handlers request by request.

Overview

Five live widgets are TypeScript ports, labeled as such. Course-provided server code is credited as such. The page ends at CardClassifier.ipynb, a PyTorch tutorial referenced but not re-run because its dataset is not archived.

Aho-Corasick

The page's main widget is a from-scratch implementation: the Aho-Corasick automaton grows its trie and failure links live and matches Fast & Furious titles from a CSE 100 notebook, with the same 106 nodes the pyahocorasick library reported.

Development

Five live widgets fixture-tested against Python references. The JUnit lab's planted merge bug fails by timeout and then applies a one-line fix on the page.

See also

References

  1. ^ content/earlycode/README.md, David's Internet.