Oskar Gewalli's blog articles

0
comment
on 1/16/2016 4:06 AM
This approach to programming is not only useful for algorithms, it’s also a recurring architectural theme. The current version is called microservices. In unix you have the small command line tools that does one thing well. On a smaller scale it’s about splitting your code inte several files and then folders. When you have identified a need for a library you might create a nuget, gem, maven or npm package (see modulecount).
>> Read the full article
.
0
comment
on 12/11/2015 8:06 AM
How do you inherit from a “class” in javascript Especially if you have a class that is a mix of constructor function and prototype methods and properties. "use strict"; function getSeq(start){ return function next(){ return start++; }; } var getId = getSeq(1); function Mammal(name){ var self = this; var id = getId(); // private variable this.getId = function(){ return id; }; Object.defineProperty(this, 'name', { // we want name to be mutable get:function (){ r[...]
>> Read the full article
.
0
comment
on 12/11/2015 8:06 AM
How do you inherit from a “class” in JavaScript Especially if you have a class that is a mix of constructor function and prototype methods and properties. "use strict"; function getSeq(start){ return function next(){ return start++; }; } var getId = getSeq(1); function Mammal(name){ var self = this; var id = getId(); // private variable this.getId = function(){ return id; }; Object.defineProperty(this, 'name', { // we want name to be mutable get:function (){ retu[...]
>> Read the full article
.
0
comment
on 10/30/2015 4:41 AM
webforms and 3000 lines of codebehind I’ve noticed that the common failures while using asp.net webforms is related to people getting confused about the asp.net page and control life cycle. Since there are so many different events to keep in mind, it’s easy to place code in the wrong place and get something that sort of works (but does not work in all cases). If you are stressed, you might add a small if statement to fix this problem in the special case, increasing complexity in the code behind file. This[...]
>> Read the full article
.
0
comment
on 10/30/2015 4:41 AM
webforms and 3000 lines of codebehind I’ve noticed that the common failures while using asp.net webforms is related to people getting confused about the asp.net page and control life cycle. Since there are so many different events to keep in mind, it’s easy to place code in the wrong place and get something that sort of works (but does not work in all cases). If you are stressed, you might add a small if statement to fix this problem in the special case, increasing complexity in the code behind file. This[...]
>> 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