jordanwallwork.co.uk
Inline.js – Inline Testing with Javascript « Jordan Wallwork
http://jordanwallwork.co.uk/2013/11/inline-js-inline-testing-with-javascript
Web / Software Developer. Skip to primary content. Skip to secondary content. Inline.js – Inline Testing with Javascript. November 10, 2013. I just read an article by Sergi Mansilla, Extending JavaScript with inline unit tests. Where he implements a pretty neat inline testing syntax using sweet.js. Which allows writing code like this:. Function square(n) { return n * n; } where { square(2) is 4 square(3) is 5 }. But it’s pretty obvious how more could be added). 8211; To use it with functions written like.
jordanwallwork.co.uk
Jordan Wallwork « Web / Software Developer
http://jordanwallwork.co.uk/page/3
Web / Software Developer. Skip to primary content. Skip to secondary content. March 1, 2012. Installing Mongo is really simple:. Create a mongo file (not necessary but tidy) [mkdir /mongo]. Pull mongo [curl http:/ downloads.mongodb.org/linux/mongodb-linux-x86 64-{ VERSION} .tgz mongo.tgz]. Extract [tar xzf mongo.tgz]. Create data file [mkdir -p /data/db/]. Install dev tools (if necessary) [yum groupinstall "Developer Tools"]. Restart apache [apachectl graceful]. In the config.php. February 26, 2012.
jordanwallwork.co.uk
June « 2013 « Jordan Wallwork
http://jordanwallwork.co.uk/2013/06
Web / Software Developer. Skip to primary content. Skip to secondary content. Monthly Archives: June 2013. June 6, 2013. It’s been a long time since I’ve written anything on this blog, which I really regret. I’ve got a lot going on in my life at the moment: I’ve got a 9 month year old daughter who takes up a. Of time, am in the process of planning to build a new home, and am currently working on a new project ( QuickAnalyses. With some guys I met at the Launch 48. Inspired by this poll. On Hacker News, t...
jordanwallwork.co.uk
paper.animate « Jordan Wallwork
http://jordanwallwork.co.uk/2013/01/paper-animate
Web / Software Developer. Skip to primary content. Skip to secondary content. January 23, 2013. In my last post, looking at “typed” function overloading. Don’t worry, I’m not a hypocrite; I said at the beginning of the post that it was something I disagreed with in Javascript! Anyway, check it out over on GitHub. I’d love to hear any opinions or feedback. Paperanimate.js has been designed to integrate easily with existing paper.js code. Simply prefix a transform command with. This returns a proxy object,.
jordanwallwork.co.uk
Jordan Wallwork « Web / Software Developer
http://jordanwallwork.co.uk/page/2
Web / Software Developer. Skip to primary content. Skip to secondary content. Is there really a problem with native javascript APIs? October 19, 2012. I read an article the other day by Nicholas C. Zakas titled ‘The Problem with Native Javascript APIs’, and found it thoroughly depressing. So why does he have this attitude? Unfounded, and he does present one example of a native API which had different bugs in the implementation Firefox and WebKit, which we know from history is just one of many browser bugs.
jordanwallwork.co.uk
Articles « Jordan Wallwork
http://jordanwallwork.co.uk/category/articles
Web / Software Developer. Skip to primary content. Skip to secondary content. Inline.js – Inline Testing with Javascript. November 10, 2013. I just read an article by Sergi Mansilla, Extending JavaScript with inline unit tests. Where he implements a pretty neat inline testing syntax using sweet.js. Which allows writing code like this:. Function square(n) { return n * n; } where { square(2) is 4 square(3) is 5 }. But it’s pretty obvious how more could be added). 8211; To use it with functions written like.
jordanwallwork.co.uk
HtmlSanitizer « Jordan Wallwork
http://jordanwallwork.co.uk/2012/11/htmlsanitizer
Web / Software Developer. Skip to primary content. Skip to secondary content. November 12, 2012. I recently needed to do this, and a quick google turned up a project, patapage. Which does just that. Although it is a java solution, there is a C# port. Written by Beyers Cronje; unfortunately it’s some seriously ugly. Code, being more-or-less a straight rip of the java version, just fixed to be valid c# code. One thought on “ HtmlSanitizer. May 6, 2014 at 3:45 pm. My blog … steambath generator.
jordanwallwork.co.uk
Generic Extension Methods « Jordan Wallwork
http://jordanwallwork.co.uk/2012/12/generic-extension-methods
Web / Software Developer. Skip to primary content. Skip to secondary content. December 12, 2012. Consider that you have two objects, Parent and Child. A child has a parent, and a parent maintains an IEnumerable of children. Class Parent { public IEnumerable Children { get; set; } } class Child { public Parent Parent { get; set; } }. Given a list of child ids, you need to populate the parent with a list of Child instances, and also set the parent of each child. As you can see, although this code has been ...
jordanwallwork.co.uk
Faking “typed” function overloading in JavaScript « Jordan Wallwork
http://jordanwallwork.co.uk/2013/01/faking-typed-function-overloading-in-javascript
Web / Software Developer. Skip to primary content. Skip to secondary content. Faking “typed” function overloading in JavaScript. January 7, 2013. Before I start, I want to go on the record to say that I do not. Agree with using function overloads in javascript. Javascript doesn’t really support function overloading, and overloaded functions (at least in my experience) seem to lead to unclear code; the better solution is to pass in an object and determine behaviour from that. That said, the other day I.
jordanwallwork.co.uk
February « 2013 « Jordan Wallwork
http://jordanwallwork.co.uk/2013/02
Web / Software Developer. Skip to primary content. Skip to secondary content. Monthly Archives: February 2013. Intercepting Properties with Getters/Setters. February 5, 2013. Function () { var originalFunction = Object.getPrototypeOf(someObject).someFunction; Object.getPrototypeOf(someObject).someFunction = function () { / intercept code here originalFunction.call(this); } })();. Likewise, interception is possible if a property has a getter or a setter:. Rather than being able to set it directly using re...