This is the fourth part in a five-part series that covers common AngularJS mistakes. To recap, the top five mistakes I see people make are: Heavy reliance on $scope (not using controller as) Abusing $watch Overusing $broadcast and $emit Hacking the DOM Failing to Test In the previous posts I’ve covered some nuances around controllers and how they communicate ...
Read More »Home » JavaScript »
Boilerplate Template for Node.js and Backbone Using Gulp and Browserify
I’ve been working with Node.js and Backbone for a little over a year now and recently started a new side project in my spare time. Every time I start a project from the ground up, I have to sit down and think about things I probably haven’t in a while. For example, what’s the best way to organize my code, ...
Read More »JavaScript Tutorial – Part 5: Statements
While theoretically we can do anything with functions and simple data structures, but for some strange reasons programmers (unlike mathematicians) like their code to be readable and understandable by other human beings. So programming languages (and of course, JavaScript) have some build in statements to help us create more readable and easier to understand programs. We have the usual suspects: ...
Read More »The Top 5 Mistakes AngularJS Developers Make Part 3: Overusing broadcast and emit
This is the third part in a five-part series that covers common AngularJS mistakes. To recap, the top five mistakes I see people make are: Heavy reliance on $scope (not using controller as) Abusing $watch Overusing $broadcast and $emit Hacking the DOM Failing to Test When I posted the first article, one comment suggested that using controller as ...
Read More »The Top 5 Mistakes AngularJS Developers Make Part 2: Abusing watch
This is the second part in a five-part series that covers common AngularJS mistakes. To recap, the top five mistakes I see people make are: Heavy reliance on $scope (not using controller as) Abusing $watch Overusing $broadcast and $emit Hacking the DOM Failing to Test When I posted the first article, one comment suggested that using controller as ...
Read More »The Top 5 Mistakes AngularJS Developers Make Part 1: Relying on scope
Although AngularJS is an extraordinarily popular framework, there is plenty of discussion and controversy over whether or not it truly adds value to projects. Having witnessed its value firsthand as I described in my recent post, Angular from a Different Angle, I believe it can be a powerful tool when used correctly. Voltaire said, “With great power comes great responsibility.” ...
Read More »jQuery mouseover example
Javascript is essentially a very good tool for tracking events on a web page and changing some view options after user actions. We can track mouse clicks, mouse movements, key’s ups and downs and a lot of other user activity. All this stuff can be done using jQuery and in this article we’ll consider its approach how to perform actions ...
Read More »Ionic Framework – Mobile Hybrid Application Development
When I was developing our wedding application back in February, I was also trying to learn the ropes in AngularJS. It didn’t make sense for me to go with JQuery Mobile since, well I am learning angularjs. So I think through my options and ask, “Jquery mobile is essentially built in a javascript framework, is there an angularjs alternative?”. Luckily ...
Read More »JavaScript Tutorial – Part 4: Object Creation and Prototype Chains
The term “Object-Oriented programming (OOP)” has been greatly overused, and JavaScript is not one of the exceptions. For someone who comes from many years programming in Java, learning JavaScript made me realize that the correct name for the paradigm used by programming languages like Java, C++, and C# (to name a few) is not Object-Oriented but Class-Oriented programming. Because in ...
Read More »