Category Archives: Software Development

JsRender looping, nested objects, and conditional statements.

So far, I’ve posted a couple of very basic introductory posts on JsRender. In this post, I’ll get a little bit more into the meat of the templating language and show looping, conditional statements, and some other bits and pieces. … Continue reading

Posted in Software Development | Tagged , , | Leave a comment

JsRender and arrays

Previously, I showed how to very quickly get up and running with JsRender witha very simple hello world demonstation. In this post I’ll be extending things a little further showing you how simple arrays of data are handled. For this … Continue reading

Posted in Software Development | Tagged , , | Leave a comment

JsRender …. starter for 10

I was going to look at jQuery Templates recently, but then I discovered they have been discontinued. Which is a real pity as I saw a demonstration at a conference about a year ago and they looked rather promising. However, … Continue reading

Posted in Software Development | Tagged , , | 1 Comment

Private members in coffeescript and the query string

Because coffeescript is really just a thin veneer over javaScript there are, in my opinion, a few lost opportunities. For example, when you create a class all members (properties or functions) are public. However, there are work arounds. I created … Continue reading

Posted in Software Development | Tagged , , | 2 Comments

Classes, static properties, and inheritance in Coffeescript

I fear the documentation for coffeescript does not really explain the way that static and instance members work terribly well. So, I’ve put together this rough guide to classes in coffeescript For this set of examples, I’m going to use … Continue reading

Posted in Software Development | Tagged , | Leave a comment

Loading coffeescript unit tests from separate files

In my previous post I showed how to create unit tests for coffeescript. I also included a link to Eli Thompson’s coffeescript unit testing runner which allows you to easily gather all the .coffee files and the unit tests together … Continue reading

Posted in Software Development | Tagged , , , , | Leave a comment

Unit testing with Coffeescript

I’ve recently started  looking at Coffeescript. And to get going with that I’m jumping directly in with unit-testing. I figured that it would be an interesting way to learn the language. Since coffeescript compiles to javascript, you can use a javascript unit … Continue reading

Posted in Software Development | Tagged , , , | 2 Comments

PHP for ASP.NET Developers (part 5 – Object lifetime)

Following from my last post on the basics of object orientation in PHP, what about object lifetimes. How long does an object hang around for? In PHP you have a __destruct method on a class. This is like the finaliser … Continue reading

Posted in Software Development | Tagged , , | 1 Comment

PHP for ASP.NET developers (part 4 – Object Orientation)

Continuing on my series of getting to know PHP for ASP.NET developers, I’m going to concentrate on the object oriented parts of the language. In order to creating a class is very similar to C#, for example: class Animal { … Continue reading

Posted in Software Development | Tagged , | 1 Comment

PHP for ASP.NET developers (part 3)

Now that the basics have been covered in the previous two posts, I’ll continue with some thing a bit more useful… writing some logic. Conditional Statements In PHP the conditional operators are pretty much the same as in C#, however … Continue reading

Posted in Software Development | Tagged | Leave a comment