June 2011
1 post
Autumn Are you drawing again? (yes): Ch-Ch-Check... →
akitron:
I am doing a tumblr giveaway!
What I am giving away:
A poster print of your choice, two little prints and a little personal message/doodle also of your choice!
Here are your poster choices:
And the little prints:
How to play:
No need to follow me, I’m…
This is some awesome art, that anyone should check out ._.
November 2010
1 post
October 2010
1 post
My absence.
I have been neglecting to post here as I told myself I would; yet I lost the muse that led me to make this blog.
Chris Williams has a “State of the Union” address for the JS community from JSconf.eu that has re-invigorated me. He said “We are not JavaScripters, not pythonistas, not rubyists - we are programmers. We need to improve ourselves in as many programming languages as...
August 2010
1 post
1 tag
Typecasting, and making sure you get what you...
Typecasting is something pervalent in PHP and other languages,
it allows you to pressure a variable into the type you want.
//Typecasting 101::
// .toString()
406+''; //"406"
[100,42,"hello Dolly",86]+''; //"100,42,hello Dolly,86"
// parseInt(str, 10)
"406"*1; //406
"604"-0; //604
"1313"/1; //1313
// Math.floor**
~~1.59678; //1
~~6.954899; //6
~~-2.649875; //-2**
// Boolean()
!!0;...
July 2010
5 posts
1 tag
Short-Circuting, shortening your code
When I’m writing, I like to shorten things as much as I can. One thing I use are short-circuts.
A short circut relies on how && and || evaluate.
A && operation evaluates the left side, and only evaluates the right side if the left side returns “truthy”(anything but false,0,”,null,undefined, and NaN).
|| is the oppisite, if the left is false, the right is...
2 tags
Object.create, straight from ES5.
In ECMAscript version 5, ratified as the standard last December, a handfull of properties were standerdized onto the Object constructer.
I’m going to cover the Object.create method; This is not cross browser compatible yet, as only webkit and gecko support it(so just about everything but IE).
However, it is fully compatible with server side Javascript engines, such as Node JS.
...
1 tag
__GET and changing page content based on GET...
I actually began my programming career from PHP, and slowly migrated into finding Javascript so attractive. That said, I earned a particular attractment to $_GET[] and the ease it made for fetching and displaying specifically what’s wanted. If you’re in a situation where server-side programming is unavailable, such as an adobe air application, it would be advantagous to have a simple...
2 tags
advanced $().append()
I’m a huge jQuery fan, and most of my projects will use it, if theres any need for a library.
One of the great feature of Javascript I found while learning advanced techniques are self-executing functions combining that with jQuery chaining has some really cool effects, here’s an example I’ve used:
$.get('url', function(data){
//data is a JSON Array ['0','1','2']
var end =...
1 tag
Hello World Post
Starting this mini-blog. My name is Stephen “Rixius” Middleton, on Twitter as @Rixius I am an avid lover of ECMA-script and pretty much anything related. I will be documenting interesting things I find, specifically pertaining to Javascript(ECMA v5), jQuery, and Node-js.