JavaScript Libraries are Not Your Front-End Architecture

April 24, 2013

JavaScript Libraries are Not Your Front-End Architecture This is not going to be a post about architecture but more about MHO. Lately, I’m asked to evaluate the architecture of small to big front-end solutions. There is big buzz around front-end development and it drives a lot of companies to build client-side solutions without considering how to build them. One of the misunderstandings I’m facing a lot is calling the existence of JavaScript libraries in the solution a solution architecture. Sorry to say that but JavaScript libraries are not front-end architecture Every JavaScript library deals with...
no comments

Quick Tip – HTML5 classList Element Property

April 21, 2013

Quick Tip – HTML5 classList Element Property When we want to change the style or display of an HTML element most of the times we update it’s class name. The main way to change the class name is using the element’s className property. This raises a little problem. The className property is string based and can get a string value of one or more classes. When we want to toggle/update a class name and we have more than one class set to an element that means we will have to do string manipulation. String manipulations can be cumbersome...
tags: ,
no comments

Quick Tip – JavaScript Statement Count Do Count

April 20, 2013

Quick Tip – JavaScript Statement Count Do Count One of the things that we as developers don’t seem to mind about is the amount of statements that we write in our code. In JavaScript, the number of statements might affect the speed of the operations we want to perform. It is our responsibility to find statements that should be combined in order to decrease the execution time. This post include some examples of places to decrease the amount of statements. Variable Declarations One of the places that developers don’t care about is declaring variables. Lets look...
no comments

Quick Tip – Windows Store apps and StoreManifest

April 18, 2013

Quick Tip - Windows Store apps and StoreManifest Lately, a Windows Store app that I help to build was published to the Windows Store. Not a day passed and the customer contact us with a problem they are having. As it seems, the app exists in the Windows Store but it doesn’t appear in the store search results. After a quick investigation we learned that the customer license was OEM channel license and as such the app was deployed by default exclusively to the OEM channel and to public use. Solving The Problem In order...
no comments

SDP13 Windows Store app is Available

April 10, 2013

SDP13 Windows Store app is Available SELA Developer Practice (SDP) is Sela Group’s annual conference. The next scheduled conference will occur between May 5-9, 2013. I’ve written about the conference in a previous post. Yesterday, we launched a new companion Windows Store app for the conference. I had the pleasure of developing the app so if you find any bugs or have feature requests please don’t hesitate to contact me. App Features Browse through sessions and speakers Browse through conference tracks ...

Quick Tip – The JavaScript arguments Object

April 5, 2013

Quick Tip – The JavaScript arguments Object Yesterday I delivered a session about JavaScript and mentioned the arguments object. I was surprised that most of the attendees didn’t know the object so I decided to write this post. The arguments Object The arguments object is available inside every JavaScript function body. As its name implies, it stores the arguments that the function receives. For example, if a function is passed two arguments, you can use them by their name or using the following code: function foo(first,...
no comments

Quick Tip – The Order Of JavaScript Operations Do Count

April 2, 2013

Quick Tip – The Order Of JavaScript Operations Do Count Continuing the quick JavaScript performance tips (tip1 and tip2) I wrote, here is another thing to consider when writing your JavaScript code. The order of your operations can decrease your performance. Sometimes all you have to do is think about what you are doing and then you might avoid pitfalls like in the next scenario. The Scenario Lets look at an example of adding a new div element to the Document Object Model (DOM):   function addDiv(parentElement, text) { var element = document.createElement('div'); parentElement.appendChild(element); element.textContent...
no comments