Skip to content

Files

Latest commit

9ebbc42 · Oct 12, 2019

History

History
This branch is 1973 commits behind iluwatar/java-design-patterns:master.

bytecode

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Sep 3, 2019
Oct 12, 2019
Sep 3, 2019
Oct 12, 2019
layout title folder permalink categories tags
pattern
Bytecode
bytecode
/patterns/bytecode/
Behavioral
Java
Difficulty-Beginner

Intent

Allows to encode behaviour as instructions for virtual machine.

Applicability

Use the Bytecode pattern when you have a lot of behavior you need to define and your game’s implementation language isn’t a good fit because:

  • it’s too low-level, making it tedious or error-prone to program in.
  • iterating on it takes too long due to slow compile times or other tooling issues.
  • it has too much trust. If you want to ensure the behavior being defined can’t break the game, you need to sandbox it from the rest of the codebase.

Credits