Inconsistencies & lies in linked list problem
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 25/100
- Tipo di issue
- Refactoring
- Chiarezza
- Da chiarire
- Stato di attività
- Ferma
- Stack tecnologico
- coffeescript
- Ambito
- documentation, testing-qa
Direzione di ricerca
Leggi prima la descrizione del problema della lista concatenata/Deque e i relativi test, concentrandoti sulla proprietà count, sulla funzione countNodes() e sul comportamento di una Deque vuota. Prima di modificare qualsiasi cosa, conferma l’API e la terminologia previste con i maintainer; il lavoro è concluso quando la descrizione e i test concordano, il comportamento degli errori documentato è corretto e lo stile dei test è coerente.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Overall, there's the question of whether this problem is about a linked list implementation or (more specifically) a deque implementation based on a doubly-link list. The problem is mixing the two terms a little willy-nilly.
But somewhat more worrisome: The first test is for a property named count (specifically that it's zero for an empty deque). But there are also tests for a countNodes() function. Either one would make sense on its own, but having both is strange, IMO. The function implies implementing something that walks the list, while the property implies that the deque's length should be tracked "manually".
(Okay, you could implement a dynamic count property using Object.defineProperty, or just return the property in countNodes, but the former that seems out-of-scope for the task, and the latter seems very redundant.)
And then there's this:
To keep your implementation simple, the tests will not cover error conditions. Specifically: pop or shift will never be called on an empty Deque.
Lies! There's a test specifically for that, actually.
The tests also seem to follow a different style than others: It's got 4 spaces of indentation, and could use some blank lines to breathe. The file you have to create is also (so far) the only camelCased filename I've come across, which made me raise an eyebrow - but I won't claim that's necessarily wrong. Just weird.
All in all, it just seems kinda messy.
I'd be happy to fix the stuff (don't know about the file name) - just let me know.
- Lingua principale
- CoffeeScript
- Stelle
- 19
- Fork
- 49
- Merge medio
- 29m
- PR unite (30g)
- 1
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di exercism/coffeescript
-
exercism/coffeescript#410 · 1 assegnatario ·
-
Build representer Apertax:action/create x:knowledge/advanced x:module/representer x:size/massive x:type/coding
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
exercism/coffeescript#168 ·
-
Build analyzer Apertax:action/create x:knowledge/advanced x:module/analyzer x:size/massive x:type/coding
Difficoltà 5/5 Più di una settimana Idoneità per principianti 30/100
exercism/coffeescript#167 ·
-
Pass linting checks Apertax:action/fix x:knowledge/elementary x:size/medium x:type/content
Difficoltà 3/5 1-2 giorni Idoneità per principianti 30/100
exercism/coffeescript#133 · 1 commento ·
-
x:action/improve x:knowledge/intermediate x:module/practice-exercise x:size/large x:type/content
Difficoltà 4/5 3-5 giorni Idoneità per principianti 30/100
exercism/coffeescript#132 · 1 commento ·
Tutte le issue di exercism/coffeescript
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
agilepathway/label-checker#640 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
BasedHardware/omi#15662 · 1 commento ·
-
documentation help wanted
Difficoltà 2/5 1-3 ore Idoneità per principianti 90/100
-
Docs are out of date: README structure tree, "Make It Yours" pointer, CONTRIBUTING test notes Apertadocumentation good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
amponce/archive-movie-browser#167 ·
-
user-reported
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
Kong/developer.konghq.com#7316 ·