« first day (1495 days earlier)      last day (3460 days later) » 

7:00 PM
@rlemon github.com/remy/polyfills here is the link, i made a "classList.js" with this file code, and included it this way... but no effect on IE
 
I don't have old IE to test on sorry
but doing it the way I suggested should work fine
put your project online and drop a link so we can see your code
 
@rlemon was ie9...
that's strange...
 
and I have IE11, so I can't test it
 
think .classList ("real one") should work on ie9+
thats what's strange...
 
@Zirak ok
 
7:02 PM
Do you ever see a question that you could answer and then think "Nah. Too much effort."?
 
@RyanKinal all the damn time
@Julo0sS that isn't how you use classList
pelase read the spec
!!mdn classlist
 
@Julo0sS Be sure you're not accidentally overriding it if it exists
 
@Zirak he's calling the object like a function
 
is there a way i can post all form data in angularjs without having to specify the actual json ?
 
7:05 PM
@RyanKinal especially if you have to pry additional information out of OP
 
he's using elm.classList('foo bar');
not elm.classList.add('foo bar');
 
$http.post(url, formData).success()...
 
@rlemon nah, probably just a weird way of saying "I think the real` .classList` should work on ie9+"
 
!!tell joesaad google post all form data in angularjs without having to specify the actual json
 
7:05 PM
I just came across a question where I was like "Oh, just wrap it in a function, and call that whenever x happens." But then I was like "Ugh. I don't want to create example code and shit."
 
@Zirak no he's including a polyfill and wondering why it isn't working
 
So. Lazy. Today.
 
instead of $http.post(url, {name: "Joe", id : "1234"})
@CapricaSix i looked into all those three pages u just sent before asking the question here and none has worked..
 
@JoeSaad $element.serialize()
 
7:07 PM
lowest resolution screen with a purpose
 
$.post(url, form.serialize()).success()
 
@rlemon ok, i'll try this one now
 
read the api docs first
!!jQuery serialize
 
@rlemon but i'm not using jquery
 
7:08 PM
angular ships with stripped down jQuery
I'm sure .serialize made the cut
 
ok, so $element will refer to the form ?
@rlemon ok, i'll try this now
 
@rlemon @Zirak what i'm "really" looking for is a "cross-browser" .classList ... the "default" one works on ie9+, ff, & so on... but need my "tool" to work on any browser... that's why i'm looking in the "polyfill classList.js" (link i posted few messages ago)... but seems like it is not working, or maybe i do something wrong...
 
@rlemon One shouldn't be using jQuery AJAX in Angular
 
@Julo0sS I already told you
if you are using it like element.classList('foo bar') that is wrong
read HOW to use the classList object
 
i can use .className but playing with the string it returns becomes a mess
 
7:11 PM
show me the exact line of code you use please
and this is the last time I'm asking for your code before I give up
 
@rlemon .serialize() is not part of the methods in the jquery lite within angularjs
 
@rlemon this is what you say, i try to use it like "element.classList.add / remove"
 
damn
@Julo0sS :/ show me your code or I'm done helping
 
k
 
we're going in circles and it isn't helpful for you and it is a waste of time for me
 
7:14 PM
@rlemon this is weird, something like 4k lines... let me shorten this be4
3k ^^
 
Alright. I've added my submission for the JS Monthly Challenge. Add yours! It was actually fun, and only took me ~2 hours of effective work.
5
 
@BenjaminGruenbaum ahahaha you asshole. re: link at bottom of readme :P
 
@rlemon BenjaminGruenbaum is afk: off to a beer with Mosho and SecondRikudo
 
> @loktar00 Hi, I'm with NPR's All Things Considered. Do you have an email address I can reach you at?
^ wut
heh in response to
> I officially purchased trash on Ebay today.. I am now an owner of one of the Atari games from the Alamgordo Landfill #retrogaming #atari
pretty cool
@FlorianMargaine damnit, going to work on mine tonight
 
7:21 PM
@Loktar dooooooo it!
 
definitely will
I asked him to follow me so I can DM him my email
would rather not blast it all over twitter
 
@Loktar nice
 
@Loktar if you want a browserify boilerplate, use mine
@Loktar is it something famous?
sooo
learning knockout + making a simple "app" only took 2 hours of effective work
knockout is indeed simple
I have to say, I like the custom elements
the html is quite simple at the end
contrary to angular, the html remains html5 compliant
 
@FlorianMargaine yea
its a radio show, lots of people listen to it
 
oh cool :)
I don't like the communication between KO components though... using an event emitter is poor man's solution
and since it's KO that manages the bootstrap of them, I can't actually do what I want
or can I? ^
 
7:29 PM
yeah I love the templates with ko
I use browserify with it as well so everything is packaged up
 
@BenjaminGruenbaum @Retsam how would you do without the event emitter? I find this part ugly, but don't know how to do better
 
@FlorianMargaine BenjaminGruenbaum is afk: off to a beer with Mosho and SecondRikudo
 
(iirc they're the 2 KO people?)
@Loktar are you one too? :P
 
ish
I just started like 2 weeks ago
 
What's the difference between jquery proxy and .bind?
 
7:30 PM
@Loktar yeh, see my code :P
 
@FlorianMargaine I iz.
 
Im in there now
 
@FlorianMargaine Ah. So there's no reason to use jQuery when you're only supporting second-latest and latest?
 
@SomeKittens read up pls :-)
@SomeKittens no reason
 
7:31 PM
oh nice you're using browserify as well
yeah man I really love the bundling of everything
 
@Loktar yes it's why I'm showing you my makefile :P
 
@FlorianMargaine wahee
 
oh sorry I thought you linked me to your repo
 
@FlorianMargaine On your PR?
 
so I didnt even click on it :P
the link was cut off, just looking on my own
 
heh man your make is way better than my process
 
@Loktar nah I've only linked to actual files up till now :P
 
I have a big gulp file
all these dependencies
 
@Loktar lol
don't forget to run npm install :)
 
Wait, we don't even need this
 
also +1 for bluebird over JQ :/
 
@FlorianMargaine Will do after lunch
 
Im using jq like a nub
 
@Loktar did you know this? :P
 
lol nice
 
7:34 PM
but yeah I like that my app's search is basically this line:
findQuestions(form.search.value).map(createQuestion).done();
 
interesting: noone got this domain yet: http://google.chrome/
 
one thing I don't like is the observables
I like the idea, but not how they are handled
 
how much would that usually cost? It isn't even registered
 
like having to do variable('some val')
annoys me
 
yeah...
 
7:35 PM
also for arrays
you have to use all of their methods
 
don't see why they wouldn't go through getters/setters :/
 
but yeah idk knockout seems ok for really small trival stuff
 
but for a big app unless you are really organized I can see it being a mess easily
 
after this small app, I think it's ok for bigger apps
it doesn't force much on you... I like that
 
7:36 PM
really? I suck at organization
 
for big apps I guess Im more on the side of frameworks :/
 
well how do you like organization of my app? :P
each custom element is a folder
 
@Loktar Yep!
 
and basically you just use custom elements
 
7:37 PM
yeah thats what I have as well for my current app
 
so ez to organize
 
but they are all under app/components
and in app I have app.js that registers them
its a work project otherwise id link you but its not on GH
the components are nice imo, but those are really new
 
  var clickHandler = $.proxy(function (event) {
    event.stopPropagation();
  }, $scope);
 
like they just came out with 3.2 I guess
 
7:38 PM
ah
yeah with 3.x I guess
 
Am I missing something, or is that really unnecessary?
 
@SomeKittens it is
var clickHandler = function(e) { e.stopPropagation(); }; is enough
who cares about this...
@Loktar they make the html nice though
I like the fact that they work in IE6 too
 
yeah that is really cool
one issue Im having is my file size is growing, unminned its like 1.2mb
so I might try out webpack
 
you know polymer is awesome et al... but you know we won't use it before 5 years
@Loktar ?
why?
 
then I can get the best of both worlds commonjs with async loading
so a lower initial filesize
and yeah I agree about web components, going to take forever before they are common place :(
dude this event-emitter is awesome wth
 
7:41 PM
meh I'm not a fan
 
I needed something like this yesterday! Totally using it
 
lol
yeah, that's the beauty of browserify, you can do npm install x and you can use it in your code :D
 
yeah love it
I guess webpack is pretty much the same way but allows for async loading which is nice
I would only use it if my file size its > 3mb probably
 
reading, never heard of it before
how big is your file when minified?
 
@FlorianMargaine That's certainly nice but results in annoyingly massive files
 
7:43 PM
eh like 600k
but its a really small app currently so it worries me
its because it has all the markup in it as well
 
@SomeKittens if you go through uglifyjs it removes all functions you don't use
 
@FlorianMargaine How can it tell?
 
it parses the js
if a function isn't called anywhere it removes it
 
@Loktar Ours is 196,095
 
e.g. it's part of public api but not called anywhere
 
7:45 PM
@FlorianMargaine window[prompt('gimme a function')]()
 
@SomeKittens what?
 
@Loktar Our Browserify bundle.js
 
like... 196 mb
 
@FlorianMargaine Hmm, I haven't messed with KO components yet (it's a couple month old feature which I haven't tried to mix into my current project), so I don't know a ton about them.
 
or am I just reading that totally wrong lol
 
7:46 PM
@SomeKittens well it doesn't touch stuff you put on window...
 
I have to be.
 
But they're backed by ViewModels, right, so you could do component communication at the ViewModel level, I think.
 
@Loktar he surely meant bytes
@Retsam yeah but each component has its own viewmodel
 
well 196kb is small as heck then
 
@Loktar No, lines of code.
 
7:47 PM
oooh ok
damn
 
@SomeKittens You were born with no function, you'll die with no function, and only your compiler will mourn
 
@SomeKittens except for window, almost nothing is in global scope with browserify code anyway
going through a global event emitter is ugly ._.
 
@monners My compiler hates me
 
@BenjaminGruenbaum fix it ^*2
 
@FlorianMargaine BenjaminGruenbaum is afk: off to a beer with Mosho and SecondRikudo
 
7:49 PM
@FlorianMargaine It looks like you're using a single viewModel object for all your components of the same type?
 
@Retsam ?
No... Each component has its viewmodel
 
ko.components.register('se-search', {
    viewModel: require('./se-search/seSearch'),
    template: fs.readFileSync(__dirname + '/se-search/seSearch.html', 'utf8')
});
Isn't require('./se-search/seSearch') just a static object?
 
It's a function
Called every time a new component is spawned, by KO
 
Oh, d'uh, I misread the seSearch source code.
 
7:51 PM
lots of great features being added :)
 
@Loktar I saw! I'm excited
I'm glad they took out offline
 
LOL WOW!
@SomeKittens eh I wanted it just for the fact that one day the servers will be gone
but they've kind of eluded to the fact if that happens they will release server snapshots so meh
 
@Loktar next time you're playing Elite can you stream it and ping me ??
 
@Loktar VR is better
 
@rlemon itll look terrible to you
 
7:53 PM
I wanna watch you or kittens play it, not some annoying random
 
youll see the DK vs
 
ahh yea that's right you have the rift output crap
 
so youd see like 2 screens with tons of chromatic aberration
@rlemon yeah :/ there are some awesome vids though
 
I'm also not very good at it
 
everyone talks about it, that and Destiny
I'm wondering if I should get one of the two, or both
 
7:54 PM
Destiny is meh
 
@FlorianMargaine Anyways, my pattern for communication between ViewModels is that parents know about their children, and I use constructor arguments to communicate back up the chain. (With parents sometimes having to manage interactions between children)
 
Lots of people I know who played it are bored
they dont play it any more, its a bit sad :/
 
> We have also ensured that the solo play mode has a minimal network requirement(about 10 kbps).
 
@Retsam yeah but it's components there...
 
NICE
 
7:55 PM
@SomeKittens yeah that is really cool
 
10 kbps is completely reasonable.
 
ko will spawn them, so I have no control over the constructor
I'll check out ko devs on irc
 
@rlemon Destiny looked meh
 
@FlorianMargaine Yeah; I think you could use component arguments instead of constructor arguments
 
^ yeah kind of glad it didn't come to PC
otherwise I would have blown $60 on it
 
7:55 PM
lol
 
@Retsam component arguments?
 
We need to find a multiplayer game 4 of us can play - and we all enjoy
 
@FlorianMargaine Params, rather.
 
@Retsam link?
 
<my-component params="foo: bar"></my-component>
I'm getting that from here
 
7:56 PM
E:D is fantastic, but you're talking to the room's #1 Star Wars nerd
 
yeah... but you can't pass another component's viewmodel to it
 
^
I played Elite as a kid so Im nostalgic
I love the Elite games, they are the first open world experiences I had
@FlorianMargaine could put a component in a component
 
@FlorianMargaine You could pass a callback function to it.
 
then use $parent or whatever
 
:/ there is a break in my heaphone cord casing -- I have a bad habit of putting it in my mouth (don't actually chew on it) but now it shocks me
 
7:58 PM
@Retsam example?
 
stupid headphones
 
@Loktar yeah...
I guess I'm having something wrong actually
 
all my pages are components
and then I have actual components as well within the pages
 
components are supposed to be completely self-sustained
 
idk works ok, but my use case is so small so meh
@FlorianMargaine the main guy did avideo where he used components as pages
 
7:58 PM
yeah makes sense
 
he made a yoeman generator like that too
so thats why I went with that
 
42 secs ago, by Florian Margaine
components are supposed to be completely self-sustained
that's why I guess you can't do things with them...
but I want composition...
 
@JanDvorak Thank you for your help.
 

« first day (1495 days earlier)      last day (3460 days later) »