https://github.com/alvarogarcia7/camel-snake-pascal-kebab-kata-clojure
This is a study (i.e., an etude), to practice message dispatching and property-based testing. In Clojure
https://github.com/alvarogarcia7/camel-snake-pascal-kebab-kata-clojure
camel-case clojure kebab-case pascal-case property-based-testing quickcheck snake-case trikitrok
Last synced: 3 months ago
JSON representation
This is a study (i.e., an etude), to practice message dispatching and property-based testing. In Clojure
- Host: GitHub
- URL: https://github.com/alvarogarcia7/camel-snake-pascal-kebab-kata-clojure
- Owner: alvarogarcia7
- Created: 2017-08-09T05:20:50.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-08-17T18:17:28.000Z (almost 8 years ago)
- Last Synced: 2025-01-10T22:49:54.895Z (5 months ago)
- Topics: camel-case, clojure, kebab-case, pascal-case, property-based-testing, quickcheck, snake-case, trikitrok
- Language: Clojure
- Homepage:
- Size: 21.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Camel, Snake, Pascal, Kebab case kata
## Purpose
This is a study (i.e., an etude), with a narrow target
* how to dispatch to different functions coming from a string input
* how to apply property-based testing (such as quickcheck)## Dispatching
In `dispatching/*` I have written different ways of dispatching the output format:
* by-map: link a string to a function into a map
* by-function-name: grab the function by its name, finding it in the namespace
* by-macro: expanding on the previous, using a macro. The macro is not needed, just a scenario where to use it
* by-function-name-no-macro: expanding on the previous, using an ear-muff binding (`*ns*`) to refer to the current namespace## Misc notes
source: trikitrok's https://gist.github.com/trikitrok/a97d330bacb1f56fe5ee027c12ff273a
Warning: this kata is not finished, it does not include processing the data structures part