Please enable JavaScript to use CodeHS

CodeHS Glossary


Read Like a Story Java

Programs that “Read like a story” have good decomposition and make the code easy to follow. When programming, you’re writing code for other people to read, so you want to communicate the “story” of the program clearly. It’s good practice to break down your code into several methods whose names tell exactly what is happening in that method. You can think of the method names as the names of the chapters, so the run method is like overall story, telling each chapter one by one.