Skip to content

Instantly share code, notes, and snippets.

@agoldis
Last active April 4, 2021 06:38
Show Gist options
  • Save agoldis/1dd14bfb71add9996824f9e54ccf973b to your computer and use it in GitHub Desktop.
Save agoldis/1dd14bfb71add9996824f9e54ccf973b to your computer and use it in GitHub Desktop.
Comments frustration - comment example
List<ResultType> resultsList = new ArrayList<>();
final Double TWO = new Double(2);
final Double LIMIT = new Double(10);
for(ItemType item: itemsList) {
// add items' photos located within circle with radius LIMIT
// to a collection of photos
if(Math.pow(item.x, TWO) + Math.pow(item.y, TWO) < Math.pow(LIMIT, TWO)) {
resultsList.add(item.toResultType());
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment