« first day (2306 days earlier)      last day (2865 days later) » 

15:00
@SuperUberDuper somehow, I can only think in that hacky and awkward way someone mentioned earlier... like redefining the "console.log" function with 'prototype' and regex... I don't know
@lockedz 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.
What are you trying to do again?
Lockedz
@Luggage, @SuperUberDuper asked:
"is there a way to automatically log to console result of every command?
instead of doing console.log everywhere"
ohh. no.
is there any way to clear the hashHistory object of react-router?
15:02
Can't you just push a new path to it?
clear all history? not sure. You can just pushState a clear route, though
@shriek ChromeC behaves teh same
this doesn't log anything:
var foo
typeof foo
i have the problem that after the user log´s out and log´s in again he is redirected to the last component he visted
he should always start at /Home
you control that. You choose to keep state when they click log out and restore when they log in
@SuperUberDuper what would you like it to log?
15:05
logs "undefined" for me
the same value it would do if added to the console as a command
@RayPoward you still have to log it
but it seems that i don´t have access to this.props.history.pushState in any other component than my index
@SuperUberDuper which means...
undefined, but I don't know a way to get the value of a statement in code, like that.
he has to type console.log(typeof foo)
to get undefined
I am trying to avoid that
15:06
so you want the types logged for every variable that gets defined after its definition?
Impossible. you can't console.log(var foo).
everything except that)
!foo
foo*2
etc etc
what an odd request
@Luggage console.log(eval("var foo")) ayylmao
15:07
You can console.log(eval('var foo')) but that looks weird
You mean if you have like an Array().push("") it would log... "Array().push(\"\")"?
no, it would log the value of the expression.
I think he wants [1,2,3].push(4) to log [1,2,3,4]
15:09
oic. The eval() solution looks tricky tho
well in chrome it returns 4 so thats ok
only .push() returns the new length, not the array.
@rlemon var a=[1,2,3];console.log(a=a.concat([4]));?
so it'll log: 4
@SuperUberDuper just so happens because of the array
what luggage said ^
@AnastasiaDunbar ew, re-assignment
const a = [1,2,3]; // concat me now sukka
15:10
I don't think its possible
Even so, I think he wants that behavior to several commands
yes for every command
Just use a REPL. that is what they are for.
there must be an implementation somewhere
yea, node.js :)
any browser implementation will need to take the code as a string and 'eval' it.
@SterlingArcher there is a shitty video on youtube talking about this little bastard
@rlemon I think I've seen one that uses a lot of them?
:O i love badgers
15:12
@AnastasiaDunbar you probably have. there are lots of examples of bad code out there
@BenFortune that's teh one!
> god: hmm how about a literal fucking tankshredding murdermachine that has no fear? gabriel: ... dude no... god: rubs hands, picks colors
@SterlingArcher LOL I was waiting for a huge scream
@rlemon weird ass music video, hella good song
15:13
your prev one led me to that
@LOKTAR I LOVE THAT VIDEO
@rlemon I saw it on a "Fisher–Yates shuffle" algorithm, I got confused for the first time I saw it.
@SterlingArcher will check out after coffee and vape
haha yeah it's great!
Is there a better way to deep copy an array than doing JSON.parse(JSON.stringify(a))?
15:14
how deep?
or arbitrary?
As in, not the same reference
arr.slice()
?
what's in the array
that's shallow
@Luggage I thought his last answer indicated 'deep' "as in, not the same reference"
figured I'd toss it out there
his last answer told me nothing
copying means not the same reference
but.. no idea how deep, still
15:16
which is why I put that there...
slice didn't work the last time I tried, but now it does
god it's like talking to an old bald cartoon.
Maybe I used it wrong, I'm gonna go re-check something
I was trying to get him to tell me, not assume :)
15:16
CGCFAG
also, the original question was "deep copy". Now he's talking like he doesn't care about that any more
const clone = Object.assign(a);
fight me
so I question if the original question was even the right one
@RayPoward copy n paste frum searchin on stackuverflow
import extend from 'custom-object-extend';
const clone = extend([],source);
your move ben
15:18
@rlemon Does that include 10 deps?
18
pad-left is included twice tho
Not enough
var clone = $.extend(_.extend(source))
jquery :(
keep it vanilla bois.
15:19
LOSER
Quiet down, waffle.
Slice didn't work because it was a 2d array
Now I remember
var clone = { __proto__: source }
then double slice. map and slice
15:20
@RayPoward a.map(e=>e.slice()) lul
Ninja'd
yeah, I get it now
That code was written before I knew about map
the grammar on this npm package is so bad :\ npmjs.com/package/preact-dom
let clone;
fetch("/extend", {
  method: "POST",
  body: JSON.stringify(obj)
}).then(res => res.json()).then(json => clone = JSON.parse(json));
do I win now?
15:22
can i somehow get the previous path out of this.props.history in react using hashHistory?
@corvid "I don't need semicolons, ASI is the best"
@corvid I tried preact once. It had compatibility problems. Why are you so worried about a few hundred k?
do you pay per byte?
@BenFortune commas..
foo => bar,
biz,
baz,
fuckme
@Luggage nah, wasn't gonna use it until it's stable with react 16 (when that comes out). React 16 should be a big deal anyway
@rlemon What now
15:23
coffeescript is so ugly.
@Loktar did you know Spider One from Powerman 5000 is Rob Zombie's brother????
nope had no idea
I wish there was "#define" (something with sweet.js if it would possibly work) in JavaScript.
I rarely keep up with peoples names though honestly haha
15:24
white zombie never should have stopped making music
😎 👉
  👉
youtube.com/watch?v=XiHr7qLxOvU wow he reminds me of Billy Idol
👈👈😏
15:26
:try: :cry: :fail:
You can't just fingerpoint your way into my heart @rlemon
That's where you're wrong kiddo
@Loktar I assume you love and miss Static-X?
I never got into them really
@Loktar 👋👋👋
15:28
!!s/Static-X/Mrs frizzle/
@rlemon @Loktar I assume you love and miss Mrs frizzle? (source)
I know I do..
that dude looks like Billy Idol @SterlingArcher
that's crazy
15:28
sounds like him as well
What's up man long time no see. You still up in Michigan?
hey @SeanLarkin yeah in MI now
near Brighton
Maybe Billy Idol is Rob Zombie's other little brother
@rlemon you prolly like old Trivium
like 20 mins from Ann Arbor
Guh, I need to get back there. I miss real bodies of water.
15:29
@SterlingArcher I do
Wait isn't Ann Arbor in maryland
yayyyy
Oh nice like Brighton?
Ann arbor is a nice city. Long
Oh lmao didn't see second message
I don't recommend driving the length
15:30
That's awesome! Still at IG?
yea
💯 ever get your dev VR setup going?
My wife said yesterday "we should get one of those VR things" 😂
oh I've got 2 setups now
the vive + rift in the basement
so I can play coop/vs with the kids
Guhhh that's awesome.
I swear they are missing the market by not creating done VR IDE for devs
Unity sort of has one
you can dev inside of it, not really code though
how are things going with you?
I saw your GH a few months back Chris at work pointed it out
looks like you've been doing some cool things since you left
that's pretty badass
fret zeplin lol
15:41
@Loktar I got a message from a recruiter last night with a potential offer working with nodejs/go on AWS/Docker for some sort of wearable technology. I replied, my trigger word is wearable tech lol inb4 smart t-shirt. Fuck that!
@SterlingArcher dude idk how but I got to this video from your first one....
it escalates so fucking fast
@SterlingArcher LMAO
wearable tech
DONT FALL FOR THE TROPES BRO
Yeah, wearable tech is such a broad term. Unless it's badass idc
@Loktar busy af, lol. But yeah, it's been a weird and crazy ride
But fun nonetheless
15:46
lol
neat
does anyone have experience with that ?
user1596138
@rlemon still looking for an SUV, right?
yup
user1596138
How bou da
@BenFortune nice. i love that
lol not that big, and not a brand new one
but thanks :)
@Loktar Cringiest thing about that is the vertical footage
user379888
15:48
Hi. The menu of this page goes down when the screen is squeezed.
user1596138
lol it's got the huge motor
it's difficult to find Dodge in my country :/
All the holes in the hood make it more practical
@KarelG lucky you. :)
user1596138
It might be a real air ram... Doubtful lol
user1596138
15:49
The Challenger CLassic comes with functional air ram system in the hood vents
ah, why lucky me ?
unless you have a lot of out-of-work mechanics..
user1596138
LOL. I haven't had any issues with mine yet... Other than the drivers side heated seat doesn't work now
Well, that's unacceptable.
user1596138
Idk if I'll work on it or take it to the dealer when it's time...
15:50
I'm looking at 2014 models
user1596138
I got some ramps to change oil lol. Not used to not being able to crawl underneath my vehicles
new enough to have low km and good features, but old enough to not cost an arm and a leg
user379888
..
user1596138
@rlemon Right my thoughts exactly with the 2011
user1596138
Is anyone in here doing JS1K?
15:52
@towc @Loktar ??
Why SUV when you can station wagon?
probably not
@Luggage could be considered
user1596138
@Luggage Don't they have a Magnum Hellcat coming
maybe, I haven't gotten any inspiration yet
user1596138
15:52
hate those windows
user1596138
I hate the entire car lol.
user1596138
Some people seem to like em..
well yea, but that style of window
who wants to look through toaster slots while backing up
user1596138
What style
15:54
the slim square windows in the back
hate that in new cars.
user1596138
Yeah good luck seeing through them. There's quarter panels the size of children in these Dodge cars
@Luggage that's a break
i'm more for berlines

« first day (2306 days earlier)      last day (2865 days later) »