« first day (305 days earlier)      last day (2459 days later) » 

14:08
It's rather satisfying when you can take something and punch it into a much smaller library
14:57
@Raynos nice
I've gotten into this habit of liking really small code recently :P
Did the same thing foree-light which is now down to 250bytes
15:14
nice
yeah, I love small code
I'm not sure if I like "lots of little libraries" as opposed to "one larger library"
I'll give my example
what if _ was released as several _ modules?
some things like indexOf, includes, etc are about checking the array for a thing. Some like debounce, throttle, delay, etc are about executing against an array
so it's possible to break _ into several submodules
does that really warrant such a breaking?
I don't think so, and I think you would agree. So there is some argument about collecting lots of little libraries into one larger one.
But the opposite end of the block, jQuery, could definitely use a bit more modularization
 
1 hour later…
16:24
5
Q: What's the maximum size of a Node.js Buffer

JoelAccording to the Node.js Buffer class documentation Buffers are allocated outside of the V8 heap. http://nodejs.org/docs/latest/api/buffers.html Raw data is stored in instances of the Buffer class. A Buffer is similar to an array of integers but corresponds to a raw memory allocation out...

how does one work around this exactly?
Write a new driver that extends all the rest?
16:36
implying I have no idea
hi
16:58
Please help.
I can not properly convert string to date. (node.js) This source code:

var dates = getDateTime();
//getDateTime() - return string - day + "/" + month + "/" + year + " " + hours + ":" + minutes + ":" + seconds;
// 23/1/2012 17:57:30

console.log(Date.parse(dates)); //return NaN
what does "getDateTime()" actually return?
23/1/2012 17:57:30
and it is a string?
comprising the date and time
oh, I think I see it
hold on
do yourself a favor, and process things like this:
yyyy-mm-dd hh:mm:ss
that's the ISO8601 in human readable format
17:02
Ok
day/month/year and month/day/year always fscks people's heads
year month day is always parsed the same way
least specific to most specific
2012 is a least specific identifier
2012 January is slightly more specific, etc
It works. :)
Thank you
well I knew it would
I wanted to show you that processing in that format would get you further in the long run
17:48
good morning
people
Good morning Denniss. And now, a magic trick. I will read your mind. I bet you ...
want to ask us a question
Am I right?
not really
hahahah
not at the moment actually
may be i will in the near future
So are you a Ruby guy considering a jump to a better language?
you mean javascript?
not jumping to
i like both
haha, yes javascript. That is the flavor of the room.
17:55
yea
though i have to say it is a very hard language to master
yes, yes it is. Hence we here are happy with it and like to think we do pretty well with it most days
I think if we could do one thing to make the language better it would be better event management, but that's usually a matter of taste, so probably not.
event management?
hows that a problem?
asynchronicity
lots of callbacks
the code starts to look junky, a lot of people break stuff because they don't understand it
i see
callback is awesome
hahaha
are you located in bay area jcole?
actually there was an article about new stuff coming to harmony regarding callbackz
shallow coroutines thats the stuff
18:07
who approves these stuff?
like who decides to implement new things like this in the js community?
I guess some technical committee tasked with standardization of the ECMAScript programming language
18:24
How can I reduce the timeout disconnect for XHR-polling? (socket.io)
try to check docs if it's possible
18:54
@yojimbo87 or learn to read the source?
> ECMAScript for XML.
shudder
docs should be much easier to read than sauce
it's not like you start to mess around with linux kernel code when you can just read man pages
@yojimbo87 sometimes it's undocumented
that's all I meant
yeah I understand
there's a lot about node and the frameworks that I goto the source to understand
after all you are a programmer so you should be able to read docs and also teh codez
although the ladder can have horrifying consequences
-_- I knew it should be latter
19:07
@yojimbo87 doesn't this require a preprocessor?
not sure, it should be based on generators
19:19
so task.js is only for ES6?
I guess so
to be honest, I don't think I like that syntax in task.js
I need to spend more time thinking of it
19:35
The perfect name for my XML->JSON work "Neuroleptic" thanks @eranhammer
I can't get used to twitter
that's fine
I mean I read the stuff posted there daily but I don't know what I would tweet myself personally
it's all in a person's desires and needs
I tweet all sorts of random crap
some people tweet very good stuff
19:38
that's why I use it
or they act professional most of the time
I like antirez style
creator of redis
20:03
@jcolebrand It doesn't warrant breaking _. It does warrant allowing you to build custom subsets of _. If I want a subset of underscore with just 5 of the methods I need, and I can easily build that, then epic win
@Raynos I just meant, we don't always want to opt for paring down obsessively
that's all
@denniss es-discuss list, read it.
@jcolebrand on the server with node there is no point. On the client I don't think we see enough aggresssive paring down because it's not easy enough to manage dependencies. Now that we have require and compilers this should change.
Maybe I'm just a kb whore.
@Raynos you are.
@Raynos wait, we can generate includes for clients based on actual needs?
actually, that sounds like a GREAT idea for a library, I would love to see that written
Yes, but that's "expensive"
I wonder if I would love to see that written well enough to go write one
20:05
The idea is define a feature test and a library
then load all the feature tests, find what you need, then asynchronously load all the libraries you actually need
The problem is there is a lag between loading the feature tests, running them and then loading the libraries
this is only worthwhile at scale where the communication overhead of loading all the libraries out ways the bootstrap time to find the features you want.
not if it's a preprocessor
But yes, we miss such a library, I was talking with david mark about writing one.
oooh, loading them from a server ....
you cant preprocess it.
that could ALSO work out well ...
20:07
Well you could be a dirty hack
@Raynos depending on the need you could
For example the DOM-shim.js could be a server hosted file that reads the userAgent string in the http request and then sends the subset of the DOM-shim that it knows that userAgent needs
it's doable
this requires a large database of correct information about what userAgent requires what features
@Raynos or a small database and a willingness to send everything when unsure
20:08
0
Q: Is server-side useragent detection bad?

RaynosClientside useragent detection is known to be bad, however is it also bad to react differently based on the incoming useragent in a HTTP request An example would be sniffing the types of browsers out of all img requests and sending smaller or larger images based on whether the incoming userAgent...

But then I have a question about whether implementing this is actually a known bad practice.
20:53
seems like good future for node
21:30
mother of god
"In one experimental attack conducted in the study, researchers were able to first disable the ICD to prevent it from delivering a life-saving shock and then direct the same device to deliver multiple shocks averaging 137.7 volts that would induce ventricular fibrillation in a patient."
@yojimbo87 :(
like a remote puppet

« first day (305 days earlier)      last day (2459 days later) »