Design a code editor application. Include document and buffer management, cursor and selection handling, undo/redo with command pattern, syntax highlighting with pluggable language support, and auto-complete.
Suggested time: 45 minutes
Loading the workspace...
A code editor is a rich OOD problem because it combines the Command pattern (undo/redo), Observer pattern (live highlighting), Strategy pattern (language-specific rules), and a non-trivial data structure (gap buffer). Let's define exactly what the system must do.
Text Editing
Undo and Redo
Syntax Highlighting
Auto-Complete
File Operations
Design an Entity-Component System (advanced)
Design a Board Game Framework (advanced)
Design a Compiler Lexer and Parser (advanced)
Design an Operating System Task Scheduler (advanced)
Design a Resource Management System (advanced)
Design a Permission and Role System (advanced)