# Writing assertive code with Elixir

DevFeed: [Writing assertive code with Elixir](<https://devfeed.tech/articles/writing-assertive-code-with-elixir-44039.md>)

Original publisher: [Read original article](<https://dashbit.co/blog/writing-assertive-code-with-elixir>)

Author: José Valim

Published: 2014-09-24T00:00:00Z

Content type: article

Language: en

Sources: [Dashbit Blog](<https://devfeed.tech/sources/dashbit-blog.md>)

Topics: [Elixir](<https://devfeed.tech/topics/elixir.md>), [pattern matching](<https://devfeed.tech/topics/pattern-matching.md>), [Polymorphism](<https://devfeed.tech/topics/polymorphism.md>), [protocols](<https://devfeed.tech/topics/protocols.md>), [Code](<https://devfeed.tech/topics/code.md>), [data type](<https://devfeed.tech/topics/data-type.md>)

Tags: [assertive-code](<https://devfeed.tech/tags/assertive-code.md>), [code](<https://devfeed.tech/tags/code.md>), [data-type](<https://devfeed.tech/tags/data-type.md>), [developers](<https://devfeed.tech/tags/developers.md>), [elixir](<https://devfeed.tech/tags/elixir.md>), [functional](<https://devfeed.tech/tags/functional.md>), [pattern-matching](<https://devfeed.tech/tags/pattern-matching.md>), [polymorphism](<https://devfeed.tech/tags/polymorphism.md>), [protocols](<https://devfeed.tech/tags/protocols.md>)

## AI overview

A discussion of assertive Elixir programming that identifies anti-patterns and shows how pattern matching and explicit protocols can reduce accidental complexity and clarify how code handles unexpected inputs and data types.

## Source excerpt

Functional languages are typically great languages for writing assertive code and Elixir is no exception.