int_Jak's blog

By int_Jak, history, 14 months ago, In English

Recently I really got disheartened by seeing some code written by redcoders. Why they write POSH style code which nobody understands or at least hard to understand instantly? Is that really necessary?

can you understand this for loop in one go?

for(i=(B<2?2-B:0); i<res; ++i){

I think no.

  • Code should be easy to understand for all

Hail to easy code...

  • Vote: I like it
  • -18
  • Vote: I do not like it

| Write comment?
»
14 months ago, # |
  Vote: I like it +33 Vote: I do not like it

sir, I'm so sorry.

Next time when I write code I will remember you and I won't use any ternary operators. Doesn't matter if I have to waste time writing longer code. After all, the only thing that's important is how aesthetically pleasing it is for you.

Please forgive me

»
14 months ago, # |
  Vote: I like it 0 Vote: I do not like it

What's posh code

»
14 months ago, # |
Rev. 2   Vote: I like it 0 Vote: I do not like it

Downvoted, what's wrong with this loop?