r/ProgrammerHumor • • May 16 '18

Meme The best way of saving your code

Post image
24k Upvotes

385 comments sorted by

View all comments

Show parent comment

301

u/B_M_Wilson May 16 '18

You forgot the preface with the package, imports, and class. You also forgot the “String array args” before the ending parenthesis.

166

u/tippl May 16 '18

You also can't start with main, that is like starting a story with how it all ties together.

Chapter 1:
package com.example.utils;
...

38

u/B_M_Wilson May 16 '18

True, I did not even think about that! This is why I did so bad in english at school

13

u/why_rob_y May 16 '18

But similarly, Chapter 1 isn't usually the beginning of a book, so it's fine. There may be stuff in the introduction, prologue, and preface.

14

u/B_M_Wilson May 16 '18

And Chapter 0. This is Java not SQL or whatever

9

u/ShamelessKinkySub May 16 '18

That's the license header

23

u/aswerty12 May 16 '18

That's in the prologue.

1

u/B_M_Wilson May 16 '18

As yes, this is why I did so bad in english at school

3

u/[deleted] May 16 '18

No damnit! It shall start with the name of the file for no damn reason followed by hundreds of lines of legal copyright disclaimers that everyone will ignore anyways.

4

u/B_M_Wilson May 16 '18

Yes! Right after the title of each chapter, say chapter 4, the first line will be “chapter 4”. After that will be the full terms and conditions of using the chapter which will have been repeated on every chapter, the front of the book, and a tiny fine print version in the margins of each page.