google / google/codeworld

Add warnings for bad coding patterns

Aperta
#399 1 commento 0 reazioni 0 assegnatari Vedi su GitHub
discussion
Lingua principale
Haskell
Stelle
1.3k
Fork
201
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

CodeWorld could add its own warnings to those from the compiler, when it detects bad coding patterns that students often adopt. Some examples:

* Lots of duplicate code
* Lines longer than a certain length
* No spaces around an operator
* Lots of variables with the same name but different numbers after it, like `bird`, `bird1`, `bird2`, etc.
* Nesting that is too deep

This could be a gentle nudge to suggest that there's a better way.

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.