avva: (Default)
[personal profile] avva
(интересно будет только программистам и сочувствующим, знающим язык C)

Интервьюировал кандидата, который в своем коде на C все время писал так:

for (unsigned i = 0; i < ...


Забавно. Вполне нормальный C, конечно, но в последний раз я видел код, который использовал unsigned, а не unsigned int, где-то в середине 90-х, наверное. Веет от этого кода чем-то старинно-олдскулным.

Date: 2011-05-26 10:50 pm (UTC)
From: (Anonymous)
Of course you don't write uncompilable code. Use whatever features are well supported by your target compiler(s), identify and avoid the murkier corners. That's what we have to do with C++. Compilers still don't implement the standard fully, after all these years.

OTOH there's always experimental, one-off code that doesn't go to production. Use it to experiment with those less supported features of the language.

December 2025

S M T W T F S
  123 4 56
78 9 10 11 1213
1415 1617181920
21 22 23 24 2526 27
28293031   

Most Popular Tags

Page Summary

Style Credit

Expand Cut Tags

No cut tags
Page generated Dec. 29th, 2025 07:45 pm
Powered by Dreamwidth Studios