Login or Sign Up to become a member!
LessThanDot Site Logo

LessThanDot

A Technical Community for IT Professionals

Less Than Dot is a community of passionate IT professionals and enthusiasts dedicated to sharing technical knowledge, experience, and assistance. Inside you will find reference materials, interesting technical discussions, and expert tips and commentary. Once you register for an account you will have immediate access to the forums and all past articles and commentaries.

Browsing "Web Developer"

0

Easier Boundary Testing: Keep Parse/Validation/Format rules out of your HTML View

In a typical single-page application, type and validation logic is entered in the HTML view and we rely on our binding framework or a validation library to layer this behavior onto the form. There are trade-offs to this approach, which are mostly negative as you get into larger, longer-lived applications. When we embed validation rules […]

Read More...
0

Continuous Javascript Test Execution with WallabyJS

After working with NCrunch building and running tests in the background for the last several years, it feels like something is broken when I have to wait for test results or push a button to start running them. JavaScript runners just didn’t feel like they provided the same level of development feedback, whether they were […]

Read More...
0

Stop Manually Updating Your Jasmine SpecRunner

I’ve used a number of test frameworks and runners over the years, but my first club out of the bag is still running a SpecRunner file in the browser, with all of the dev tools and console output I’m used to from normal debugging sessions. The painful bit has always been manually keeping the SpecRunner […]

Read More...
0

Self-Hosted Web – Updating assets without restarting the debugger

When you work with an ASP.Net project through Visual Studio, you can edit static files like CSS and JS files and see them immediately in your browser. Switch to a console application and self-hosted option, such as a self-hosted WebAPI or NancyFX site, and you’ll find that editing Content files will require restarting the debugger […]

Read More...
4

ASP.Net – Single-sign on against Office365 with OAuth2

Recently I was experimenting with Office 365 as a single-sign on source for an existing ASP.Net application. Unfortunately, most of the documentation I found focused on the use cases of having Visual Studio automatically add it as part of a new project, multiple versions of a very similar looking OWIN sample using built-in (black box) […]

Read More...
4

ASP.Net – Ensure your Actions aren’t missing Authorization with Unit Tests

Have you ever found yourself working on an ASP.net Action and noticed there isn’t a single Authorization attribute in sight? Or gone to edit an endpoint in WebAPI, only to realize you took a coffee break at exactly the wrong time and forgot to come back and add the authorization attribute…a month ago? Or the […]

Read More...
0

MVVM – The User as an Asynchronous API (w/ Knockout)

Early into development of a fairly large modular SPA, we found ourselves needing to ask the user a series of complex questions during a complex chain of business logic. We built a quick little ViewModel and template to display to the user, added some assignable callbacks that it would generate buttons for, and called it […]

Read More...
0

MVVM Validation with KnockoutJS – Don’t put it in the View/HTML

When it comes to input validation for rich websites and Single Page Applications, a lot of the patterns out there rely on markup in the HTML/View. This works OK for smaller applications, but is terrible for larger applications that expect to be maintained and extended over time. In the past couple years I have used […]

Read More...
0

Automatic Promise Resolution for AngularJS Unit Testing

We’ve been using Angular for client-side apps for a couple years now, and it has mostly been great. The data binding works well, and the baked in dependency injection makes it very easy for our team of C# developers to write unit tests. There have been some painful moments, but they’ve mostly been growing pains […]

Read More...
1

Duplicating LessThanDot on a Vagrant VM

Setting up a development environment for LessThanDot is kind of tricky, where “tricky” is defined somewhere between “I have PHP on my Windows box” and “at least I’m running it in a version of Apache”. Recently I realized I had misplaced my local development environment somewhere and needed a way to make some changes. Have […]

Read More...
Next Page »