« first day (2313 days earlier)      last day (2631 days later) » 

2:00 PM
Probably, but it's a regex exercise haha
Thought it was just a general question
 
I did [^p]+$ :3
 
@FlyingGambit I used -?\d+[.,\d]*(e\d*)?$
I prefer @KendallFrey's solution though
 
@KendallFrey Lol thats cheating
 
Not according to the rules
 
@OliverSalzburg I got confused * with .
 
2:08 PM
@BenFortune I tried window.requestAnimationFrame();
same
also setTimeout()
...
 
Lol, Netflix has the it crowd listed under British documentary
 
guys I need to improve the performance of this matrix effect I created jsfiddle.net/wf87c5jk/2
I don't understand how I can fix the performance
I created it some time ago..
it depends from computer performance, infact if I limit max lines, it does not slow down
setInterval(function(){
	if($('body')[0].children.length < 4){
		newLine();
	}
	moveDownLine();
}, 10);
should canvas be more performant?
or plain js?
 
morning everyone
 
!!welcome @corvid
 
2:24 PM
!!undo
that isn't how we use welcome
 
I should omit also the @ next time
 
omit the !!welcome
 
ok
 
welcome is for informing users about the informal rules of the room
 
any idea how I can improve the performance of the fiddle?
 
2:25 PM
shorten the strings?
 
the effect will be less cool :/
 
use jQuery better?
you hit the dom a lot more than you need too
 
Sorry, "shorten the strings" was a joke. Fiddle.. string instrument..
 
Also store a reference to $(this), rather than re-initializing it every time
 
touching the dom less would be the major improvement
 
2:27 PM
plain js gives more perfomance?
 
And just to echo earlier, each is slow.
 
it's if someone posts a link to their question and asks for an answer usually
 
or asks to ask.
 
there is a better check for this yes?
if (qcItem.BackgroundImageId != '' && qcItem.BackgroundImageId != undefined)
is it testing the length instead?
 
@neoDev yes, but in either case. when you manipulate,search, or in any means touch the DOM it is going to be slow. so minimize that when possible.
codepen.io/rlemon/pen/lghzG I made this a few years ago
so no new fancy js stuff
 
2:29 PM
@rlemon cool! ok, now I'm gonna use plain js, touch DOM less possible and use better logic
just last thing:
 
looks like this is the trick:
if( value ) {
}
 
would canvas be more performant?
 
no clue
 
try it
 
my gut says not for a full page of updates, but it probably would all come down to implementation at your stage
 
2:30 PM
Yeah @JoJo that logic IF would return FALSE if empty, undefined, null, 0 and I'm not sure if more.
 
@Munkie ty
so simple
 
> utterances
I think you mean "mentions"?
Maybe...
 
porn repo?
 
2:37 PM
presumably :)
 
> Reverted 3f5a45 - too young
 
apparently SO changed their navbar
probably in response to github changing theirs :\
 
SO was first
 
I don't mind it
 
aww, I like the old SO navbar. thin, black, easy to read
now it's all bootstrapped up
yea, i'll get used to it, but it feels more cluttered. The other was sleek.
 
2:48 PM
wut SO css change
it's white at me :o
damn bootstrap
 
:)
 
.so-header {
    background-color: #333;
}
.so-header .navigation .-link,
.so-header .secondary-nav .-item .-link,
.so-header .my-profile .-rep,
.topbar-dialog .header h3,
.topbar-dialog .header a,
.topbar-dialog .header a:visited {
    color: #999;
    transition: background .3s, color .3s;
}
.so-header .navigation .-link:hover,
.so-header .navigation .-link:focus,
.so-header .my-profile:hover,
.so-header .secondary-nav .-item .-link:hover,
.so-header .secondary-nav .-item .-link:focus,
.so-header .navigation .-item._current .-link {
 
the search bar doesn't provide tooltips
 
Can anyone help me with Object spreading? In React the tutorial I am following writes {...this.props}. I can't run this in the browser to see what's being output. Here's the value of this.props - {to: "/about", children: "About"} - So what does {...this.props} equal?
babeljs.io won't transpile it.
 
because it doesn't exist ? it's new for me
Array and function args can have it
 
like [...foo] or function foo(...arg)
 
{...this.props} is valid in React
 
Ben's link was for you, Munkie
 
@Munkie It's likely you don't have the above plugin
 
it's non standard
(ES6 proposal if i check GH)
according to this page, stage 3: github.com/sebmarkbage/ecmascript-rest-spread
 
2:58 PM
yea.. was just trying to look up that status of it. It's in wide spread use, so it should be a standard, soon, I would think.
 
Awesome, thanks for the links @BenFortune and @KarelG I'll do some reading!
 
Stage 3 is nearly standard, right?
 
Yes.
As in, only actual implementations are missing at this point.
 
I'm curious if it's verbose enough
 
3:00 PM
does seems the opposite IMO
what's the use case for that ?
 
for what? object-rest-spread?
 
yes
 
Merging props I guess
 
merging props, assigning props to react components without listing them all
shallow cloning
 
ES6 isn't react ...
 
3:03 PM
doesn't mean it isn't useful in react/jsx.
let someObject = {
    foo: 42,
    bar: 43,
    ...bunchOfProps
};
let clone = { ...original };
 
Deploy took 161,085 milliseconds
@_@
 
Many (but not all) uses of Object.assign()
 
I like to do Object.assign(this, options), guessing that's one where it doesn't work?
 
eh just discovered a site: facebookscanner dot com
 
some people are super bad at isolating code in their questions :|
 
3:12 PM
True. It does not work there.
it really only replaces Object.assign({}, foo, bar) for merging into a new object
and yea.. I use Object.assign(this, something) a lot, too.
 
@corvid link ? :P
 
@Luggage I have a helper for that which, among other things, reads decorators on the properties and grabs those keys from an immutable map.
 
@KarelG this one, I feel like as soon as I see it I just press back
 
so that it only assigns the properties you allow?
 
yeah, that and names that aren't 1:1
 
3:17 PM
ah
 
i've seen larger code dumps on SO. I also don't look at it again. Sometimes I ask to isolate the issue ...
 
doesn't even use reflection, the decorator just builds a map of property name -> config key pairs
 
yea, makes sense.
 
SO's design just changed a bit
trying to look like facebook
 
You're late. :)
 
3:21 PM
Of course I am
 
Nick, try to find a more mad train face
to match your current state of emotion
 
I'm not mad, though
 
Then hang around here for 10 minutes.
 
no
 
we'll surely get into a petty argument about nothing
 
3:23 PM
jQuery vs Python
 
it's not difficult to cast a vote
 
jQuery has better whitespace than Python
 
user2620028
oh yeah i just went to look at the changes to the homepage and i am not thinking they were improvements lol
 
Just listen to my horrible singing as I serenade you facebook.com/nick.dugger/videos/10154195289096373
 
> Sorry, this content isn't available right now
 
3:29 PM
No serenations for you, then
 
NSA took down dugger's noods
 
@copy get yo ass to work
 
He's busy buying you secret flowers
 
and happy valentine's day, sweety
@ndugger I think he just woke up
 
3:33 PM
lol
 
@ndugger do you have a date for today?
 
Nope, I'm gonna get drunk in my apartment alone instead
2
It's been a few months now since I had a date. I'm getting sour on it again :(
 
@ndugger Amen brother.
 
Especially all that online dating crap... I'm so sick of it
 
3:36 PM
get a cat
 
Yeah, I would love to date a guy with a cat
 
I don't like cats
I want to get a dog, but I can't in this apartment
 
tell them it's a cat
 
This is why you're not getting dates
Look at all these men: buzzfeed.com/lauragallant/…
pardon the buzzfeed link
 
user2620028
he has an oil leak
 
user2620028
3:38 PM
in a harley
 
user2620028
imagine that
 
those cats are cute, those men are not
 
Cats are lame
 
you must have both
 
IMO men get like a 30% bonus in attractiveness when they're holding cats
 
user2620028
3:40 PM
think my girlfriend is the same way with dogs....
 
@BadgerCat absolutely true
 
user2620028
she found stray puppies at her school today :/
 
my gf doesn't discriminate when it comes to small animals
 
What's 30% greater than 0?
 
@GNi33 hahaha
@Luggage sorry pal, still 0 :(
 
3:41 PM
crap
 
but already attractive men get a boost
 
why can't it be an absolute bonus..
 
user2620028
wouldn't it be 30%
 
should I still get some flowers today?
 
@GNi33 does your gf like them?
 
3:42 PM
I think so
 
Then no
 
that's the answer I wanted, thanks!
 
wat
 
user2620028
^
 
I'm not getting any flowers today and I want everyone else to be as miserable as me
 
3:42 PM
girls are confusing
 
user2620028
i sent money to my gf to take her and her mother out to a buffet for valentines day
 
get a puppy
always get a puppy
 
I don't like Valentine's day
 
I hate puppies, I'm a cat
 
then I'm afraid you're wrong
 
3:43 PM
@HatterisMad asians
 
user2620028
@BadgerCat hey to be fair, i don't know a woman that doesn't like buffets
 
Every girl I've dated was more into dogs.
 
Same
 
They're all wrong
Cats rule, dogs drool
 
I actually briefly dated a girl who was even afraid of cats, lol
 
3:44 PM
no
 
@BadgerCat that's exactly the problem
I don't want some tiny monster attempting to rule my house and doing a poor job
 
what is the recommended way to define directives in angular 1.x ?
 
hi bestie
 
cats are evil
2
 
Anyone know any good guides or tutorials to use to learn to build dynamic forms using an array of objects? I'm incredibly stuck
 
3:48 PM
@NLee57 Welcome to the JavaScript chat! Please review the room rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
 
@ndugger I died of cuteness
 
@NLee57 forms are just collections of elements, so google how to create elements from an array. it's not much different.
 
Windows just popped that open out of nowhere
 
3:50 PM
@tereško are you using require.js?
 
@OliverSalzburg it's just trying to help
 
@OliverSalzburg seems legit
 
@OliverSalzburg Still trying hard to get people to use their shitty browser that they keep pouring millions into R&D for
To be fair, though, Firefox is pretty much dead as well
 
I got the notification yesterday. But the animation is new
 
3:50 PM
and rightly so
 
heh, it's also blocks 21% more than chrome.
 
> When you have to clean windows at 3 but have to infiltrate B at 4
 
go figure
 
The fire in firefox is something you can treat with penicillin
 
@SterlingArcher I am using webpack with babel
 
3:51 PM
@OliverSalzburg annoying, yes, but as long as it's not a regular popup, then I'd be OK with it
if it popped up on a regular basis (without a very easy way to dismiss permantly), that would be unacceptable.
 
The only good browser these days is Chrome, which is sad, but also good for developers
 
I'll keep an eye on it
 
@BadgerCat this guy looks like that thing from ex machina img.buzzfeed.com/buzzfeed-static/static/2016-02/2/12/enhanced/…
 
@littlepootis imo he's one of the best
plus those cats <3
 
Then you should just be able to define it normally.
 
3:52 PM
I've never seen that popup on my computer ( i probably disabled the notification it is tied to) but i've had several neihbors and F&F call concerned about the popup already
 
me either. i have windows 10 and don't remember that
 
I've not seen it either
 
angular.module("moduleName", []).directive("myDirective", () => {
    //directive here
});
 
or.. MAYBE i half-recall it once..
 
!!afk driving back from NGA
 
3:53 PM
@KevinB thank you
 
you're welcome
 
Have they started letting you change the default cortana-bar search engine yet?
I hate when i search for an app on my computer with that, and end up with edge open.
 
I don't think so, my cortana is in permanent reddit mode
 
I don't use the cortana stuff at all
 
I use it to search for the program I'm about to open all the time :x
 
3:57 PM
^
 
bloody hate the new navbar for so..
 
the reminders function is useful too
 
Windows key + start typing
fuck cortana
 
win key search happens in cortana
 
shouldn't a mobx computed (via decorator) automatically get a name for debugging? None of mine have names that show up in mobx-react-devtools
 
3:58 PM
Not on mine :)
 
github goes to black, so goes to white...
 
I killed her.
 
I like the new nav bar, just hated the sticky. now that can be disabled, so win win
 
@BenFortune hah, you wish
 
I do wish the questions button would be removed, and a full logo added.
 
3:59 PM
@towc my so went hispanic
 
that and the documentation button
 
> Kanye West is reportedly suffering from memory loss following his recent hospitalisation
 

« first day (2313 days earlier)      last day (2631 days later) »