You should clearly see that a lot can go wrong here which the compiler won’t catch. For example you could misspell
isn’t a string at all.
GoldenGate allows for the compiler to have your back. The same code as above written with GoldenGate looks like this.
1 2 3 4 5 6 7
which is where the magic happens. This will generate a class named
in this case which implements all the methods defined by the interface.
There are a couple more options for more advanced usage that we won’t cover in this blog post but they are well documented over on Github.
At Flipboard we love the type safety GoldenGate gives us and we think it can help more developers using both native and web technology in their apps. Head over to the Github repository to check out the code. Pull requests are very welcome!