DrWatson

Stories submitted by DrWatson

jQuery Custom Element and Global Events(devlicio.us)

submitted by DrWatsonDrWatson(690) 2 years, 3 months ago

Custom events make it easier to keep complex pages under control. They are a pillar for loosely-coupled UI scripts. jQuery has a very powerful event framework, including support for custom events. It may escape you that there are also Global custom events that can be handled on any element's context. read more...

add a comment |category: |Views: 26

tags: another

Code coverage reports with NCover and MSBuild(devlicio.us)

submitted by DrWatsonDrWatson(690) 2 years, 3 months ago

The key is to separate the code coverage profiling (which is done by NCover while it runs all the unit tests with NUnit) from the rendering of the reports. That way we only run the code coverage once; and that can sometimes take a good chunk of time to produce the coverage data. Rendering the reports is much quicker since the NCover reporting engine can feed off the coverage data as many times as we need, very quickly. Once we have the coverage data we can choose which report types we want to create, the thresholds for sufficient coverage (or to fail the build), which assemblies/types/methods we want to include/exclude from each report and where to save each of them. read more...

add a comment |category: |Views: 11

tags: another

Test-Driving a new feature for JavaScript(devlicio.us)

submitted by DrWatsonDrWatson(690) 2 years, 6 months ago

But, instead of going through the normal trial and error approach, I chose to flex my TDD muscle and try to create the Array.indexOf method using a test-first routine. For this exercise, I chose QUnit as the unit testing framework. read more...

add a comment |category: |Views: 4

tags: another

It's Generic, not Multipurpose(devlicio.us)

submitted by DrWatsonDrWatson(690) 2 years, 8 months ago

Sometimes I think API designers are just trying too hard to use generics. I mean, if there's a way to get the data they need by way of a type identifier, no matter how unnatural that be, a generic function will be born. Paraphrasing what someone already said: When a new language feature is your hammer, everything starts to look like your thumb. read more...

add a comment |category: |Views: 14

tags: another

ASP.NET MVC with jQuery SuperLoad(devlicio.us)

submitted by DrWatsonDrWatson(690) 2 years, 9 months ago

The challenge on the server side is to come up with a sustainable method of reusing existing actions and combine them in a single action result, formatted to SuperLoad's liking and returned to the browser. To address that issue the sample comes with an implementation of a composite action result class specifically built for the response format we are trying to create. read more...

add a comment |category: |Views: 39

tags: another

jQuery SuperLoad(devlicio.us)

submitted by DrWatsonDrWatson(690) 2 years, 9 months ago

jQuery SuperLoad came out of the necessity to update more than one element in a page without needing to do everything with JavaScript (and you know I'm not the one that avoids JavaScript). All of the page elements I needed to update with Ajax came from page segments (partials, user controls, etc) that I had available on my server side. It seemed appropriate to go back to the server to get updated versions of that same HTML. But I didn't want to issue a separate $.ajax() or $(elem).load for each one of them. read more...

add a comment |category: |Views: 27

tags: another

Top 10 signs you've fallen into circular refactoring(devlicio.us)

submitted by DrWatsonDrWatson(690) 2 years, 9 months ago

How do you tell when you're being a victim of this variation of the premature optimization monster? Well, here's a start. read more...

add a comment |category: |Views: 339

tags: another

Git, SSH, PuTTY, GitHub, Unfuddle, the kitchen sink(devlicio.us)

submitted by DrWatsonDrWatson(690) 3 years ago

After reading a good number of the guides for getting Git/ GitHub/ Unfuddle working correctly in Windows, I finally got it sorted out. I had to use a bunch of things I had not used before so I realized it's probably a good idea to share my findings, hoping to help someone else (and maybe myself again) in the future. read more...

add a comment |category: |Views: 304

tags: another

5 things you'd be willing to chop off System.Byte for(devlicio.us)

submitted by DrWatsonDrWatson(690) 3 years, 1 month ago

What is your list of 5 things you'd be willing to chop off System.Byte for? read more...

add a comment |category: |Views: 13

tags: another

Juicy, a simple webserver(devlicio.us)

submitted by DrWatsonDrWatson(690) 3 years, 1 month ago

This tiny web server is intended to be used in self-contained tests or applications where it's unreasonable to require an IIS virtual directory to be configured just to open some content in a browser using HTTP. It was build with the goal of creating JavaScript unit tests that won't need any server configuration to execute in a CI environment. read more...

add a comment |category: |Views: 25

tags: another

JavaScript, inner functions and private members(devlicio.us)

submitted by DrWatsonDrWatson(690) 3 years, 3 months ago

If you must have private members in your JavaScript objects, you can. Inner functions and closures will come to our rescue. read more...

add a comment |category: |Views: 7

tags: another

Understand closures with JavaScript(devlicio.us)

submitted by DrWatsonDrWatson(690) 3 years, 3 months ago

Closures are a programming concept that can be a bit intimidating but it shouldn't be this way. Hopefully this short article can clarify how that works and how to avoid problems when using it. read more...

add a comment |category: |Views: 307

tags: another

JavaScript, 5 wyas to call a function(devlicio.us)

submitted by DrWatsonDrWatson(690) 3 years, 3 months ago

Get a hold of what can seem confusing when invoking functions in JavaScript. read more...

1 comment |category: |Views: 267

tags: another

Generated by a tool, not for human consumption(devlicio.us)

submitted by DrWatsonDrWatson(690) 3 years, 3 months ago

Use wisdom when choosing your tools. Not all of them are made equal. What drove me over the edge to get this post out was seeing a tooltip like "Gets the name of the nick". read more...

add a comment |category: |Views: 11

tags: another

Video of Cruise presentation(devlicio.us)

submitted by DrWatsonDrWatson(690) 3 years, 9 months ago

Demonstration of Cruise, Continuous Integration product from ThoughtWorks, given at the Chicago ALT.NET meeting. read more...

add a comment |category: |Views: 10

tags: another

Dime Casts .Net - Short howto videos for .Net developers(dimecasts.net)

submitted by DrWatsonDrWatson(690) 4 years ago

Check out this new cool site with screencasts around 10 minutes in length. Great resource for .Net developers. read more...

add a comment |category: |Views: 315

tags: another