- Settings:
Page
Normal
Plain layout without fancy styles
Font
Normal
Large fonts
Very large fonts
Colour
Normal
Restful colour scheme
Light text on a dark background

Note: user account creation on this site has been disabled.

Programming, speculative fiction, science, technology
Powered by Drupal, an open source content management system
Scope
Include Children
If you select a term with children (sub-terms), do you want those child terms automatically included in the search? This requires that "Items containing" be "any."
Categories

Everything in the Events vocabulary

"Events" is used for: Convention Post, Page, Story.

People mentioned in the articles

"People" is used for: Page, Convention Post, Story.

Themes mentioned in the article

"Themes" is used for: Page, Convention Post, Story.
Skip to top of page

Javascript

warning: Creating default object from empty value in /home/draganos/sf.geekitude.com/modules/taxonomy/taxonomy.pages.inc on line 34.

Controller against controller, or dangers of copy-pasted code

One downside of Angular, or any / most kinds of Javascript frameworks is that a lot of times when you make an error, the error message you'll get won't point you to a place in your code. No, the error will be entirely in the Angular stack, and it will be your own business how to tease from it the actual thing you did wrong.

For example, when writing frontend code using Angular.js, you sometimes get an error: " <controller name> is not a function: got undefined". Hmm. Well, this controller certainly exists. For the sake of the argument, let's give it the very boring name MyCtrl. You do the sanity check: is it being included in the HTML page? Yes, it is. What could it be, then? Does the controller have a syntax error in it? You run it through JSLint. No, the syntax seems to be OK.