Telerik blogs

Latest

  • Web

    BDD. Optimizing the stories.

    As I said in my previous post I preferred using tools (StoryQ and NetSpec) to using descriptive method names (those with long names containing lots of underscores). Well, I lied. At first I was convinced that the tools would be good enough for me but as it usually occurs the truth lies somewhere in between. Here's what I have in mind. Let's take as an example the famous sample showing how you could apply BDD when you want to develop the logic for transferring money from a savings account to a cash account. If you use StoryQ you could end up having something like this: [TestMethod]      public void TransferToCashAccount()      {   ...
    January 20, 2009
  • Web

    BDD. It's not about the tools but... just in case.

    The agile manifesto says "Individuals and interactions over processes and tools" and I completely agree, the processes and tools won't turn your project into a success story, the individuals and interactions will. But what if you're already satisfied with the individuals and interactions and you're starting to look for how you could make your life easier. And here comes the role of the tools - to bring as less overhead as possible and at the same time help you meet your goals easier. That's what I was looking for when I decided to give BDD a try. First I had to decide which of the following...
    January 19, 2009
  • Web ASP.NET AJAX

    ASP.NET Ajax Controls in ASP.NET MVC - Announcing the sample application

    I am glad to announce that yesterday we released a public sample application built with RadControls for ASP.NET Ajax, ASP.NET MVC and Telerik OpenAccess. You can check the online demo, or download the source code. This application is a basic online forum which uses RadControls in ASP.NET and demonstrates integration with ASP.NET MVC. Here are a few screens from the forum: The "home" page (uses RadTreeView, RadGrid and RadMenu) The "new thread" page (shows RadEditor)
    January 16, 2009
  • Web

    Encode and Decode strings using JavaScript

    In order for a string to be read from all computers sometimes it is useful to encode and decode it. This can be easily achieved using the JavaScript built-in escape() and unescape() methods. Both the escape() and the unescape() methods have the same argument – the string which will be escaped or unescaped. The escape() method returns a string value (in Unicode format) that represents the encoded contents of the function argument. All spaces, punctuation, accented characters, and any other non-ASCII characters are replaced with %xx encoding, where xx is equivalent to the hexadecimal number representing the character. For example, a space is returned as "%20". Additionally, having...
    January 15, 2009
  • Web

    BDD. At first I was afraid, I was petrified.

    Yes, seriously, my first reaction to a post in which I noticed BDD-kinda-tests was something like "whoa, interesting naming convention for test method names, and all these underscores...". After that I came upon several other blog posts containing BDD tests and I still didn't get the idea. Then I read Dan North's post introducing the idea of Behavior Driven Development and I finally started catching the point. But catching the point at that time was not like "well, it's worth it and I'll try it" but rather like "ok, it's a TDD variation with some funky new lingo, so... ok". I could abandon...
    January 14, 2009