---
title: "Comment by Stephan Meijer on \"Tips For a Better Redux Architecture: Lessons for Enterprise Scale\" | Hashnode"
description: "If you were using redux-define you could reduce the boilerplate of defining action types. Especially when using status suffixes like ERROR or SUCCESS , it can m"
url: "https://hashnode.com/posts/tips-for-a-better-redux-architecture-lessons-for-enterprise-scale/58327eec23b26d367bf71cd3/comment/58331a82d30fa81b7b8a270a"
---

[Discussion](https://hashnode.com/posts/tips-for-a-better-redux-architecture-lessons-for-enterprise-scale/58327eec23b26d367bf71cd3)

Comment [Tips For a Better Redux Architecture: Lessons for Enterprise Scale](https://hashnode.com/posts/tips-for-a-better-redux-architecture-lessons-for-enterprise-scale/58327eec23b26d367bf71cd3)

[Stephan Meijer](https://hashnode.com/@smeijer)

[Nov 21, 2016](https://hashnode.com/posts/tips-for-a-better-redux-architecture-lessons-for-enterprise-scale/58327eec23b26d367bf71cd3/comment/58331a82d30fa81b7b8a270a)

If you were using [redux-define](https://github.com/smeijer/redux-define) you could reduce the boilerplate of defining action types.

Especially when using status suffixes like `ERROR` or `SUCCESS`, it can make a big difference.

Turning your example

```
export const ADD_TODO = 'todos/ADD_TODO'
export const ADD_TODO_SUCCESS = 'todos/ADD_TODO_SUCCESS'
export const ADD_TODO_FAILURE = 'todos/ADD_TODO_FAILURE'
```

Into

```
export const ADD_TODO = defineAction('ADD_TODO', [SUCCESS, FAILURE], 'todos');
```

[Michael Gilley](https://hashnode.com/@michaelgilley)

[Nov 21, 2016](https://hashnode.com/posts/tips-for-a-better-redux-architecture-lessons-for-enterprise-scale/58327eec23b26d367bf71cd3/comment/58331a82d30fa81b7b8a270a#reply-58331ea9d2221d852de98e91)

@smeijer Is that your own library? ;-) Looks like a great idea. We just may start using it. :) Thanks for the input.

[Stephan Meijer](https://hashnode.com/@smeijer)

[Nov 21, 2016](https://hashnode.com/posts/tips-for-a-better-redux-architecture-lessons-for-enterprise-scale/58327eec23b26d367bf71cd3/comment/58331a82d30fa81b7b8a270a#reply-5833209fa96be26a2dc48f91)

Yes it's mine. I should have mentioned that. I use it with redux-actions and redux-saga like the example in the readme. And really like the now obvious separation between actions and status updates. While having less boilerplate.
