Posts

Showing posts from May, 2011

My Last Comments On JSLint

Preface I have been working with many teams and I have used JSLint on daily basis. This post is not about the tool itself, neither against Douglas work, this post is about developers often too religious about this tool . Finally, if you follow this blog you have already read tons of other reasons to think rather than " suffer silently this tool ". It's my last post about it and I hope " it will not hurt your feelings ". Seriously guys, it's not that I think JSLint is all bad, but I cannot stop thinking it's simply an effect . The more I hear or read about developers being so religious about this tool, the more I feel to blame it . I am pretty sure Douglas will hate me for this post but I really hope he will read it 'till the end. Douglas Talk At Falsy Values Both me and big Doug were there , me for a workshop and Mr D. for his speech. " Surprisingly " Mr Crockford talked about JSLint (again?!) and why it's so good. While many hints fo...

SUNDAY AT SILENT BARN

Image

JavaScript Builder from Falsy Values

Update: uglify-js as third option Thanks to @kitgoncharov JSBuilder now includes the option to run uglify-js through Rhino ... still cross platform, a builder for any taste. as promised during my workshop, I have created a Google Code Project with the builder used to demonstrate most advanced and common techniques to make a library, application, snippet, small and fast. What Is JSBuilder It's a truly simple Python module based over a certain hierarchy able to combine multiple files and produce a minified version of the application. A similar approach has been used since ages with jQuery, and I am pretty sure there are tons of builders out there able to do similar task. I personally created ages ago a similar project compatible with all windows platform . However, that project was missing the possibility to put everything together, preserve some piece of code if necessary, replace some string runtime, and produce if necessary different outputs through the simplified module approac...

setTimeout and setInterval with extra arguments ... once again!

Funny discussion today on twitter about " why on Earth IE still does not support extra arguments with setTimeout and setInterval " ... oh, well ... The execScript Behaviour Somebody in IE team thinks that the rest of the world should avoid extra arguments because of a bloody edge case as the third argument in IE is: // ... seriously ... setTimeout("Msgbox('WTF')", 0, "VBScript"); What IE Users Could Do Well, rather than create a closure every bloody time we would like to reuse a function with different arguments, something posible 10 years ago via ActionScript 1, every web developer (and not only) misses the opportunity to avoid closures using a de-facto standard for some unknown reason not part yet of ECMAScript specifications. For those interested I will show an example later, right now let's think about a solution compatible with VBScript for those mental developers, as I have been, brave enough to still use this language for some purpose. ...

size maniacs or just twitterable examples ?

maybe both, but I like the idea! Many times I have added something like #tweetcode at the end of a tweet created with the single goal to be small enough for ... well, a tweet! @jedschmidt bought a spanish domain called 140byt.es based over github forks in order to provide all sort of tweets that may solve a specific problem in an efficient way: it kinda work on copy and paste! Kinda ... because rules may not truly work stand alone and snippets are suggested without a "tooltip" example, at least in the main page. What Can We Do In 140 Bytes ? tweet a solution for a simple task provide an idea about how to solve a task solve a task in a truly efficient way Yeah, some snippet is absolutely everything we may need to solve a problem. The most simple example is the hex2rgb and rgb2hex, a problem that could be solved easily via bitwise operators and a tiny bit of math. How Can 140 Bytes Be Enough ? Using few tricks suggested in this page we can realize it is possible to shrink t...

Pre-Orders!

Image
Pre-Order the "Leave Home" LP @ http://sacredbonesrecords.com/releases/sbr057/ Limited edition version includes hand silk-screened wrap-around sleeve and wax seal. Hand numbered in an edition of 100.

LEFT OVER T - SHIRTS

Image
SHIRTS ARE SOLD OUT hey we've got a dozen or so shirts left from our recent Canadian weekend... if anyone wants one, they are $12ppd pics are below ---- shirts are printed on fruit of the loom please e-mail markperro@gmail.com for availability sizes left are: TIE DYE s - 4 L - 1 XL - 1 WHITE s- 1 m- 2 l - 2 xl - 1

TONIGHT

Image

DREAM POLICE TOMORROW 5/3

TUESDAY MAY 3 Death By Audio 8 pm $7 Dream Police Teardrops Easter Vomit Household We go on first --- don't be late there will be many synths on this tape