Posts

Showing posts from September, 2010

Opera, Inevitably Unexpected

Update Opera fellas works at speed light, the problem described in this post has been patched already , great stuff and thanks! Just a quick one, about what I have discovered with Opera 10.62 when I have tested wru against this browser ... // host object var xhr = new XMLHttpRequest; // this is true alert("addEventListener" in xhr); // this is undefined // not even null // simply undefined!!! alert(xhr.addEventListener); The Problem 99% of libraries out there are assuming that key in object is one of the fastest and most reliable way to have features detection . Today, we know that this assumption is wrong . It's not about the reproducibility of the problem: var o = {}; o.key = o.key; "key" in o && o.key; It's about an ... Epic Fail (Already Fixed!) The engine " behind the scene " is broken . Whatever it happens there, we have a broken chain through pseudo inheritance that exposes publicly a method that does not exist , which brings u

WRU: My New Tiny Unit Test Library

The last and only developer able to let me fully appreciate the beauty of Test-Driven JavaScript Development has been @cjno , but regular " fights " with @mrgnrdrck and @sleistner have always helped me as well ;) This post is about my tiny wru library and general thoughts about JavaScript Unit Test Frameworks. WRU: Essentials Asynchronous Tests The wru library is a copy and paste matter, and it is possible to test it directly here . Why Wru Well, sometimes I write truly small projects during my free time, and a setup that takes " zero seconds " with still a visual result of my tests could be all I need. Also for my personal projects I rarely need a massive logic behind the UT framework ... simple things are often better, but I will explain why afterwards. Look, if you refresh, it changes! What I have learned from Christian while I was editing his book code is that order should not matter . In my opinion there are cases where order could matter, specially when

@jsconfeu after parties epilogue

too bad I wasn't planning to be in Berlin this week end for this conference, and too cool I have been able at least to meet such crowd of JS pirates after the conference! This post is about what I have found in JSConf.eu " after events ", and I do believe it should be shared. Great To Meet You All Heroes, colleagues, "just developers", it does not really matter! Everybody I have talked with was in the " friendly, shary, skilled, interested " mood, pretty cool for this JS community that is clearly growing up on daily basis in Europe as well ... Yeah, you simply have to accept that JavaScript is everywhere, client, server, whatsoever, and nobody will stop us! You can still think it's a toy language, not a real programming one (scripting is part of the therm tho) and bla bla bla ... this community of real pirates will always be there to answer your questions and show how freaking cool is this programming language ! Twitter Is The One! If you are foll

Promote JS!

Image
From JSConf.eu a nice initiative to better promote JSINJ thanks to MDC documentation. I would like to share my thoughts about the initiative: it's time for developers to understand that if they know a library (e.g. jQuery) it does not mean they know JavaScript. Too often I have talked with "JS Developers" unable to add a simple DOM listener in a W3/IE way. This initiative may eventually bring to all JS folks the beauty and simplicity of the language, which is not only inside this or that framework MDC has always been a reference to me but it must be said it does not include everything and sometimes it has Gecko specific pages that may disorient us if our target is cross browser MDC may contains errors as well and many examples are not optimized at all but for some reason took as "the only way to do that". In this case Array extras, as example, are not always the most logic or performances oriented as I have done different time there, it is possible to edit t

Filler

The 3rd LP is recorded and mixed, we are shopping it a bit at the moment but if no one bites were going to put it out ourselves again. Hopefully by early 2011 it will be out. We've been on a bit of a hiatus at the moment due to band members traveling during this month and October but we have shows lined up in November that we just haven't announced yet, here they are. November 1st 2010 @ 538 Johnson Ave Brooklyn, NY w/ DIET COKEHEADS, LONG PIGS November 12th 2010 @ Death By Audio Brooklyn, NY w/ NEON BLUD, THE MEN, POLLUTION, THE MARSH HENS The leftovers of the second press of "Immaculada" is still available in our webstore for now, it's going quick though. www.themen.bigcartel.com See you soon.

Fragment and Vertex Shaders: My Way To Load

I have finally received the fifth and amazing version of the OpenGL SuperBible book and I have already started digging into it, really well done for what I can tell. The book is mainly focused on " real OpenGL development ", something surely more suitable for tough C/C++ developers rather than Web Monkeys like me but since the book includes an OpenGL ES 2.0 related part, and since latter spec is basically what we can find in WebGL , it's always better start learning what's next knowing history and background of the used technology ... and here I am :-) Something Already Wrong I am not completely sure about " who started this techniques ", John Resig with his micro template inside script nodes with a type text/html may be the indirect responsible for a sort of growing " monster " we can see in almost every WebGL related example ... HTML Embedded Shaders, the Web 3.0 NO-GO Let me pass the therm, but 3D websites are not that far away from reality

The Rebecca Murphey's Challenge

What is the best/easiest way to understand if a {{ProgrammingLanguage}} developer is a {{ProgrammingLanguage}} dev and not simply a CV bloater ? A Technical Test Nothing simpler than this, and this is what @rmurphey has recently done with a nice JavaScript challenge published on GitHub. Unfortunately in some country (Italy as example) IT is still a matter of piece of paper for whatever {{ProgrammingLanguage}}, even those completely unrelated with the generic developer academic course/program, as often happens with JavaScript, the most used one and probably the less considered one at the same time ( ... hopefully it comes after VB ... ) Anyway, Rebecca comes from North Carolina and we all know in USA " they know something about IT ", don't we? :) Developers Rumors I have probably arrived too late, but apparently lots of developers more updated than me knew about this test ... and this is good. When developers are happy to be tested they demonstrate already to be brave

JavaScript Protected Properties

Imagine this simple piece of code: var obj = { _name: "protected", gimmeName: function () { return this._name; } }; obj.gimmeName(); // "protected" obj._name; // throws new Errror now, imagine I have the simplest solution ever, compatible with both ES5 and ES3 genric implementations ... now please keep reading to know a bit of background :) The JS Meaning Of Protected JS developers know that in JavaScript properties are always public and that it is possible to attach/detach properties in any moment to a generic object. Regardless this fact, many libraries consider protected, by naming convention, all those properties whose name start with "_" . You Are Doing It Wrong First of all I keep saying that is a common error trying to bring classical Object Oriented concepts into a completely different language as JavaScript is, but it does not matter ... we want protected stuff, right? Due dynamic nature, the common protected meaning is point

In the meantime...

Our brothers in NOMOS just released a killer one-sided 12" entitled "Notes from the Acheron" on Deranged Records. These are their strongest songs to date. The artwork and design by Vinny Smith alone is worth the purchase. Go here to buy it! - http://www.derangedrecords.com/catalog/product_info.php?products_id=464