Блог пользователя chicapi

Автор chicapi, 10 лет назад, По-английски

Hello! When I struggle to find a correct solution for a problem, I like to learn from other users' code. But sometimes it's difficult to find a code easy and clear to understand!

I would like to know your opinions: which coder has a nice coding style? From whom do you learn the most?

Thank you!

  • Проголосовать: нравится
  • +13
  • Проголосовать: не нравится

»
10 лет назад, # |
  Проголосовать: нравится +14 Проголосовать: не нравится

Do not look at Egor's but rng_58's codes are easy to understand to me

»
10 лет назад, # |
  Проголосовать: нравится +2 Проголосовать: не нравится

tourist cause he tries to avoid macros....

»
10 лет назад, # |
  Проголосовать: нравится +3 Проголосовать: не нравится

Language also matters in this case, while Petr and Egor write codes in Java, tourist and rng_58 use C++. I use Java in my projects but I like to use C++ in CF. So I usually see the codes of tourist, some top performers of Div.2 and at last I compare my solution with code of my expert friends.

»
10 лет назад, # |
  Проголосовать: нравится +6 Проголосовать: не нравится

Just use the codes of div1 participants. They usually do many things simplier. Sometimes because of clear understanding what to do, sometimes because of language tricks. Try to figure it out, profit will come. If you want to look at div2A,B — find 1700-1800 participants, the aren't really div1, they know it, and soometimes writing div2 A,B) Sometimes codes looks really great (for example, I saw 2 bfs under single while(), it gives many features in comparison with 2 separated bfs).

»
10 лет назад, # |
  Проголосовать: нравится -10 Проголосовать: не нравится

I initially misunderstood this post as "who is your preferred problemsetter?"

»
10 лет назад, # |
  Проголосовать: нравится +8 Проголосовать: не нравится

I think that my coding style is quite good (Am I too arrogant?). Unfortunately, I am only a newbie and you can learn nothing from me. I can hardly read most masters' code as they use a lot of macro, and the variables are named casually.

  • »
    »
    10 лет назад, # ^ |
    Rev. 2   Проголосовать: нравится 0 Проголосовать: не нравится

    I can hardly read most masters' code as they use a lot of macro, and the variables are named casually.

    i don't think so. look at codes of Petr and Egor. they are very clean and easy to read.
    FYI, both of them code in Java (which doesn't support macros) and use IntelliJ IDEA IDE (which has awesome auto-completion, so typing long variable names can be done very fast).

    also, i usually read only editorials and try to implement the solutions myself (without looking at others' codes). i suggest u do the same.

»
10 лет назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

I like the way hos.lyric codes.

»
10 лет назад, # |
  Проголосовать: нравится +8 Проголосовать: не нравится

YuukaKazami likes OOP and his code style is much like the Google style.

»
10 лет назад, # |
  Проголосовать: нравится +1 Проголосовать: не нравится

i like LinKin's style of coding

»
10 лет назад, # |
Rev. 2   Проголосовать: нравится 0 Проголосовать: не нравится

Definitely YuukaKazami.I find his codes really easy to understand.

»
10 лет назад, # |
  Проголосовать: нравится +3 Проголосовать: не нравится

Besides Egor and Petr, I think flashmt writes really clean codes.

»
10 лет назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится
»
10 лет назад, # |
  Проголосовать: нравится +3 Проголосовать: не нравится

Until now I have only looked to Petr's Code and it was enough, he writes very clear code. I have learned a lot from him.

»
10 лет назад, # |
  Проголосовать: нравится +56 Проголосовать: не нравится
»
10 лет назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится
»
10 лет назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

tourist is incredible. For me one of the best in the world.

»
10 лет назад, # |
  Проголосовать: нравится +7 Проголосовать: не нравится
»
10 лет назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

KrK is very clear for me

»
10 лет назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

Bekmyrat.A and Allanur also NinjaCoder: That guys are really clear for me

»
10 лет назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

I usually go for tourist's code, but if I am unable to understand or if he hasn't submitted a solution for a particular problem then I fall back to Petr's code. If both are not available, I just go and check out random users' codes!

»
10 лет назад, # |
  Проголосовать: нравится +6 Проголосовать: не нравится
»
5 лет назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

I am specifically looking for Div 2 answers specially Div 2C, 2D, 2E. egor and petr are Div1 users, even though they write the best of the codes for starters like us its difficult, as we are looking for Div2 problems only. Please suggest

»
5 лет назад, # |
  Проголосовать: нравится -8 Проголосовать: не нравится

i like Ashishgup's codes, very clear and easy to understand

»
5 лет назад, # |
  Проголосовать: нравится +25 Проголосовать: не нравится

I like to read codes of tmwilliamlin168 ,he codes very cleanly and it is easy to understand when I am stuck.

»
5 лет назад, # |
  Проголосовать: нравится +14 Проголосовать: не нравится

tfg's code is very op

»
5 лет назад, # |
  Проголосовать: нравится -9 Проголосовать: не нравится

I like Radewoosh codes and he also participates in many contests but he uses some Polish variables names like wyn

»
5 лет назад, # |
Rev. 2   Проголосовать: нравится +28 Проголосовать: не нравится

Ashishgup and cerberus97. Both of them writes some serious neat code.

»
5 лет назад, # |
  Проголосовать: нравится +11 Проголосовать: не нравится

Of course Ashishgup

»
5 лет назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится
»
5 лет назад, # |
  Проголосовать: нравится +14 Проголосовать: не нравится

neal because his variable naming is self-explanatory and ecnerwala because he often comments his code.

»
5 лет назад, # |
  Проголосовать: нравится +4 Проголосовать: не нравится

amiratou is my favorite coder !

»
5 лет назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

I like to read and Errichto and Um_nik's code. Their codes are really easy to understand.

»
5 лет назад, # |
Rev. 4   Проголосовать: нравится 0 Проголосовать: не нравится

I like AnandOza 's code as I use java. He uses meaningful variable names and code is easy to understand.

»
5 лет назад, # |
  Проголосовать: нравится +20 Проголосовать: не нравится

agural is my style icon. One can learn not only by understanding his code, but by understanding him. His essence is to stay on the offensive: to take risks, to recover very fast when you make a mistake, but to keep moving forward.

I am not afraid to say that everything I know, I learned from agural.

»
5 лет назад, # |
  Проголосовать: нравится +9 Проголосовать: не нравится

Bruteforceman is the man

»
5 лет назад, # |
  Проголосовать: нравится +28 Проголосовать: не нравится

KrK's, rng_58's, tourist's codes are good.
And I also recommend codes like dreamoon_love_AA's (Wow, long username) and other famous coders. Because sometimes you can find a different solution and that will be very helpful.
If you don't want to browse all the solutions, you can just see high-rating coder's codes.
Hope this isn't too late. :D

»
5 лет назад, # |
  Проголосовать: нравится +1 Проголосовать: не нравится
»
5 лет назад, # |
  Проголосовать: нравится +40 Проголосовать: не нравится

Deemo very good code. I learn Deemo code. 10/10 would recommend. One Deemo a day, keep the doctor away. Also good SaSa, very good 4A - Watermelon.

»
5 лет назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

I like Petr, his code is very explanatory and all his variable names are proper to what they describe. His videos are also good to watch!

»
5 лет назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится