<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Guarantees - Tag - My Notes</title><link>https://blog.emecas.net/tags/guarantees/</link><description>Guarantees - Tag - My Notes</description><generator>Hugo -- gohugo.io</generator><language>en</language><lastBuildDate>Fri, 04 Dec 2020 13:52:37 +0000</lastBuildDate><atom:link href="https://blog.emecas.net/tags/guarantees/" rel="self" type="application/rss+xml"/><item><title>Contract First</title><link>https://blog.emecas.net/posts/2020-12-04-contract-first/</link><pubDate>Fri, 04 Dec 2020 13:52:37 +0000</pubDate><author>emecas</author><guid>https://blog.emecas.net/posts/2020-12-04-contract-first/</guid><description><![CDATA[<p>Contract First<br>
Why?</p>
<p>Unambiguous requirements<br>
Strong Guarantees<br>
Enhanced Collaboration<br>
Parallel workstreams<br>
Code generation</p>
<p>Old Steps</p>
<p>OpenApi specification first<br>
Publish the spec<br>
Use openApi generator</p>
<p>New steps (at the beginning of old steps )</p>
<p>Design with Figma<br>
Build OpenApi spec and fake it</p>
<p>Tool for testing and validation</p>
<p>schemathesis</p>
<p>Bad experiences with generate code?</p>
<p>Then customize the generator (templates) and publish them</p>
<p>Lessons Learned</p>
<p>- Design First<br>
- User Experience first<br>
( if you design first things as graphql becomes unnecessary)<br>
- Get feedback from users<br>
- Generate Server Code<br>
- Generated code is disposable, you don&rsquo;t even need to commit it , since it is generated on building time<br>
- publish client libraries , your clients will not have to worry about how to connect to your api, instead they will love you</p>]]></description></item></channel></rss>