pabloPXL
Re:Contra – Asynchronous flow control with a functional taste to it
on Friday July 25, 2014 @12:24PM (#8086035)
I wrote another async replacement for browsers, 4.1k minified. https://github.com/aynik/be
Re:A New Look for Facebook
on Thursday January 03, 2013 @08:34PM (#5005795)
Right column, top.
Re:Google Trends: Ruby on Rails v. Node.js
on Tuesday January 01, 2013 @04:51PM (#4994152)
Re:
on Monday November 26, 2012 @02:33AM (#4831031)
Try the standard library: http://golang.org/pkg/
Re:Try out Space, a web-based, collaborative code editor
on Wednesday July 18, 2012 @06:11PM (#4263270)
This is really cool!
Cannot wait for a release with private spaces!
Anonymizer web service with Node.js
Re:A keyboard case that makes your iPad look a lot like the MacBook Air.
on Saturday April 28, 2012 @10:07AM (#3902970)
Apple suing in 3, 2, 1...
Re:"Lighten up"
on Thursday March 22, 2012 @07:20PM (#3742563)
I think both behaviors provide continuation to the problem. On one side, the people who is actually sexist, or racist, or just believe in stereotypes. In the another, the people who also believes that the rest of the people are biased towards their sex, skin color or condition. Ignoring information that is not interesting or useful for us is the best tool we have to not be hurt by other people so easily, get stronger and prepared to survive in an unfair society and preserve freedom of speech. Nobody wants to be negatively discriminated, but does somebody think positive discrimination is the solution? I believe is the same social problem after all.
Re:Methods & Properties with Javascript OOP
on Saturday March 17, 2012 @02:01PM (#3717649)
That's because there is no OOP in javascript as in other languages like java or python, javascript only implements natively prototypal inheritance and lexical scope. This very important concept is always misunderstood because of the syntactic sugar like 'new' and 'this'.
Re:Methods & Properties with Javascript OOP
on Saturday March 17, 2012 @12:17PM (#3717385)
Well, although simpler and less error prone, the 'self' method is quite less optimal than the prototype way. A quick test reveals that the first technique consumes much more memory (100000 new instances pushed into an array): http://imgur.com/YVkny
self: var a = []; function b(){ var c = {}; c.d = function(){}; return c }; for (var e = 0, f = 100000; e < f; e++) a.push(new b)
prototype: var a = []; function b(){ return this }; b.prototype.c = function(){}; for (var d = 0, e = 100000; d < e; d++) a.push(new b)
Re:IRC + Threads make better communications - Pizzatimes.org
on Wednesday February 08, 2012 @01:38PM (#3567803)
Never heard of anonymous image boards :?
Re:Show HN: a bash based data store written in python
on Friday February 03, 2012 @04:01PM (#3548980)
Thanks! but I can only see it as a bad hack, as it's just grep doing almost all the dirty work :) btw I got the idea from http://zachholman.com and his boom-db...
Re:Show HN: a bash based data store written in python
on Friday February 03, 2012 @09:40AM (#3547209)
hey I did something similar but in pure bash (plus grep and cat) :) https://github.com/pabloPXL/kissdb
Re:Show HN: SocialFolders, "Dropbox for social"
on Friday January 27, 2012 @03:22PM (#3519970)
Thanks! I didn't know this project and looks pretty awesome :)
Re:The WHY of WAT - understanding why 'JavaScript is Crazy'
on Friday January 27, 2012 @01:44PM (#3519491)
Well, given that javascript was designed in somehow less time and with less resources than superior languages it has obviously some inconsistences and everybody agrees on that. On the other side if you know the language really well you can avoid the most of the problem it has. I like your point of 'keep it real' but you need to accept that the language is far from 100% correct.
Re:The WHY of WAT - understanding why 'JavaScript is Crazy'
on Friday January 27, 2012 @01:29PM (#3519421)
Well I think that was 'designed' basically to cast any type to it's string representation. Also wanted to point that I used type coercion when is supposed to be used, and never got a bug of that nature in my code, but yes, you must get the coercion rules right from the beginning, and yes, javascript code could live perfectly with this 'feature'.
Re:The WHY of WAT - understanding why 'JavaScript is Crazy'
on Friday January 27, 2012 @01:20PM (#3519380)
Because in strongly typed languages the compiler is able to hunt down the most of the bugs for you in milliseconds. That's why haskell programmers suggest that if a haskell program compiles gracefully, you can assume is mostly correct and bug free.
Re:Lisp in 32 lines of Ruby
on Wednesday January 25, 2012 @06:45PM (#3512276)
It looks really interesting!
Re:Lisp in 32 lines of Ruby
on Wednesday January 25, 2012 @06:37PM (#3512250)
Nice, but wasn't chicken scheme the flagship of scheme-to-c compilers? http://www.call-cc.org/
Re:Lisp in 32 lines of Ruby
on Wednesday January 25, 2012 @06:28PM (#3512218)
I translated it to js -> https://gist.github.com/1679611
Earned 1 line, and packed it with a cheap implementation of zip :3
Re:JavaScript Needs Blocks
on Friday January 13, 2012 @01:04PM (#3461608)
I think you didn't make a fair translation from ruby to javascript there,
here goes my attempt:
function map_unless_nested(arr){
return arr.filter(function(it){ if (it instanceof Array) return it }).length?
function(){ return [] } : function(fn){ return arr.map(fn) };
}
console.log(map_unless_nested([1,2,3])(function(n){ return n + 1 }));
console.log(map_unless_nested([1,2,[1,2],3])(function(n){ return n + 1 }));
edit: also a translation for the last example function map_first_innermost(arr){
return function(fn){
return arr.map(function(v){
if (v instanceof Array)
return map_first_innermost(v)(fn);
return fn(v);
});
};
}
console.log(map_first_innermost([1,2,[1,2],3])(function(n){ return n + 1 }));
Re:DO BANKERS inevitably go to hell?
on Sunday December 25, 2011 @12:26PM (#3391263)
No, mainly because there is no such a place.
Jils, expressive javascript.
Re:Jils, a simple lisp implementation for javascript
on Wednesday December 07, 2011 @07:23AM (#3323460)
to install it (globally):
> npm install -g jils
Jils, a simple lisp implementation for javascript
Pseudo anonymous functions in cfscript
Re:Kiss - boom-style datastore in bash (see http://zachholman.com/boom/)
on Thursday October 27, 2011 @04:02AM (#3162057)
Created own repo, https://github.com/pabloPXL/kissdb
Re:Steve Jobs: A Genius, Yes; A Role Model for the Rest of Us, No Way
on Wednesday October 26, 2011 @07:25AM (#3158084)
^ This is what I mean with my sentence, thanks :)
Re:Steve Jobs: A Genius, Yes; A Role Model for the Rest of Us, No Way
on Tuesday October 25, 2011 @06:42PM (#3156218)
I know perfectly where it comes from, I have access to google too, and the quotes remarked perfectly that the quote was not yours. I was replying to your intention, not to the literal text.
EDIT: this reply actually looks more personal than I wanted it to be, and given your clarification, have my apologies...