What if I told you that you can establish heavy coding habits and once you do it can be the
difference between debugging your code for days and coding faster and smarter. Would you stick
to those habits, I know I would. Let's see the best coding habits you should adopt in 2023.
And don't forget I have a Christmas sale, 30% off store.rebeloper.com. Let's cut right to
the chase and talk about number 1 and that is learn the fundamentals. Now why is that important?
It seems like a cliche by now. You want to learn the fundamentals but honest you will just try
to build your application, you just try to build a hobby application and yeah you know that is
just we are going to learn what you are building and that's not right because you will have some
gaps that you will miss later on. So make sure you do learn the fundamentals for example in
SwiftUI you do want to know what a view is. How to manage data, go ahead and check out the link in
the description I do have a YouTube live on that. It's really, really great. Most important thing in
SwiftUI is how to manage data, you want to learn how to manage data. So you want to
learn the fundamentals first because otherwise it will just you know bite you in the last at the
end of the day you want to know, you want to lay down a foundation for your knowledge not just
just building out one application or maybe more at a time. So that is number 1. Now this is the
last video this year. Thank you very much for of your continued support. Go ahead and check out
my store if you want to support me like that. It's at store.rebeloper.com or if you want to hire me
and I can teach you the fundamentals of SwiftUI it's at rebeloper.com/mentoring or you could
just simply watch more of my videos that helps a lot you know and maybe just give it a like
if you want to. Now this will be the last video on the YouTube Channel for this year. I want to make
sure that we kick off next year really, really great. So if you have an idea or a suggestion
for a YouTube video that I could make a tutorial a topic go ahead and comment down below. I would
gladly do that and yeah I'm really looking forward for your suggestions. Now number 2.
Another good habit is break down the problem into sub tasks. Now this is something again
a no-brainer but I see this quite a lot with newbie developers. They want to build the next
Instagram and yes that's it. It's a one sentence job description or project description. If you
want to build out the next Instagram you want to think about scalability. You want to think
about for example authentication or data management like the database, users, posts, reels.
All of those small things. As you can see now I'm just chunking it down. For example if you want to
take a look at authentication. You will have a user. How will they authenticate? Well email and password
maybe sign in with Apple, you know whatever you choose to. Then what would the profile look like.
Profile image, name, description, maybe a bio, a profile name and and all of those good. How are
you going to store all of that? Are you going to store it in Firebase maybe. How are you going
to create that collection? So as you can see I'm planning these subtasks from, I'm breaking
down the whole picture into subtask. Usually you want to write this down because yeah there will
be a lot and then you can just assign yourself I don't know today I'm going to work on this subtask,
on that subtask and then you are going to have progress. If you just want to
have like one idea project and just take it that you will never execute. So break down a problem
into subtasks, okay. Number 3. This is a very, very good habit. Do the hard work first. I always
start my day with the hardest coding challenge that I have facing me. So you know, you kind
of have that feeling that oh I want to avoid that. I want to delay this as much as possible. No! Eat the
frog first go ahead once you wake up, or once you just go and sit at your desktop just
solve the hardest program that you have on your table. It will be a massive difference. Even if
you just do this one thing that they it will be really, really fantastic. The the next thing that
you are going to do is just going to be bonuses. Number 4. A good habit is to abstract but only
a little bit. Now I have to tell you this. This is a kind of my sin. I abstract quite a lot or I would
say I abstracted quite a lot. I made all of these nice libraries which made my life really, really
easy but at the end of the day it was just for me. But if you want to you know develop you have to
be inside the team, you have to take care of your community whoever is using those libraries.
You want to abstract things because of course you don't want to reuse, you're going
to rewrite your code you want to reuse that but if this is much too abstract. People can't really
understand it or they have to learn a lot in order to understand it. Maybe the game isn't out weighing
the loss, you know the the learning curve that it may provide. So abstract but only a little bit.
And finally a good habit to about is number 5. Reuse code as much as you can. Now if you've been
following this channel you know that I'm always refactoring. Always reusing, always creating these
nice small little libraries that you can use and of course I always just try to make our lives
easier, faster, smarter coding. And that's why of course I have the store.reveloper.com
where I also sell all of this stuff. Navigation Router is one of my favorite products. Go ahead
and check it out, I worked on it quite a lot. I put a lot of passion to it. So you can reuse that code
and navigate really, really easily in SwiftUI. So number 5 was reuse code as much as possible.
Go ahead and check out store.rebeloper.com for all of my products that you can use to reuse
inside your code. Now that is it for this year. Hope you enjoyed this YouTube videos that I put out
and hopefully we will do a lot more next year. I wish you Merry Christmas and a Happy New Year.