• • • • • •
Hello everyone! I’m back! I’m sorry for being away for a few days but I needed to take some time off. Before I start talking about code I just want you to know, if you are going through a difficult time in your life right now, I want you to know that you aren't alone. I've been there. We all have. I know what it feels like when your entire world turns upside down and you don't know where to turn.
I won't begin to claim that I understand your pain, because everyone has a different life story. I made it through the hard times in my life and so can you 👊🏼. You are still standing and there is a reason for that. Sometimes we all need a friendly reminder of how strong we really are.
Even though I’ve been away for like a week and not posting my progress with the 100daysofswift challenge I never stopped coding 👩🏻💻. Over the past few months I’ve picked up a few habits which to me seems to simplify my development and ease maintenance when dealing with 𝙐𝙄𝙏𝙖𝙗𝙡𝙚𝙑𝙞𝙚𝙬, I want to share these tips hoping they may be useful to some of you!
Whenever I have a 𝙏𝙖𝙗𝙡𝙚𝙑𝙞𝙚𝙬 that return more than one section, the first thing I do is to create an enum with the different section names. Doing so allows me to write code which seems tremendously more clear than returning an arbitrary number 🔁, and if I add a section in the enum the table automatically returns the proper number of section without having to manually update it. It also allows me to use switch statements in the various other protocol functions which to me, is miles better than using literals 🙌🏼
- #️⃣Use #dev_girls for a repost👩
- ➡️Follow @dev_girls for more! 💕
- 💻Or DM your pic directly📚🎧💻