Some of my good code practices
Mateus Patricio
Posted on January 27, 2022
Hey, this is my first time here. I'm Mateus Patricio, and I'm kinda new to the programming world. I have been using dev.io since last week and started to read a lot of nice stuff here; that's why I want to contribute by sharing my knowledge like a lot of people here.
Also, it is worth mentioning my teacher, Alexandre Aquiles, the guy who showed me this community.
So, it's time to show some of my good practices, some of what I learned in the last 2 months.
1. Don't write a code only for you:
- When you start coding, you start with small projects that the only people who are going to see and have the necessity to understand are you. But when you start to working in a company with another developers, and if you write a code like you do when you start, things not going to do well, that's why you need to understand since the beginning of your journey in coding the importance of write a code that's anyone can understand.
2. Don't simplify everything:
- Simplifying your code is a good thing, like it is really a good thing; the problem is when you simplify a code and because of that you make the code hard to understand. The thing is...you don't have to simplify every code you do; you have to see if the simplify version you are going to do is the most readability version of it.
3. Plan what you're going to do:
- It is excellent when you start to plan what you are going to do, like, don't let you just go automatic. Stop to think about what approach you're going to take to solve a problem; don't rush things; just stop and start to see what you're going to do and have to do. If you rush things or don't stop to develop a way to solve a thing, you are probably going to have to start all over again, because you don't see all the panorama of the problem.
4. Coding everyday:
- I really, really, would love to have someone to say to me the necessity of coding every day. At the start of my studies, I really would put the theory above practice, and I was so wrong, you need to practice a lot to become a good developer, this is the only way to really become a good developer, of course you need theory but don't put the theory above practice. Code every day have a lot of benefices; you start to understand and see the better way to solve a problem; you start to make less and fewer mistakes, and you start to discover new ways to solve and do things, that's are only few of the various good things of coding every day can do to you.
5. Take your time:
- This is really important, you need to take your time, everyone has the own time to understand, and learning something, if you take more time that others, don't be mad or sad, is just your time, that's why you can't be too demanding about yourself, like Pharrell Williams says: "Just be yourself".
Conclusion:
- That's are some of the things that I wish to know in the start of my studies, is really important to you have good code practices, because you are not going to code just for yourself, and even if you code for yourself, you're not going to be a good developer if you don't use your skill properly. Furthermore, these aren't the only good practices; these are just the most significant practices for me and the practices I wish I knew at the beginning of my journey.
💖 💪 🙅 🚩
Mateus Patricio
Posted on January 27, 2022
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.