Ad
  • Custom User Avatar

    Well, I'm not C++ coder, but as far as I remember, it doesn't look like "good style code" on C++. Also comparing to literal languages is kinda wierd imho, bcs there's no performance quality for speach)
    Do you know how can I compare those solutions (mine and this) by performance? Bcs my mentor saying that performance is the most important moment for coder.

  • Default User Avatar

    Consider this: could you form a sentence based on what you see in the one-liner? Yes. How would is sound if you formed your solution into literal language? More like a paragraph?

    I'm not putting judgement on your solution. I'm only considering what it might be like to really consider what readability means.

    Fo a lot of coders, a one-liner like this quite easily tells them everything they need to know all at once.

  • Custom User Avatar

    Looks like it's really cool to know it as a feature, but ihmo it very unusable code, at least because it hard to read