Anurag Agarwal 33ea7335b1 Java 11 migration: patterns (remaining b-c) (#1081)
* Moves business-delegate pattern  to java 11

* Moves bytecode pattern  to java 11

* Moves caching pattern  to java 11

* Moves callback pattern  to java 11

* Moves chain pattern  to java 11

* Moves circuit-breaker pattern  to java 11

* Moves collection-pipeline pattern  to java 11

* Moves command pattern  to java 11

* Moves commander pattern  to java 11

* Moves composite pattern  to java 11

* Corrects test cases
2019-11-12 21:56:46 +02:00
..
2019-09-03 21:50:48 +03:00
2019-10-12 20:05:54 +03:00
2019-09-03 21:50:48 +03:00

layout, title, folder, permalink, categories, tags
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 games implementation language isnt a good fit because:

  • its 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 cant break the game, you need to sandbox it from the rest of the codebase.

Credits