Studies performed in natural language reading show that people read better (i.e., 20% faster) when an explicit separator is used between words. It does not matter the type of separator, it could be a white space or a special symbol. The overall message is that readingthistext is more difficult than reading_this_text or reading this text.
Here comes our question: Is this finding valid for source code as well? In other words, can we speedup code reading using a specific separator when writing composed identifiers (i.e., identifiers featuring more than one word)?
This repository contains the code to run the site on which takes place the experiment.
To start the webapp, clone the repo with
git clone https://github.com/karma-riuk/camel-kebab.git
or
git clone git@github.com:karma-riuk/camel-kebab.git
yarn install
yarn dev
Now open your browser and go to http://localhost:5173
(or whatever port indicated by vite
after running yarn dev
in a terminal)
and make the user follow the instructions.