In this blog post I am doing a small recap to give you impressions of the first ASP.NET MVC workshop.
Even when I am not doing it in my current project at work I am very interested in ASP.NET and the ASP.NET MVC-Framework and everything which is needed to build modern web based applications.
Last Saturday my preparation for a very special workshop for me ended and I was glad to give five students the first ASP.NET MVC-workshop at the university Albstadt-Sigmaringen. (One of them had to leave 5 minutes earlier, so do not be confused while seeing only four students on the picture ;) )
We started shortly after ten o’clock (because I know that students can be late sometime ;)) and we were talking about Asp.NET MVC for four hours with a one hour break in the middle.
In the beginning we were looking at the examples of the visual studio and what the Microsoft examples offer us. The students learned how to get along with visual studio and Asp.NET MVC, they learned a lot about Controllers, actions, attributes, Models and Views, about the Razor engine etc.
Also general things like the request-based web (HttpGet/HttpPost) and CDNs were mentioned to give the students a whole great picture.
Five students were not many, but they were hungry about knowledge and they were active. They programmed what I presented up in the front to test it right away and they asked a lot of questions (which is probably the best thing that can happen to you if you give a workshop).
Also routing was a topic at this workshop and how it is connected to Asp.NET MVC.
One of the points which were most important to me getting into the students heads was the viewmodel-principle. So we made a lot of examples and the students finally did a practical work for themselves in groups. So they were getting to know what they saw up in the front and could manifest the presented stuff.
External libraries have also been a topic. So the entity Framework was mentioned with the code-first approach and the students learned how to create database without building complicated SQL statements and saving data into it with different software-patterns.
After the lunch-break we were digging deeper into Asp.NET MVC and created a blog- application with the database to get data out of it.
We also touched the role-, and user-based authentication and authorization and exploring in which way we can use the Microsoft-given things. Also the advantages and disadvantages were mentioned and we discussed a way to solve the problems you can have sometimes while implementing a web application.
In the end our blog was completely ready with all Create-Read-Update and Delete-Actions (CRUD) which are needed for a modern internet application.
The students now have a complete example of how a modern web application can be organized with all advantages and disadvantages of the Asp.NET MVC-Framework and how to solve the pain-points it gives to you. They saw how to implement C#-Code and how to use the linq-queries combined with the Entity Framework and Software-Pattens to give their application structure and get data out of their database.
For me it was a lot of fun, I was glad the university gave me the opportunity to present and to impart my knowledge about Asp.NET MVC. And even if my throat hurt a bit because of 4 hours talking: Live programming with students is much more fun than pushing an audience through PowerPoint slides.