Handling builds via Team Foundation Server 2017 REST API

In this post I am going to show you how to utilize the new TFS 2017 REST API. In particular you will see how easy is to list, queue and manage builds for your team project. The plan is to Authorize to TFS 2017 on premise and connect to its web rest api. Get a list of team projects For particular team project get a list of build definitions Queue particular build definition Chec…

By Mirek on (tags: build, HttpClient, REST, tfs, categories: infrastructure, web)

Full responsive vs m-site approach

Nowadays there are more mobile devices than desktops and every mobile device can have different resolution and aspect ratio. That means that we need to come up with optimal solution to that situation. There are basically two main approaches: a website that can dynamically adapted to every screen size - full responsive or additional dedicated mobile version of every page – mobil…

By Piotr on (tags: ASP.NET, responsive design, categories: code, web)

Error handling in ASP.NET 5

There is a lot of changes since MVC5 regarding error handling. I will show you how to catch and handle some basic errors. Here is a nice article by Krzysztof about error handling in MVC5. First of all let me explain what “middleware” is…. or even better – here is the definition of middleware provided by OWIN from here: Middleware is our component which we can plug in to request…

By Piotr on (tags: ASP.NET5, error, mvc6, web, categories: web)

Using TypeScript in ASP.NET 5

As we can read on the TypeScript it lets you write JavaScript the way you really want to. And guess what – you can do it in Visual Studio 2015! Visual Studio TypeScript support two different modes: File Scope: in this mode TypeScript files opened in Visual Studio Code are treated as independent units. As long as a file a.ts doesn't reference a file b.ts explicitly (either using…

By Dawid on (tags: asp.net 5, mvc, TypeScript, visual studio, vs, categories: code, web)

Changes are coming – ServiceWorker

ServiceWorker is a newly developer spec for the web; currently supported by Chrome, Firefox and Opera. Instead of writing a post about it, I’m going to redirect you here. It’s an excellent presentation from a guy who’s working on it. I highly recommend to watch it. No idea how much change this feature will bring, but I must admin, it’s got a very big potential. Cheers, Chris…

By on (tags: serviceworker, categories: web)

Why you should always wrap form elements in a form tag

A simple ‘because it helps’ should be enough for most, but as for details… Wrapping form elements in a form tag used to be the only way to go a few years back. That was the time when AJAX was not around. Then, the asynchronous processing came and it’s become common to skip that step, after all, the request is done in a different way.  To be honest, I’ve skipped this step a…

By on (tags: None, categories: web)

MVC custom error pages

Long story short – mvc does not handle custom error pages in a way that could be described as ‘even close to correct’. But if you need to fulfill a requirement, you start hacking. First of all, I’d like to share a few links: http://www.prideparrot.com/blog/archive/2012/5/exception_handling_in_asp_net_mvc http://benfoster.io/blog/aspnet-mvc-custom-error-pages http://www.secretge…

By on (tags: mvc, categories: code, web)

Where to learn CSS3

For those who start their adventure with web developing, especially with cascading style sheets, or those who want to catch up on what is new in CSS3, there are couple of resources you might find quite useful and reach. The first starting point, and for sure a every day work manual about CSS3, is w3Schools.com. A rich compendium containing hundreds of definitions together with …

By Mirek on (tags: css, categories: web)

Why designers should learn front-end development and front-end developers should learn design

Recent experiences have brought me to write this article, for the sake of improving developer <–> designer communication. TL;DR; If you’re a developer – read about basic design principles. Color schemes, golden ratio, typefaces and the likes. If you’re a designer – find a introductory tutorial on html and read it.   If you made it this far, means that you’re interest…

By on (tags: design, categories: web)

Like that? really?

So I found this. Please don’t do that. Do something better, it’s easy and less complicated. I’ll show you how. I doubt that OWIN components have been designed to be used as a DI container and in this post – they certainly seem to be used that way, unless I’m not seeing something. The idea behind the article IS GOOD. One manager per request – good, one DbContext per request – al…

By on (tags: ASP.NET, dependency injection, categories: tools, web)