Сообщения

Сообщения за 2013

Backbone.JS + ASP.NET WebAPI

Изображение
Introduction Backbone.js is a powerful JS library built on top of Underscore.js library. It enables to create one page javascript applications using MVC pattern. Backbone.js could be downloaded from  http://backbonejs.org/ , also there exists plenty of examples and tutorials. ASP.NET WebAPI is newest Microsoft framework, which is a part  of ASP.NET MVC 4 . It provides developers with abilitity to quickly create REST services, which could be available from any device and client. More information about WebAPI could be found on  http://www.asp.net/web-api/overview Goal In this post I would like to describe how to create basic Backbone.js application, which is using WebAPI as a storage. Step 1 Create WebAPI REST service First lets create a REST service which will provide and modify all data in our app. Our service will be able to provide a list of skills, which we'll be defined by id, title and description. Also service will be able to add new skil

6 interesting facts about garbage collection.

1. Don't create big objects with short lifetime Any object in CLR that is more than 85 000 KB in size are stored in the special heap for big objects. Also they are marked as 2nd generation objects from the start. Creating big objects with small lifetime is bad practice. Why? Garbage collector will need to collect 2nd generation objects more often, and this could lead to performance issues. 2. When GC collects garbage it pauses all managed threads When garbage collection starts CLR hijacks all managed threads and pauses them. But in fact it doesn't affect coding, so... nevermind :) 3. You can predict OutOfMemoryException  In some cases if application consume a lot of resources there is a probability of OutOfMemoryException. Not good, yeah? But... you can predict for operations with big memory consumption by using MemoryFailPoint. Usage example: try {    using(MemoryFailPoint mfp = new MemoryFailPoint(1500))    {     //Run code which uses lots of memo

Мой год c Sitecore CMS

Изображение
Более года я не писал в блог не одного поста. В основном из-за отсутствия времени или желания, или просто от банальной лени. В этом посте я хочу написать о Sitecore CMS. Это та система с которой я работал более года, по которой получил сертификацию и по которой теперь думаю могу составить осмысленный обзор. О Sitecore Sitecore(www.sitecore.net) - датская компания с главным офисом в Копенгагене и центром разработке в Украине (Днепропетровск). Sitecore занимается разработкой своего продукта - Sitecore CMS, а также сопутствующих к нему расширений: Sitecore Intranet Portal - решение для созданий Интранет-вебсайтов Sitecore Azure - расширение для публикации Sitecore CMS в облако Web Forms For Marketeers - упрощает создание опросников и форм в Sitecore CMS Sharepoint Integration - расширение для интеграции с Microsoft Sharepoint Sitecore CMS Sitecore CMS основывается на следующих технологиях: ASP.NET MSSQL - используется для хранения данных и может быть заменено