SSW Foursquare

Do you use Enums instead of hard coded strings?

Last updated by TiagoAraujo about 6 years ago.See history

Use Enums instead of hard-coded strings, it makes your code lot cleaner and is really easy to manage .

Figure: Bad example - "Hard- coded string" works, but is a bad idea

Figure: Good example - Used Enums, looks good and is easy to manage

Adam Cogan
We open source. Powered by GitHub