paint-brush
Purity in My Programming: Functions in Goby@wagslane
1,455 reads
1,455 reads

Purity in My Programming: Functions in Go

by Lane WagnerJuly 1st, 2020
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

Pure functions are often hyped up in the Javascript world, probably because of the abundance of state in front end applications. Pure functions have their downsides, but they should be used as much as reasonably possible. Pure function has the following properties: When I call a pure function my program will be in the same state it was before calling it (other than time will pass and I will have assigned the result of the function) Pure functions keep applications simple. Simple applications tend to be faster, are easier to test and debug.
featured image - Purity in My Programming: Functions in Go
Lane Wagner HackerNoon profile picture
Lane Wagner

Lane Wagner

@wagslane

L O A D I N G
. . . comments & more!

About Author

Lane Wagner HackerNoon profile picture
Lane Wagner@wagslane

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite
Aryan
Gopher-daily
Coffee-web
Yfmao