+ 3

Am i the only one that feels so confused when I see solutions to challenges or trending codes

19th May 2018, 10:16 AM
OBAwesome
7 Antworten
+ 8
Alex yes i 100% agree that commenting on code is good practice 👍
19th May 2018, 11:35 AM
D_Stark
D_Stark - avatar
+ 7
I Don't know if you Are the only,but im 100% sure you weren't the only one.I also found challenge s and complex codes confusing.thats why uts advisable to read courses first before jumping into stuff on this app
19th May 2018, 10:18 AM
᠌᠌Code X
᠌᠌Code X - avatar
+ 7
i get confused of my own codes if i leave it a couple of days and return to it 😂
19th May 2018, 11:25 AM
D_Stark
D_Stark - avatar
+ 5
It's totally normal to get confused by codes you don't know much about yet. Heck when I started I even got confused by my own older codes sometimes :D Just like when you are creating a bigger code you need to dissect the different elements in it and understand the smaller parts to form the big picture of it. It's hard as a beginner, but you will get a better feeling for other's codes the more you try to understand them. When something is too confusing you can also drop a question about the code in the comments. I'm pretty sure that plenty people are happy to help you clear your doubts when you don't understand certain parts.
19th May 2018, 10:40 AM
Alex
Alex - avatar
+ 5
D_Stark try to learn the habit of immediately refactoring or at least commenting code fragments you spend too much time figuring out what is going on. So whenever you (or someone else) look at the same piece of code in the future it is more clear. When you have trouble understanding your own code it's often a sign for it not being clean enough.
19th May 2018, 11:32 AM
Alex
Alex - avatar
+ 4
D_Stark Often you don't feel the need to do it, because it seems absolutely obvious. But if you think about it: when writing the code you put in a lot of thoughts and you know the exact circumstances. You are absolutely focused on it when creating it. That's a totally different thing than reading something you did maybe some weeks ago. He need to get into it first the get to the same level as in the time you wrote it. Try to see comments as a message to your confused future self :D
19th May 2018, 11:48 AM
Alex
Alex - avatar
0
thanks guys
21st Jun 2018, 8:01 AM
OBAwesome