- 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.
推薦閱讀
- 中文版Photoshop CS5數碼照片處理完全自學一本通
- 圖形圖像處理(Photoshop)
- Effective DevOps with AWS
- 最后一個人類
- Enterprise PowerShell Scripting Bootcamp
- 在實戰中成長:Windows Forms開發之路
- Microsoft Dynamics CRM 2013 Marketing Automation
- 步步驚“芯”
- 樂高創意機器人教程(中級 上冊 10~16歲) (青少年iCAN+創新創意實踐指導叢書)
- PowerPoint 2010幻燈片制作高手速成
- FreeCAD [How-to]
- 精通ROS機器人編程(原書第2版)
- 工業機器人與自控系統的集成應用
- Apache Spark Machine Learning Blueprints
- 軟件需求最佳實踐