The Java Virtual Machine (JVM) loads classfiles and executes their bytecode instructions. Classfile content is organized according to Java's classfile format. This format is understood by Classfile, my Java library for creating classfiles without relying on a compiler.
This tutorial introduces you to Classfile. To set the stage, I first explore the classfile format. I next introduce this library in an example context. Finally, I demonstrate Classfile in a larger compiler context to show this library's usefulness.
Have a highly specific, yet custom validation for a particular field on one of your Rails model objects? Don’t want to create a ActiveModel::Validator type? Not a problem!
Every once in a while, I need to give a non-technical user (like a business analyst) data residing in MongoDB; consequently, I export the target data as a CSV file (which they can presumably slice and dice once they import it into Excel or some similar tool).