Boost Your Productivity with Model-Driven Engineering (Part 2)
The author of the article used model-driven engineering (MDE) to automate the process of generating boilerplate code for a new API in the Vonage Java SDK, saving significant time and effort. The MDE approach involved creating a metamodel that defined the structure of the API, including its endpoints, request and response types, and other metadata. A template-based language called Epsilon's Generation Language (EGL) was used to generate the boilerplate code, which was controlled by an EGX coordination language that ensured the templates were called with the correct parameters and output to the correct location. The author opted for a pragmatic approach to MDE, avoiding over-engineering and instead focusing on maximizing productivity. The process involved creating the metamodel, writing the EGL templates, defining the EGX script, and running it with the model as input.
Company
Vonage
Date published
Jan. 23, 2024
Author(s)
Sina Madani
Word count
1769
Language
English
Hacker News points
None found.