Skip to content

Commit 4939224

Browse files
authored
Update functional-vs-imperative-programming.md (#43152)
1 parent 40ee517 commit 4939224

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/standard/linq/functional-vs-imperative-programming.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ The primary reason to implement functional transformations as pure functions is
3939
- Easier reiterative development. Because the code is easier to refactor, changes to design are often easier to implement. For example, suppose you write a complicated transformation, and then realize that some code is repeated several times in the transformation. If you refactor through a pure method, you can call your pure method at will without worrying about side effects.
4040
- Easier testing and debugging. Because pure functions can more easily be tested in isolation, you can write test code that calls the pure function with typical values, valid edge cases, and invalid edge cases.
4141

42+
For the reasons outlined above, functional programming is well-suited to the microservices architectural style.
43+
4244
## Transitioning for OOP developers
4345

4446
In traditional object-oriented programming (OOP), most developers are accustomed to programming in the imperative/procedural style. To switch to developing in a pure functional style, they have to make a transition in their thinking and their approach to development.

0 commit comments

Comments
 (0)