paint-brush
Freeze Your Constants in Rubyby@kineticdial
808 reads
808 reads

Freeze Your Constants in Ruby

by Patrick Brown2mJanuary 12th, 2019
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

Years ago I was working on a very large Ruby on Rails codebase that used constants to hold lists of credit card transaction states. For example:

Company Mentioned

Mention Thumbnail
featured image - Freeze Your Constants in Ruby
Patrick Brown HackerNoon profile picture
Patrick Brown

Patrick Brown

@kineticdial

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

About Author

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