|
| 1 | +/** |
| 2 | + * The Learning Hub - Modern JavaScript (ES2024+) & V8 Platform Architecture Roadmap |
| 3 | + */ |
| 4 | + |
| 5 | +export const JAVASCRIPT_STAGES = [ |
| 6 | + { |
| 7 | + stageNumber: 1, |
| 8 | + title: "JavaScript Syntax & Core Fundamentals", |
| 9 | + domainFocus: "Primitive types, memory allocation (stack vs heap), operators, type coercion, control flow, loops", |
| 10 | + completed: true, |
| 11 | + keyTopics: ["Stack vs Heap Allocation", "Type Coercion Rules", "Nullish Coalescing (??)", "Optional Chaining (?.)"] |
| 12 | + }, |
| 13 | + { |
| 14 | + stageNumber: 2, |
| 15 | + title: "Functions, Closures & Execution Contexts", |
| 16 | + domainFocus: "Lexical environment, execution context stack, hoisting mechanics, closures, currying, this binding", |
| 17 | + completed: true, |
| 18 | + keyTopics: ["Lexical Scoping", "Closure Memory Retention", "Explicit Binding (call/apply/bind)", "Arrow Function Lexical this"] |
| 19 | + }, |
| 20 | + { |
| 21 | + stageNumber: 3, |
| 22 | + title: "Modern Data Structures & ES6+ Mastery", |
| 23 | + domainFocus: "Objects & property descriptors, Maps, Sets, WeakMap/WeakSet, destructuring, spread/rest, Symbols", |
| 24 | + completed: true, |
| 25 | + keyTopics: ["Property Descriptors & Object.defineProperty", "Map vs Object Benchmark", "WeakMap Garbage Collection", "Well-Known Symbols"] |
| 26 | + }, |
| 27 | + { |
| 28 | + stageNumber: 4, |
| 29 | + title: "Asynchronous JavaScript & Event Loop Internals", |
| 30 | + domainFocus: "Event loop execution model, microtask queue vs macrotask queue, Promises, async/await, AbortController", |
| 31 | + completed: true, |
| 32 | + keyTopics: ["V8 Microtask Checkpoints", "Promise State Machine", "Event Loop Turn Ordering", "AbortSignal & Cancellation"] |
| 33 | + }, |
| 34 | + { |
| 35 | + stageNumber: 5, |
| 36 | + title: "DOM, BOM & Browser Web APIs", |
| 37 | + domainFocus: "Virtual vs real DOM, event bubbling & capturing, delegation, BOM (window, history), Web Workers", |
| 38 | + completed: true, |
| 39 | + keyTopics: ["Event Propagation (Capture/Target/Bubble)", "DOM Reflow vs Repaint", "Web Workers Offloading", "IntersectionObserver"] |
| 40 | + }, |
| 41 | + { |
| 42 | + stageNumber: 6, |
| 43 | + title: "Performance Optimization & Enterprise Patterns", |
| 44 | + domainFocus: "Debounce & throttle, memory leak prevention, layout thrashing, hidden classes in V8 JIT (TurboFan)", |
| 45 | + completed: true, |
| 46 | + keyTopics: ["Debounce & Throttle High-Order Functions", "V8 Hidden Classes & Inline Caches", "Garbage Collection Mark-Sweep", "Zero-Copy ArrayBuffers"] |
| 47 | + }, |
| 48 | + { |
| 49 | + stageNumber: 7, |
| 50 | + title: "Staff Architect Interview Handbook & Cheatsheet", |
| 51 | + domainFocus: "500+ comprehensive scenario Q&As, prototype chain deep-dive, algorithmic problem patterns", |
| 52 | + completed: true, |
| 53 | + keyTopics: ["Prototypal Inheritance Mechanics", "V8 TurboFan Deoptimization Triggers", "Cross-Site Scripting (XSS) Sanitization", "Memory Profiling"] |
| 54 | + } |
| 55 | +]; |
| 56 | + |
| 57 | +export function getCompletedCount() { |
| 58 | + return JAVASCRIPT_STAGES.filter(s => s.completed).length; |
| 59 | +} |
| 60 | + |
| 61 | +export function getProgressPercentage() { |
| 62 | + return Math.round((getCompletedCount() / JAVASCRIPT_STAGES.length) * 100); |
| 63 | +} |
0 commit comments