Embedding Javascript in .NET
We have a C++/C# based application where I work, and we currently use VBScript as a scripting language. Needless to say, we want to replace it, and we’ve decided that Javascript is a good candidate. When it comes to executing Javascript in .NET, there are quite a few options. We have narrowed it down to [...]
Working with mobile web applications
So for the past year, I’ve been working almost exclusively on a mobile web application that is designed to run on Android and iPhone. It works quite well on Windows Phone (Mango) as well, but none of our customers have WP devices (yet). The application is a LOB app with offline capabilitites, so it’s mostly [...]
Extending built in objects in a safer way in Javascript
In Javascript, its very easy to extend built in objects like Object, Array and String. You might find yourself wanting string methods that aren’t built into the String object, and it’s much nicer to read “one short sentence”.toUpperFirst(), than toUpperFirst(“one short sentence”). The problem is that by extending the builtin objects, you are adding global [...]
Dependency injection and IoC in Javascript
There has been some talk lately about DI and IoC in Javascript, and other dynamic languages such as Ruby and Python. A popular opinion seems to be that these concepts are obsolete in dynamic languages, mainly because you can alter an object at runtime. This certainly makes testing easier, but testability isn’t the main goal [...]