My new web site at akzente.IT is online!
You will find some more information about me and my projects there.
My goals for the web page were twofold. First of all I wanted to have a nice virtual “business card” – a place where I can present myself to potential employers with a list of my skills and the projects I have done in the past.
My second goal was to use this opportunity to learn more about ASP .NET MVC (with Razor) and HTML5 and I have to say I’m very happy with the results. I think it was the first time I actually enjoyed creating a website. I have full control of the generated HTML, I didn’t have any hard to debug errors so far and the separation that MVC gives me is really cool. I’m actually using this to generate different views of my project page. I have a single controller responsible for the list of projects which delegates to different views depending on an input parameter (e.g. to generate a text only version for carreer networks) and it works quite nice. I’m thinking about extending this to automatically create a resumé in Word generating Office Open XML with a Razor view. I’m curious if this works.
Another interesting page is the blog page where I show some recent blog posts with links back to this blog. It was amazing how easy it was to build this.
public class BlogController : Controller { [OutputCache(Duration = 60*60, VaryByParam = "none")] public ActionResult Index() { var model = new Blog(); string feedUrl = "https://coding4life.wordpress.com/feed/"; using (XmlReader reader = XmlReader.Create(feedUrl)) { var feed = SyndicationFeed.Load(reader); model.Feed = feed; } return View(model); } }
My favourite is the controller attribute for output caching, which will cache the generated result for 1 hour, so that it loads faster and doesn’t hit the blog to hard in case there are many visitors.
That’s all about the website for now. I also have a profile now on GULP, check it out: https://www.gulp.de/Profil/AkzenteIT.html
Tags: ASP.NET MVC, GULP, HTML5, Website
Leave a Reply