- AWS Administration Cookbook
- Lucas Chan Rowan Udell
- 233字
- 2021-07-09 18:18:30
DSLs and generators
DSLs and generators can be a point of hot debate among infrastructure coders. Some love them, some hate them. Some of the reasons why people love them include the following:
- They allow CloudFormation to be written in a language that is more native to them or their team.
- They allow the use some advanced programming constructs. Iteration is a particularly well-cited example.
- Until YAML was supported by CloudFormation, using a DSL usually resulted in code that was easier to read and far less verbose.
Some of the reasons people dislike them are:
- DSLs have a history of becoming abandonware or significantly lagging behind CloudFormation, although there are a couple of well-supported DSLs out there
- Developers are potentially required to learn a new language and navigate another new set of documentation, on top of learning CloudFormation and navigating the AWS documentation
- Google and Stack Overflow become a little less useful because one needs to translate questions and answers
Beyond what is written here, this topic won't come up again in this book. We can't give specific advice as to which road you should take because it's almost always a highly personal and situational choice. However, a sensible approach, especially while coming to grips with AWS and CloudFormation, would be to stick with YAML (or JSON) until you get to the point where you think a DSL or generator might be useful.
推薦閱讀
- 自動(dòng)控制工程設(shè)計(jì)入門(mén)
- Ansible Quick Start Guide
- 快學(xué)Flash動(dòng)畫(huà)百例
- 完全掌握AutoCAD 2008中文版:綜合篇
- 大數(shù)據(jù)技術(shù)與應(yīng)用
- Excel 2007技巧大全
- Grome Terrain Modeling with Ogre3D,UDK,and Unity3D
- Word 2007,Excel 2007辦公應(yīng)用融會(huì)貫通
- 21天學(xué)通Linux嵌入式開(kāi)發(fā)
- 空間機(jī)器人
- AVR單片機(jī)工程師是怎樣煉成的
- Redash v5 Quick Start Guide
- RealFlow流體制作經(jīng)典實(shí)例解析
- Red Hat Enterprise Linux 5.0服務(wù)器構(gòu)建與故障排除
- Kubernetes on AWS