Exercise Idea: Bob and Friends
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 20/100
Direzione di ricerca
Inizia esaminando l'esercizio bob esistente e la soluzione Haskell collegata per comprendere la separazione proposta tra la classificazione dei messaggi e le risposte. Il lavoro sarà considerato completato quando la community avrà raggiunto un accordo sul concetto dell'esercizio e sarà stata quindi creata una pull request concreta che definisca il nuovo esercizio.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Hey, so I am thinking of a new exercise. It is inspired by bob, but it might be better if it is just called reply.
Basically, I am a big proponent of decoupling the logic for classifying messages to Bob from the reply logic. Typically this results in using some sort of Algebraic Data Type or enum variants.
An example of my over-engineered solution in Haskell can be found here.
The benefit, as I see it, is that there is clear separation of logic and responsibilities. A wonderful side effect of that is how easy it becomes to implement reply functions for people other than Bob.
Across paradigms there are many ways that this can be handled. In rust for instance one could use a Reply trait that takes a &str and returns a &str, but it can use an enum named Locution or MsgClass to do the work that isn't related to the struct Bob or Carol or John.
In OOP languages people could use class composition or use interfaces.
Anyway, I made this issue, so I could guage community enthusiasm for this exercise idea.
I think it is still worth it to have the bob exercise (sort of like how the resistor-color exercises keep uping their game at each step).
It seems to me like most students experience bob as an annoying burden. I didn't realize how much I liked the exercise, until I realized there was a massive opportunity to decouple that logic of message classification from response generation thereby making well-compartmentalized code that was general enough to make new responders trivial to write.
Okay, I am always too verbose :/ Please let me know your thoughts about this. If there seems to be some excitement for this proposal, then I will make a PR for this new exercise ;)
- Lingua principale
- Ruby
- Stelle
- 362
- Fork
- 566
- Merge medio
- 15h 13m
- PR unite (30g)
- 8
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
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/problem-specifications
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 90/100
exercism/problem-specifications#2686 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
exercism/problem-specifications#2704 · 21 commenti · 8 reazioni ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 1-3 ore Idoneità per principianti 35/100
exercism/problem-specifications#2153 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
exercism/problem-specifications#2120 · 7 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
exercism/problem-specifications#2108 · 1 commento · 5 reazioni ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di exercism/problem-specifications
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
I maintainer di solito rispondono entro 1 giorno
-
Bug Ruby Waiting for: Product Owner
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
getsentry/sentry-ruby#3228 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
I maintainer di solito rispondono entro 1 giorno
-
開発用DockerイメージにPlaywrightのシステム依存を追加するForse già presa @momocus l’ha presa oggi. Aperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 85/100
sakazuki-org/sakazuki#1453 ·
I maintainer di solito rispondono entro 3 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100