Oskar Gewalli's blog articles

0
comment
on 3/2/2014 3:24 AM
In order to setup ci for open source targeting c# projects I looked into using travis. There is a solution on stackoverflow. The post got me started. Turns out that there are some problems with using nuget packages for mono using xbuild (Path.Combine in the msbuild file NuGet.targets is not supported yet). I patched NuGet.targets to accept parameters (thus I can supply the correct paths using albacore). I’ve added the variable PackagesConfig to all the csproj files in the solutions: <PackagesConfig>$[...]
>> Read the full article
.
0
comment
on 2/21/2014 12:21 PM
Explicit use of computed? What does a computed expression like this: this.isBusy = ko.computed(function() { return self._isBusy() || self._queryIsBusy(); }); have to do with <div data-bind="visible: _isBusy() || _queryIsBusy()" ></div> Internally knockout creates a computed out of an expression in a bindinghandler. Ko does not parse the expression in the html above to register the variables _isBusy or _queryIsBusy. Consequenses What does this mean for your code? If you have something below bu[...]
>> Read the full article
.
0
comment
on 2/21/2014 12:21 PM
Explicit use of computed? What does a computed expression like this: this.isBusy = ko.computed(function() { return self._isBusy() || self._queryIsBusy(); }); have to do with <div data-bind="visible: _isBusy() || _queryIsBusy()" ></div> Internally knockout creates a computed out of an expression in a bindinghandler. Ko does not parse the expression in the html above to register the variables _isBusy or _queryIsBusy. Consequenses What does this mean for your code? If you have something below [...]
>> Read the full article
.
0
comment
on 2/6/2014 9:59 AM
For many projects I’ve been using the pattern: ns.CtorFunction = function(){ var self = this; this.doStuff = function(){ // do stuff and use self in order to get the object variables } } Turns out that this pattern is good for small sites with jQuery (that makes use of this in other ways). For larger code bases where you have lots of code this construction sometimes makes it difficult for the garbage collector. If you have a large single page app, then this might be an issue. What [...]
>> Read the full article
.
0
comment
on 2/6/2014 9:59 AM
For many projects I’ve been using the pattern: ns.CtorFunction = function(){ var self = this; this.doStuff = function(){ // do stuff and use self in order to get the object variables } } Turns out that this pattern is good for small sites with jQuery (that makes use of this in other ways). For larger code bases where you have lots of code this construction sometimes makes it difficult for the garbage collector. If you have a large single page app, then this might be an issue. What o[...]
>> Read the full article
.
IntelliFactory Offices Copyright (c) 2011-2012 IntelliFactory. All rights reserved.
Home | Products | Consulting | Trainings | Blogs | Jobs | Contact Us | Terms of Use | Privacy Policy | Cookie Policy
Built with WebSharper