I always wanted to find a way to develop CSS in a way I write C# or JavaScript. The main problem in CSS as a language for me were complexity of refactoring and code reuse.
There were projects such SASS and LESS, but there was no way to adopt them into .NET/Visual Studio environment easily.
About month ago I met amazing product - Mindscape Web Workbench . It is a Visual Studio plug in, allows you to write SASS, LESS and Coffee Script with Visual Studio and therefore use power of those technologies in ASP.NET project.
Sunday, October 6, 2013
Sunday, June 30, 2013
TypeScript lambda expression
In my opinion, TypeScript is the best solution for MS/.NET oriented development.
At first - it is very similar to C#, that makes .NET developer's life easy.
At second - TypeScript is a superset of JavaScript, and you can mix "pure" JavaScript code with "typed" TypeScript. It is very important in case you have a lot of JavaScript in your project and want to take advantage of modern web technologies. I have an example - my IZWebFileManager project
At third (but not less important) - it has Lambda expression
I am using JQuery AJAX, and used to write such code:
It is simple closure, that I use to keep reference to the instance that I work with from ajax callback.
This pattern became routine and very annoying.
But TypeScript bring the solution:
It is much simple, no need to care of what 'this' is anymore. It just does all this annoying routine behind the scene. There is compiled JavaScript output:
It worth to move to TypeScript just because it is a great feature
At first - it is very similar to C#, that makes .NET developer's life easy.
At second - TypeScript is a superset of JavaScript, and you can mix "pure" JavaScript code with "typed" TypeScript. It is very important in case you have a lot of JavaScript in your project and want to take advantage of modern web technologies. I have an example - my IZWebFileManager project
At third (but not less important) - it has Lambda expression
I am using JQuery AJAX, and used to write such code:
This pattern became routine and very annoying.
But TypeScript bring the solution:
It is much simple, no need to care of what 'this' is anymore. It just does all this annoying routine behind the scene. There is compiled JavaScript output:
It worth to move to TypeScript just because it is a great feature
Tuesday, March 19, 2013
Junk Email - free source of Unicode characters
When you test Unicode support of an application, you likely use text snippets of foreign language.
Recently I found a free source of such texts - it is Junk Email. There you can find tons of text in Chinesе, Turkish, Russian and more. :)
Recently I found a free source of such texts - it is Junk Email. There you can find tons of text in Chinesе, Turkish, Russian and more. :)
Monday, March 4, 2013
IZWebFileManager got better!
Today I released a new build of IZWebFileManager - v2.8.0.
This is a new minor release, but it includes a major changes.
First of all, I dropped IE7 support. Previous version 2.7.2 works in IE7, and you may stick with it if you really need IE7 support.
A new "supper" feature has been added - Select Folder dialog. When you copy or move selected item, then Select Folder dialog is open to allow you to pick up a destination.
In additional, there are many new properties were added to support look and feel customization:
This is a new minor release, but it includes a major changes.
First of all, I dropped IE7 support. Previous version 2.7.2 works in IE7, and you may stick with it if you really need IE7 support.
A new "supper" feature has been added - Select Folder dialog. When you copy or move selected item, then Select Folder dialog is open to allow you to pick up a destination.
In additional, there are many new properties were added to support look and feel customization:
- SelectedItemBackColor
- SelectedItemForeColor
- SelectedItemBorderColor
- SelectFolderTreeStyle
- DetailsColumnHeaderStyle
- DetailsSortedColumnStyle
- DynamicMenuStyle
- TextBoxStyle
Demo project contains samples of using of them.
You can download this new build from project's page.
Wednesday, January 2, 2013
Converting existing JavaScript code to TypeScript in Visual Studio
The best way to learn new technology is to start using it with real project. I have such - IZWebFileManager. It was written when ASP.NET MVC wasn't event in mind and Web Forms was only framework for web application in .NET. IZWebFileManager is an ASP.NET Server Control and has about 1300 lines of JavaScript code.
The challenge is to convert all existing JavaScript code in the project to TypeScript. The result of this effort you can find here: https://github.com/manishma/IZWebFileManager/tree/typescript
It this post I'll tell you about steps I went through.
The challenge is to convert all existing JavaScript code in the project to TypeScript. The result of this effort you can find here: https://github.com/manishma/IZWebFileManager/tree/typescript
It this post I'll tell you about steps I went through.
Tuesday, January 1, 2013
Using TypeScript with an existing ASP.NET project.
TypeScript looks very powerful for me, and I want to use it with all my ASP.NET projects. But I found it is not trivial to add support of TypeScript to an existing project. After installing TypeScript for Visual Studio 2012 I was able to add new TypeScript file (*.ts) to the project, but any changes in the *.ts file did not affect it's output *.js file. Seemed like TypeScript compiler doesn't work for me. It was strange, because I found it works perfect in test project created from TypeScriptHTMLApp template.
After comparing *.cspoj files I found the difference - there is an "magic" build step has done to compile *.ts files in TypeScriptHTMLApp template:
I just added this lines in my existing project's *.csproj file and it works fine now.
Later I found the same answer in Stack Overflow. (Should I've searched there for an answer first? :))
After comparing *.cspoj files I found the difference - there is an "magic" build step has done to compile *.ts files in TypeScriptHTMLApp template:
I just added this lines in my existing project's *.csproj file and it works fine now.
Later I found the same answer in Stack Overflow. (Should I've searched there for an answer first? :))
Tuesday, September 4, 2012
Using ASP.NET Bundling and Minification with Web Forms
Bundling and Minification is a new feature of ASP.NET 4.
Learn more from this tutorial http://www.asp.net/mvc/tutorials/mvc-4/bundling-and-minification.
It has been promoted as part of ASP.NET MVC 4, but actually does not depend on MVC stack and may by used within any ASP.NET application including ASP.NET Web Forms.
When you start a new ASP.NET MVC 4 application using Visual Studio template, it sets up all what you need to start using this feature, but if you have an existing ASP.NET application (even not MVC), you have to complete following steps to make it works with your app.
Learn more from this tutorial http://www.asp.net/mvc/tutorials/mvc-4/bundling-and-minification.
It has been promoted as part of ASP.NET MVC 4, but actually does not depend on MVC stack and may by used within any ASP.NET application including ASP.NET Web Forms.
When you start a new ASP.NET MVC 4 application using Visual Studio template, it sets up all what you need to start using this feature, but if you have an existing ASP.NET application (even not MVC), you have to complete following steps to make it works with your app.
Subscribe to:
Posts (Atom)