Hacker News (curated)new | past | comments | ask | show | jobs| show hidden

Yes, Petzold's examples used a certain style to illustrate the use of the Windows API as clearly as possible. Petzold programs would have a giant switch statement handling WndProc messages, state would be held in tons of global variables, and everything crammed in to one huge file. Great for showing a concept and demonstrating how something works, not so good for developing a maintainable, reliable piece of software.


Thank you!



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact | github