Skip to main content

Posts

Unpractical use cases - Iterators

** Unpractical use cases - Iterators What is an iterator? Array Iterator Objects An Array Iterator is an object, that represents a specific iteration over some specific Array instance object. There is not a named constructor for Array Iterator objects. Instead, Array iterator objects are created by calling certain methods of Array instance objects. ref : cma-262 Instead of trying to understand it, lets just look at a example Here we have an object that contains an array, to use the iterator on the array you can simply do something like To use the iterator to move to the next item in the array you call .next() console.log(theArrayIterator.next()) // x 5 { value: 'all', done: false } { value: 'the', done: false } { value: 'array', done: false } { value: 'values', done: false } { value: undefined, done: true } As you can see, each time you call next, it prints the value of the next item in the array, and once it reaches the end of t...
Recent posts

Zuma Counts as much as he can count.

The list of people , objects and even situations that would be better suited for running South Africa at this point than Jacob Zuma. Starting with the obvious, anyone that can read any number written down on paper. Let’s get it out of the way, you, me, your friend from Knysna, that aunt you only see every second year on some family gathering, and just about everyone else in South Africa, this obviously always excludes that what even is he Julius Malema and ffs dude Nicholis Louw. A dead AA battery. Those blue ice things all our parents have in the back of the freezer. A pencil marking on a very unimportant paper. The waiting time between breaths. The advertisements on youtube if you still don’t use adblock. The letters T and L whenever they meet somewhere in a gently read sentence.. That joke about the guy that walks into a bar and says ouch, well not the guy in the joke specifically , but more the joke itself, I believe that in essence it would rule SA in a more lite...

Cordova, db tips and where to start

Cordova is used to build hybrid applications, it uses a set of build tools to create native language output(apache ant, xcode, java etc.).  Code once, deploy to many . There are so many articles out there on both sides of the argument, should I build native or hybrid. Going native  will have the drawback of having to almost completely rewrite for each OS, the obvious result will be longer dev time. Hybrid  will have loads more configuration and tweaking but can cut dev time by a lot. For an absolute beginner I would suggest heading over to  telerik  and checking out there online hybrid builder. It's really easy to use, has a ton of great working examples and comes with a 30 day evaluation with full access to all of their services. They also support and promote the new  nativescript language  which I think is something to consider, still young but looks amazing. Plus their VisualStudio App builder plugin is really something special, and ...

Application development environment setup

Setup for application development right click and save images for bigger version Installing Java JAVA JDK Download In my experience I have found that starting your enviroment setup with java is best. In the system variables I made a new variable called it JAVA_HOME , and I set the value to: C:\Program Files\Java\jdk1.7.0_79 . After that, I edited PATH , which is also in the system variables and I added : ;%JAVA_HOME%\bin . In command prompt enter javac -version, if you see a return message javac 1.7.0_79 or something similar you can continue, I cant tell you how important it is to get this right, just know that things will go wrong at unexpected times. Installing Android SDK ANDROID SDK download List item In the system variables I made a new variable called it ANDROID_HOME , and I set the value to: C:\Program Files (x86)\Android\android-sdk . After that, I edited path , which is also in the system variables and I added : %ANDROID_HOME/tools% %ANDROID_HOM...

Review : The new Pushtape Installation profile for Drupal 7 - Yay or nay?

AuthorRank: Google Have you heard of Pushtape?  Don't worry me neither.  But after this blog post we will definitely be sure if its a Drupal yay or nay.  The reason I chose this Installation profile as the theme for my post is simple, to make sites for bands in your community is an easy way to get your foot in the web development scene if you are just starting out.  All band sites basically works in the same way which means that you can just duplicate your site structure every time. OK so here we go. Pushtape is a new Installation Profile for Drupal 7 that focuses on musicians, it comes supplied with a discography framework, you can very easily post new events like shows, there is a custom photo gallery where you can upload multiple photos as a set and of course a nice looking news type blog for all those quick updates. The installation was really easy, clean, very well customized and quick. I use WebMatr...