These are chat archives for canjs/canjs

16th
Apr 2016
Justin Meyer
@justinbmeyer
Apr 16 2016 01:47
this will not require jQuery, and hopefully work from node
Thomas Sieverding
@Bajix
Apr 16 2016 01:49
@justinbmeyer Why do you use camel casing w/ file system over kebab?
Justin Meyer
@justinbmeyer
Apr 16 2016 01:49
b/c methods are typically named the same thing
I never do deep_extend = require("...")
Thomas Sieverding
@Bajix
Apr 16 2016 01:51
Sure kebab / camel converstion is easy. People will get it if is-array -> isArray, for instance
That’s already what happens w/ component attributes
The Node community overwhelmingly uses lowercase folder/file/module naming by convention
var deepExtend = require(‘deep-extend’);
Justin Meyer
@justinbmeyer
Apr 16 2016 01:53
I'll accept a pull request if you want to change it
Thomas Sieverding
@Bajix
Apr 16 2016 01:53
Deal
Justin Meyer
@justinbmeyer
Apr 16 2016 01:53
needs to be in like Monday
Thomas Sieverding
@Bajix
Apr 16 2016 01:53
Which repos
Justin Meyer
@justinbmeyer
Apr 16 2016 01:53
?
oh, just can-util
Thomas Sieverding
@Bajix
Apr 16 2016 01:54
I’ll convert all the things
Justin Meyer
@justinbmeyer
Apr 16 2016 01:54
everything is going to be built from this
Thomas Sieverding
@Bajix
Apr 16 2016 01:54
Ah
Justin Meyer
@justinbmeyer
Apr 16 2016 01:54
but in a very aggressive way come Monday
canjs/canjs#2026
Thomas Sieverding
@Bajix
Apr 16 2016 01:55
can-util works in NodeJS?
Justin Meyer
@justinbmeyer
Apr 16 2016 01:55
canjs/can-util#4
not yet
I started working on this 4 hrs ago
Thomas Sieverding
@Bajix
Apr 16 2016 01:55
Beast
Justin Meyer
@justinbmeyer
Apr 16 2016 01:55
but its intended to
Thomas Sieverding
@Bajix
Apr 16 2016 01:55
Nice
and
Thomas Sieverding
@Bajix
Apr 16 2016 01:56
It would be amazing if a large subset of Can could be NodeJS compatible
are what I'm most proud of
today
Thomas Sieverding
@Bajix
Apr 16 2016 01:56
isomorphic models would be so sexy
Justin Meyer
@justinbmeyer
Apr 16 2016 01:57
it makes inserted and removed work via mutation observers
but if they don't exist, we can still make things work
Thomas Sieverding
@Bajix
Apr 16 2016 01:57
Slick
So while I’m OCDing...
The tabs
I can’t get over the tabs ;(
Justin Meyer
@justinbmeyer
Apr 16 2016 01:57
Bitovi uses tabs, not spaces
that's not going to change
Thomas Sieverding
@Bajix
Apr 16 2016 01:58
What’s the rationale there?
Justin Meyer
@justinbmeyer
Apr 16 2016 01:58
I've probably saved a second or two of life
and time matters most to me
Thomas Sieverding
@Bajix
Apr 16 2016 01:59
Yea, but all IDE’s make that moot
Justin Meyer
@justinbmeyer
Apr 16 2016 01:59
?
I don't know what you mean
when steal loads this code into a browser
Thomas Sieverding
@Bajix
Apr 16 2016 01:59
Well. For instance, I use sublime, and it’s setup so that tabs === 2 spaces
So whenever I do tab or delete, indentation is automatic
Justin Meyer
@justinbmeyer
Apr 16 2016 01:59
I think you're missing my point
how big would a file be with spaces vs tabs
a file with spaces is bigger
Thomas Sieverding
@Bajix
Apr 16 2016 02:00
Not really; That’s what build optimization is for
Justin Meyer
@justinbmeyer
Apr 16 2016 02:00
it is in all of our workflows
everytime I refresh, I reload every file
a build has to process more characters
100s of characters over 100s of files over 100 builds in a day
adds up to at least a second.
time I'll never get back
but I don't want to get into this
we're sticking with tabs
Thomas Sieverding
@Bajix
Apr 16 2016 02:02
Welp
My gripe is the time lost whenever code is unreadable in github because it uses tabs
Line 35 === unreadable
Justin Meyer
@justinbmeyer
Apr 16 2016 02:03
this is the ultimate in known pointless arguments
it's cliche
Thomas Sieverding
@Bajix
Apr 16 2016 02:07
I wouldn’t say it’s pointless; shifting code off the page on github is a real readability issue. Everywhere else it doesn’t matter because IDE’s accommodate
Outside of github readability, it’s completely and utterly moot
Justin Meyer
@justinbmeyer
Apr 16 2016 02:10
sure, not absolutely pointless, but not worth arguing about compared to me making CanJS 3.0 work right now. And not worth doing because of the amount of code that would have to change, amount of people who would need to change IDE settings, etc
all history would be thrown away
Thomas Sieverding
@Bajix
Apr 16 2016 02:11
Sure, but this is the only time CanJS will ever get to make the transition. 3.0 is the rubicon
Justin Meyer
@justinbmeyer
Apr 16 2016 02:11
not worth it
Thomas Sieverding
@Bajix
Apr 16 2016 02:13
Fine. So kebab module naming can happen if I PR?
Justin Meyer
@justinbmeyer
Apr 16 2016 02:17
yeah
Thomas Sieverding
@Bajix
Apr 16 2016 02:17
Sweet
What do you think of Mongoose style type & value declarations?
IE: type: String instead of type: ‘string'
Justin Meyer
@justinbmeyer
Apr 16 2016 02:18
I don't know what that looks like
where? in can-define?
Thomas Sieverding
@Bajix
Apr 16 2016 02:18
type: String, Number, Date
Yes
Justin Meyer
@justinbmeyer
Apr 16 2016 02:19
that would probably experience issues with iframes
but I don't honestly care about that right now
I really want to be focused on 3.0
canjs/can-util#6
the other reason why I like isBrowserWindow module names
b/c we are likely going to document by moduleId now
well, I guess it's fine
b/c only can-util will have multi-exports
Thomas Sieverding
@Bajix
Apr 16 2016 02:20
Just saying, syntactically can-define and mongoose are so similar that it would be super easy to bridge the two
Justin Meyer
@justinbmeyer
Apr 16 2016 02:20
so nm
create an issue
Thomas Sieverding
@Bajix
Apr 16 2016 02:20
Which would be oh so tasty
Cool
Thomas Sieverding
@Bajix
Apr 16 2016 02:26
Also just out of curiousity, why do js/childNodes/childNodes.js instead of js/child-nodes/index.js?
Justin Meyer
@justinbmeyer
Apr 16 2016 02:26
b/c I hate having a million index.js open in my ide
Thomas Sieverding
@Bajix
Apr 16 2016 02:26
I’ve notice that no can projects utilize index.js conventions
Justin Meyer
@justinbmeyer
Apr 16 2016 02:26
yeah, b/c it's a dumb convention
Thomas Sieverding
@Bajix
Apr 16 2016 02:28
What about child-nodes.js, child-nodes/test.js
Justin Meyer
@justinbmeyer
Apr 16 2016 02:29
modlets my friend
it's probably one of the most important things to me as a developer
Thomas Sieverding
@Bajix
Apr 16 2016 02:29
I do love me some modlets
Justin Meyer
@justinbmeyer
Apr 16 2016 02:29
that's how we make everything
except for now, we are starting to make everything as packages
Thomas Sieverding
@Bajix
Apr 16 2016 02:30
Yea, which is actually really good to do
It would be pretty amazing if there were more middle ground between all of these different frameworks
can map for all
Hopefully can being more package oriented would increase the liklihood of smaller pieces of it being utilized more broadly
The single greatest thing that could happen for CanJS IMO is for can-map to become ubiquitous
Guido Smeets
@gsmeets
Apr 16 2016 07:00
@Bajix @justinbmeyer github respects your .editorconfig tab settings. https://github.com/isaacs/github/issues/170#issuecomment-150489692
And tabs > spaces ofc, it doesn't force the same spacing on everyone
Gregg Roemhildt
@roemhildtg
Apr 16 2016 21:56
Hi all, I just noticed that document.body.appendChild(frag) doesn't trigger the inserted event on components in the fragment. Is this a bug or by design?