Yeah, programming is fun, but whilst I was doing the first year course, which is was just Pascal and VB, the most painful part was looking at some of the other guys programs... Here is an example...
We were given a condition to write a game that involved 'pairs', as in you select a card, select another, and if they match, you up the score and keep them turned, else turn them back after 1 second.
One of the first thoughts that entered my head was 'Collection', simply throw all your pictureboxes into one collection, and then you can use Sender and a quickl check loop to find out which button was pressed. Not diifficult, once you get your head around the idea of a collection.
The usual solution from trainees was to write
36 If-Then statements, one for each card clicked..... It's the sort of thing to make someone who was used to coding with 32K of memory cry
