Bouncing off the walls: This is about colliding with the sides of the viewport

We all bounce off the walls from time to time, here is some code without explanation on how to do so.  You will need a really simple png image to make this happen, or even a real complex one. You will need a small png to do this app, I have attached the working code…

0

Setting Code Contracts in Visual Studio 2010

Continuing his great work on Software Contracts from the April 2011 issue of MSDN Magazine  Dino Esposito, in the May 2011 issue, Dino shows how to set-up code contracts in Visual Studio 2010.  In this article Dino now asks the question and guides you to the answers of whether to use code or software contracts…

0

Encapsulation at Duff’s Beer brewery

Continuing from yesterday, we created an encapsulation like program, except everything was public.  Is that true encapsulation?         I copied this table from the URL below: http://www.csharp-station.com/Tutorials/Lesson19.aspx Access Modifier Description (who can access) private Only members within the same type. (default for type members) protected Only derived types or members of the…

0

A quick review of Encapsulation using Duff’s Beer as an example

What is encapsulation? One thing it isn’t, but is similar to: Using dogs swimming in beer for flavoring.  In this case this would be the hiding of the fact that dogs are used to flavor Red-Tick beer, unlike Duff’s beer (the beer Homer Simpson loves) which uses the usual natural and manmade processes of beer…

0

F# online: Have you wanted to experiment with a functional language?

Science and engineering uses a different approach to programming than computer science.  In computer science there is a desire to create interesting product that works on computers and related tools.  Science and engineering are interested in analyzes of data, control systems, simulations and logistics.  This means that object oriented programming is useful, but can lead…

0