@Irwing-Dev
Posted
Hi Anne! 👋
Answering your question, I recommend you to check out these articles to learn tehory:
SEO Best Practices: 10 Ways to Boost Organic Rankings & Traffic
Writing Clean Code: Best Practices and Principles
But, you're on the right track, your element classes are easy to understand and your comments are in harmony with your code, any programmer who looks at it will be able to understand it easily, although, I would be careful about always putting comments at every step. As you're just starting out, putting these comments in is good for you, so much so that I'd even recommend it, but you also need to prioritize the clarity of the code itself, so to know how to do this you need to ask yourself: "What is this line doing? Would any programmer be able to understand this without me having to give them any additional information?" and get the answer from the code itself. This practice is related to the principles of clean code, there are many articles on this, I recommend that you research the subject.
I hope I've helped you and I wish you good luck with your studies, see you later!👋👋
Marked as helpful