Unit type-safety, or lack thereof, can have real consequences, sometimes disastrous ones. This article briefly demonstrates how the Manifold framework’s extension and science libraries can be applied toward a general solution using type-safe units and quantities.
All Posts by this author
GraphQL has thoroughly captivated the API world, due in no small part to its uniquely expressive API query language. But using it type-safely from Java poses a challenge, as language barriers tend to do. Scott McKinney demonstrates how to reach beyond expectations and provide truly seamless, type-safe GraphQL access from Java.
Finally you can use BigDecimal and other Java types directly in arithmetic and relational operations by incorporating a feature called operator overloading into your project. In this article, Scott McKinney walks you through this new capability provided by the Manifold project. Along the way he discusses other interesting features built atop operator overloading including unit expressions.
Java access modifiers protected, package-private, and private are enforced both by the compiler and the JVM. Here, Manifold’s Scott McKinney explains why this is insane and how access to internals could be made much simpler and type-safe.
Modern languages don’t do checked exceptions. But you don’t have to jump ship to share the experience. In this article Scott McKinney shows you how to stick with Java and completely neutralize checked exceptions with a simple new addition to the Manifold framework.
Do you struggle when using reflection code? In itself, reflection code is not type-safe, which can cause problems down the road. There must be a better alternative! You can maintain type-safety with @Jailbreak from the Manifold project and rest assured that your code is efficient.
Discover how to use Manifold to enable JSON Schema as your REST API single source of truth (SSoT). Scott McKinney explains how the new Manifold framework connects your JSON Schema and YAML resources directly to Java without code generators, annotated POJOs, or other go-betweens.
This is the second part in a series of articles covering Manifold, a unique, open source technology you can use in any Java project to enable cutting-edge language features such as type-safe metaprogramming, extension methods, templating, and structural typing. In this segment, Scott McKinney discusses Extension Classes, an innovative feature that enables you to supplement a class with your own methods, interfaces, and other features.
This is the first in a series of articles covering Manifold, a unique, open source technology you can use in any Java project to enable cutting edge language features such as type-safe metaprogramming, extension methods, templating, and structural typing. In this segment, Scott McKinney discusses Manifold’s reinvention of code generators, namely Type Manifolds.
Manifold is out of this world: this framework allows developers to dynamically and seamlessly extend Java’s type system. In this article, Scott McKinney explores how the Manifold framework makes Java development more appealing and productive.