Nimble GeckoBlog of an upside-down developer, Art Skvira

Replacing pain and suffering with bliss and joy in your .NET journeys

How to avoid and fix NullReferenceExceptions in ASP.NET MVC

30 Jul 2015

Quite often people stumble into same problems again and again, and getting a NullReferenceException is the one that occurs most frequently, and frankly, can be quite annoying. This problem happens when writing brand-new ASP.NET MVC code, such as controllers or views, but also when modifying existing code that used to work just fine, but somehow suddenly got broken. Here I want to show you why these exceptions happen and how to fix them, so you can stop wasting your time and do more of the programming that you actually enjoy.

Read more →

How to use Bootstrap 3 validation states with ASP.NET MVC Forms

15 Feb 2015

Recently, when writing code for my blog post on drop downs, “DropDownListFor with Dictionaries in ASP.NET MVC and why SelectList wants to kill you”, I stumbled over an interesting problem – when using ASP.NET MVC HTML helpers, such as @Html.TextBoxFor() and @Html.DropDownListFor() to render controls and @Html.ValidationMessageFor() to render validation error messages, I realised that ASP.NET MVC uses its own CSS classes, so no errors are getting highlighted when using Bootstrap 3.

Read more →

DropDownListFor with Dictionaries in ASP.NET MVC and why SelectList wants to kill you

06 Jan 2015

I would like to show you how to use ASP.NET MVC helper function DropDownListFor and SelectList class with generic Dictionaries, such as Dictionary<string, string> or Dictionary<int, string>. Dictionaries can be quite useful for a number of scenarios – serving as a data source for select lists of countries, states, time zones, age ranges, genders – basically any pre-defined, fixed-set options lists.

Read more →

Using Drop Down Lists with enums in ASP.NET MVC

17 Nov 2014

ASP.NET MVC is a very powerful, yet quite complex (if not complicated) web development framework. There’s a heaps of various namespaces, classes and functions. It’s bloody hard to figure out which particular class or function overload you need to use for your specific task.

Read more →

Learning How To Learn Better

29 Oct 2014

There probably was only a handful of subjects at school and later at uni that I liked - and I despised or ignored the rest, doing everything I could just to get a good enough grade to get to the next term. It wasn’t all that different at work after that - whenever something boring had to be done, I’d distract myself with whatever I could - news reading, social media, pretending to ‘learn’ by reading tech articles/books. Sometimes that worked out ok, other times it totally sucked due to the stress of looming deadlines.

Read more →

Using simple Drop Down Lists in ASP.NET MVC

15 Oct 2014

It’s surprising how many subtle, but frustrating traps one can fall into when building sites with ASP.NET MVC. Creating forms for the web is one of them. It’s common to spend hours on something trivial, such as displaying a selected value in a DropDownList on postback, or getting that selected value in a controller. Quite often it happens when you just start learning ASP.NET MVC or upgrade from an older tech. And boy, is this frustrating as hell – instead of building an actual web app, you spend hours wrestling with the framework.

Read more →

Adding a coins pocket to Mighty Wallet: a DIY adventure

22 May 2014

When my old leather wallet started falling apart I decided I could do without another piece of an animal’s skin. Turns out in this day and age you don’t need to kill a cow to make a wallet - just use something synthetic, like tyvek.

Read more →

Resume trawling job ads

21 Aug 2013

Sometimes you come across a job ad and think - man, that’s a totally awesome role, and the technologies are just right - all the spanking new, koolkids tech, none of those yesteryear’s spaghetty-code-promoting proprietary technologies; and the project sounds way too rad - an uber social-geolocation-photosharing crowdsourcing app for neo-hipsters. Without further ado you reach for your CV that’s been just updated and off it goes.

Read more →

You are batshit crazy

13 Jul 2013

You have surely seen some crazy people around. A dude walking down the street and yelling uncontrollably and unpredictably. Or that old lady on the train - she always seems to argue with somebody invisible. Man, you tell to yourself, it must suck being those guys. What a mess must be going through their heads all the time!
Read more →

You should be doing more job interviews

22 Jun 2013

Even if you change jobs often, having an interview can be a stressful experience. No single interview is the same, and there's always plenty of things to throw you off the track even if you're a seasoned job hopper or a contractor.

Read more →