SSW Foursquare

Do you use Enums instead of hard coded strings?

Last updated by TiagoAraujo almost 6 years ago.See history

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

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

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

We open source. Powered by GitHub