Break up the JavaScript monoliths
- Lingua principale
- Haskell
- Stelle
- 1.3k
- Fork
- 201
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
Right now, the JavaScript code for CodeWorld is split between two monolith files: codeworld.js and codeworld-shared.js. It's not even clear to me what goes where, or how either file is really organized. I'd really like to see things divided into main modules by functionality:
1. The core functionality around the UI.
2. All the project management stuff: loading, saving, moving, deleting, etc. projects and folders. Nothing here is called unless you're signed in.
3. The editor functionality: setting the code, error highlighting, doc popups, formatting, autocomplete, etc.
4. The output window, where errors and debug output appear. Currently, this is pretty simple, but I really want to make the output area more feature-filled, especially in Haskell mode (supporting stdin would be great!) So the organizational choices should plan for expansion here.
This is in addition to things that are already part of their own files: the inspect UI, the Guide, etc.
See #66
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Inizia leggendo codeworld.js e codeworld-shared.js, quindi confronta i loro contenuti con l’UI di inspect esistente e i file Guide. Il refactoring è completato quando il JavaScript è organizzato in moduli per l’UI principale, la gestione dei progetti, l’editor e l’output, mentre i file autonomi esistenti rimangono separati.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- javascript
- Ambito
- frontend
- Tipo di issue
- Refactoring
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 25/100