Ordering Pizza Application

This was a big challenge. As you’ve probably seen from some of my other posts I’ve been going thru courses over a Learnvisualstudio.net, courtesy of Bob Tabor. He has some challenges built into some of his course tracks and videos. So that’s where this program comes from. I’ve also added some of my little tweaks here and there. So this might seem simple but it took me a few weeks of working with things, testing, and tweaking.

Basically it’s a web based program used to track pizza orders. There are multiple tables in the database that keep track of various items. I wanted every aspect of the program to get any and all information from the database. Having said that you will see multiple entities, dto objects, etc… There are areas I can clean up and optimize the code that I will work on later. Also I’m working on some error logging for a later version. Hope you enjoy it and keep a look out for changes. I’m working on it as time permits.

Continue reading

Advertisements

Bootstrap CSS Example

I’ve been wanting to play around with some CSS and other cosmetic changes to my web projects. With the help of Bob Tabor over at Learn Visual Studio.Net I went thru some of Bootstrap videos to help with this. I applied them to the code from the previous post with the Inventory database. I’ll spare the posting the code details in the different layers. If you want to see them you can go see for yourself. I’ll just post my usual program screenshots along with the html code.

Continue reading

Inventory Database Example

This small inventory database program is building on the last example on the separation of concerns. I’ve added some try/catch and exceptions. Both normal and throwing new ones. This has shown me how the exceptions can be passed thru the layers of the program. And from there how to display the error, log the error, etc… Also you will notice the links enabling the user to view, add, and remove items from the database. You will be able to see how things are done in the code.

Continue reading

Separation Of Concerns (SOC)

In this example I’ve been learning about the separation of a program into layers. Along with doing some simple site database and Entity framework tasks. In this example there are the following     layers. A presentation layer, a domain layer, a data transfer layer (DTO for short), and a persistence layer. The flow of the program is the presentation layer makes calls to the domain layer. The domain layers might do some work, if not, then the domain layer will make calls to the persistence layer. The data transfer layers job is to only transfer data from the persistence layer to the domain layer.

Continue reading

Slot Machine Update v3.1

Here’s a revision on the Slot Machine entry I made back in December. If you remember the previous version of the program was a course challenge I did from Bob Tabor’s Learn Visual Studio.net page. Well I’m still going thru the videos on his site. Some of the code you see in this blog is either stuff I’ve taken from classes and improved on as I learn new things. This version of the slot machine is just that. In a nutshell what I’ve done is taken the game and broken it up into different functional classes and methods. I’ve also went from using arrays too collections. This was done after my lessons on collections and I took a liking to them a little more than arrays. I know arrays have their purposes in certain programs as do collections. I just found collections easier to work with for this project.

Oh, also as a note there will be a break in posts for a couple of weeks. I’ll be transitioning my development environment over to a new server. So once I get that up and running and the virtual machines migrated I’ll be back to work. 🙂

Continue reading