Skip to content
CCPEDIAby Unity Nodes
Discussions/App Development/DAML Anti-Patterns DocForum ↗

DAML Anti-Patterns Doc

App Development3 posts505 views3 likesLast activity Jun 2020
AK
akhanOP
Jun 2020

I noticed the Docs site got rid of the anti-patterns page. Any chance this was a mistake or was this intentional?

I found it a useful reference along with the existing design-patterns for thinking about how to use DAML when designing and modeling workflows.

BE
bernhard
Jun 2020

This was a deliberate choice. They had led to some confusion, and were even contentious in some cases. We therefore removed the rather opinionated page to be replaced with more educational examples in the future. Were there any (anti-)patterns on there that you found particularly useful?

You can use the version switcher on the docs page to look at older versions with those pages if you want to look back. e.g. https://docs.daml.com/1.1.1/daml/anti-patterns.html

AK
akhan
Jun 2020

That makes sense. Would be interesting to see some of that discussion surface on the forums here!

I found myself sharing the “dont-use-status-variables-in-smart-contracts” page quite a bit. Using distinct DAML contracts to capture the state of the workflow seems to make the most sense for the use cases we’ve been working on.

Probably opening up a can of worms here…

← Back to Discussions