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

Purity in My Programming: Functions in Go

by Lane Wagner3mJuly 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.

People Mentioned

Mention Thumbnail
featured image - Purity in My Programming: Functions in Go
Lane Wagner HackerNoon profile picture
Lane Wagner

Lane Wagner

@wagslane

Founder of Boot.dev. Whining about coding sins since 2011. Committing coding sins for the same.

About @wagslane
LEARN MORE ABOUT @WAGSLANE'S
EXPERTISE AND PLACE ON THE INTERNET.
L O A D I N G
. . . comments & more!

About Author

Lane Wagner HackerNoon profile picture
Lane Wagner@wagslane
Founder of Boot.dev. Whining about coding sins since 2011. Committing coding sins for the same.

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
Also published here
Aryan
Gopher-daily
Coffee-web
Yfmao