aruslan: (Default)
aruslan ([personal profile] aruslan) wrote2004-10-01 09:11 pm

Мечта Q&A - How to Write Unmaintainable Code

Практически вся неделя прошла под знаменем How To Write Unmaintainable Code.

Your code should not look hopelessly unmaintainable, just be that way.
Otherwise it stands the risk of being rewritten or refactored.

[identity profile] cyberzx.livejournal.com 2004-10-01 02:10 pm (UTC)(link)
ох, пытаюсь написать программу в unmaintable code, но у меня ничего не получается. я безнадежен :((((

Зажги!

[identity profile] aruslan.livejournal.com 2004-10-02 12:46 am (UTC)(link)
Не бывает безнадежных - бывают ленивые ;)

[identity profile] http://users.livejournal.com/_winnie/ 2005-11-03 11:25 am (UTC)(link)
Учись.

#include <iostream>
//(c) _Winnie
int P(int p,int i){return i--==p&&p-2&&P(i,i),i<2&&std::cout<<p<<' '||p%i&&P(p,i); }
int main() {  P(100,100); }