This is a cheat sheet showing various programming terms alongside example code (in Java) of what the terms describe. I created this document to give junior developers and interns a reference for the terms that developers often use to describe different elements of a program. The goal of this document is to allow senior developers to use technical language and be somewhat Socratic during code reviews with new programmers instead of pointing to specific lines and explaining exactly what to do. If a junior developer’s code is being reviewed and he or she is asked, “Why did you pass the obtainClass()
method a String
variable?”, he or she can quickly search this sheet for the unknown terms and try to answer the question. It will also help new developers to know what parts of the code senior devs are talking about—for example: obtainClass()
’s method signature versus an obtainClass()
method call. Rather than create an exhaustive reference, I want this cheat sheet to be brief, so I only included the technical words that I use the most during my current code reviews. However, I’m sure this document is not perfect, so if you would like to add or fix something, please write a comment explaining what could be improved and/or make the improvement yourself and send me a pull request.
Note that underlined text can be clicked to navigate to another section of the cheat sheet which shows terms for each element of that line of code.
/* Term */ |
Example Code |
---|---|
|
|
/* Types of Strings */ |
|
|
|
/* Elements of a Method Signature */ |
|
|
|
/* Elements of a Local Variable Declaration Statement */ |
|
|
|