ashic

Stories kicked by ashic

Formatting JavaScript Date(www.heartysoft.com)

submitted by ashicashic(160) 4 months, 25 days ago

Formatting DateTime in C# is dead simple – just call ToString() passing in the format string you desire. Doing the same in JavaScript is annoyingly cumbersome... read more...

add a comment |category: |Views: 4

tags: another

My CQRS Session at the Canary Wharf Dot Net User Group(www.heartysoft.com)

submitted by ashicashic(160) 11 months, 7 days ago

About a couple of weeks ago, I presented some very basic CQRS and Event Sourcing concepts to the Canary Wharf Dot Net User Group. It was an interesting experience to say the least. About everybody there had heard of CQRS... read more...

add a comment |category: |Views: 5

tags: another

Heartysoft.com | ASP.NET MVC Gotcha – String as Model(www.heartysoft.com)

submitted by ashicashic(160) 1 year, 1 month ago

Ashic looks at a gotcha when returning a view with a string model from a controller in ASP.NET MVC. read more...

add a comment |category: |Views: 5

tags: another

Heartysoft.com | Ninja Coding: Composition over Inheritance–Even whe(www.heartysoft.com)

submitted by ashicashic(160) 1 year, 2 months ago

Ashic shows a trick that can make overriding more flexible, specially when stubbing for tests. read more...

add a comment |category: |Views: 4

tags: another

Heartysoft.com | ViewBag can be good…honestly(www.heartysoft.com)

submitted by ashicashic(160) 1 year, 2 months ago

Ashic discusses why some data is best passed in via the ViewBag dynamic as opposed to strongly typed viewmodels. read more...

add a comment |category: |Views: 12

tags: another

Heartysoft.com | Introducing MSMSpec(www.heartysoft.com)

submitted by ashicashic(160) 1 year, 2 months ago

MSMSpec is a T4 based tool that can generate MSTest code to extend your MSpec (Machine.Specifications) tests so that they can run under anything that runs MSTest. This means all the Visual Studio testing features become available for your MSpec tests without the need for Resharper, TDD.NET or setting up an external tool. This can be useful in scenarios where you need to / require / are forced to use certain technologies.Features MSMSpec is a single T4 file that you can add ... read more...

add a comment |category: |Views: 13

tags: another

Ninja Coding: Code Comments and Self Explanatory Code(www.heartysoft.com)

submitted by ashicashic(160) 1 year, 5 months ago

Ashic starts off a new series of articles on software craftsmanship called "Ninja Coding". In this post, he looks at code comments and why he favours self explanatory code over comments, with examples. read more...

add a comment |category: |Views: 55

tags: another

Heartysoft.com | ASP.NET MVC 3 CTP1 View Improvements(www.heartysoft.com)

submitted by ashicashic(160) 1 year, 8 months ago

Ashic shows the various View improvements in ASP.NET MVC 3 CTP1 in a 45 minute screencast. Topics covered include Razor syntax, layouts, templating, global namespaces. He also takes a look at the new dynamic viewmodel and how it can be used to clean up View code. read more...

add a comment |category: |Views: 8

tags: another

Anonymous Types are Internal, C# 4.0 Dynamic Beware!(www.heartysoft.com)

submitted by ashicashic(160) 2 years ago

This article explains why C# 4.0's dynamic features don't seem to work when evaluating instances of anonymous types returned from a public method of a different assembly. read more...

add a comment |category: |Views: 10

tags: another

ASP.NET MVC - Unit Testing JsonResult Returning Anonymous Types(www.heartysoft.com)

submitted by ashicashic(160) 2 years ago

In this article, Ashic shows a few approaches to unit testing JsonResults that wrap anonymous types in ASP.NET MVC. read more...

add a comment |category: |Views: 27

tags: another

Encrypted Hidden Redux : Let's Get Salty(www.heartysoft.com)

submitted by ashicashic(160) 2 years, 2 months ago

In this article, Ashic Mahtab shows an elegant, reusable and unobtrusive way in which to persist sensitive data to the browser in hidden inputs and restoring them on postback without needing to change any code in controllers or actions. The approach is an improvement of his previous article and incorporates a per session salt during encryption. read more...

add a comment |category: |Views: 4

tags: another

MVC 2 RC 2 Templated Helper Bug and a Potential Solution(www.heartysoft.com)

submitted by ashicashic(160) 2 years, 2 months ago

In this Article, Ashic Mahtab looks at a potential bug in the MVC 2 RC 2 source code and proposes a solution. read more...

add a comment |category: |Views: 8

tags: another

Encrypted Hidden Inputs in ASP.NET MVC(www.heartysoft.com)

submitted by ashicashic(160) 2 years, 3 months ago

In this article, Ashic Mahtab shows an elegant, reusable and unobtrusive way in which to persist sensitive data to the browser in hidden inputs and restoring them on postback without needing to change any code in controllers or actions. read more...

add a comment |category: |Views: 35

tags: another

Exposing a WCF Service for Ajax and Silverlight(www.heartysoft.com)

submitted by ashicashic(160) 2 years, 3 months ago

In this article, Ashic Mahtab shows how to create a WCF service and expose it to Ajax and Silverlight. In doing so, he demonstrates some new features of ASP.NET Ajax and how it compares to jQuery in consuming WCF services. Lastly, he shows how simple configuration changes can enable binary encoding for a WCF service, which can increase data transfer efficiency in clients like Silverlight. read more...

add a comment |category: |Views: 11

tags: another

Ajax, Asp.net Ajax, jQuery – Misconceptions and Facts(heartysoft.com)

submitted by ashicashic(160) 2 years, 5 months ago

There seems to be some confusion among a lot of developers about Asp.net Ajax. This article will hopefully clear some doubts regarding what it is, what it isn’t and where jQuery comes in. read more...

add a comment |category: |Views: 19

tags: another

Woohoo…I’m an Asp.net MVP…and a few questions for you(heartysoft.com)

submitted by ashicashic(160) 2 years, 10 months ago

I was announced asp.net MVP today...and am asking for your suggestion as to what future articles / tutorials / videos should cover. read more...

add a comment |category: |Views: 6

tags: another