Monthly Archives: October 2014

AngularJS : Gotchas and What to Look Out For

When dealing with Angular and you plan on expanding your code to production then it is very important you create your modules, controllers, services, factories and directives with the proper syntax. As with any piece of JavaScript you can write your code badly. Here are some best practices that should be put in place when writing your AngularJS code.
Continue reading

ADVANCED : JAVASCRIPT FUNCTIONS!

What are functions in JavaScript?

Functions are like any other item in JavaScript, functions are “OBJECTS”. Think about all the advanced things you can do with objects. Now apply that to functions. I have run across scripts written by all levels of UI developers and I rarely see anyone use a function to its full potential. Below I list some of the familiar and not so familiar features of a JavaScript function.

Continue reading

JavaScript : Helper Function of the Month! Remove Duplicates from Array

May have run into a problem where you need to remove duplicates from an array. It is usually a good idea not to mess with the base JavaScript objects but I like to add functionality that I believe should already be part of the the base JavaScript object. Today I am going to talk about JavaScript Arrays! How handy would it be to call myArray.removeDuplicates(). Some of you may think this method name is to long but I like to name methods with the functionality they perform. So lets get started with the code.
Continue reading

Ruby : Monkey Patching!

Fun Coding Word of the Week!! : Monkey Patching
Funny word comes with interesting results.
Ruby is always a fun language to develop. Monkey patching allows you to open a previous class and override or append new methods to said class.
Below is an example:

class MonkeyAround
  def feedMe
    puts "Im full"
  end

  def sleep
    puts "zzz"
  end
end

class MonkeyAround
  #override .. now when MonkeyAround instance is called with method "feedme" ... "Im hungry!" will display
  def feedMe
    puts "Im hungry!"
  end

  # New method attached to "MonkeyAround" class. 
  def play
    puts "Play Time!"
  end
end

george = MonkeyAround.new
george.feedMe # outputs "Im Hungry!"
george.play # outputs "Play Time!"
george.sleep # outputs "zzz"

Adv. JavaScript : Class Creation with Object.create

I will discuss how to create JavaScript objects that look and feel like classes. We can use the new operator but there is a better way. There is not a single right way of performing any task when it comes to development. JavaScript is a pretty loose and dynamic language so there are many ways to complete you task at hand.
Continue reading

THE REVOLUTION!

What is the next big thing? Well…. its not functionality. How about Design and User Interactions! Animations let the user know what is going on, how long it will take and so much more than just making something functional. The new age of UX is at hand. Animations library built using Angular Directives!! Even use these in you Google Polymer elements and more!
This would be a good talk 🙂