« first day (2355 days earlier)      last day (2586 days later) » 

12:01 AM
woot just got another set of working voodoo 2's
super cheap price was worried they were faulty
gaming again like it's 1998
heh this is like my 3rd set though I can't help but snap them up
think I'm going to put these into an amd k6 build
 
A K
because my boss wont let me for this function...
I can't use Object.create, Object.assign, or create copies; I'm not sure how else I can inherit
 
Morning
 
Ask your boss why. If he can't answer, find another job.
 
Does Webpack2 provides dllPlugin?
 
yeah seriously why is your boss limiting you?
are you supporting IE9 or something?
 
12:10 AM
Don't use arrays. I don't trust 'em. Never have. - Cave Johnson
 
A K
i'm not sure :(

on another side note, anyone have experience with generating images in node and sending it to client for downloading?
 
Wowowowowow, you're using node and you still can't use Object.assign???
I call bullshit
/me calls bullshit
 
A K
no, for that specific function I can't use object.assign
 
Y?
 
A K
because my boss thinks i can't program
 
12:12 AM
Can you?
 
A K
so i basically have to write a bunch of code pre es5
 
That doesn't make sense
 
A K
he's constantly testing me with inheritence patterns
and limiting what i can do
 
This is from webpack2 doc. Does [TODO] mean that this feature hasn't been supported by webpack2?
 
12:13 AM
And what does that have to do with pre-es5?
 
@AK since I feel bad here is something, jsfiddle.net/35rwq3sc
 
A K
He's using a 2010 book to test me
 
So?
Are you in school or working?
 
A K
working, but at the same time, everytime i show him my approach to that function, he said he can't accept it
 
12:15 AM
Seriously sounds like there's more to this story
 
Ask him to tell you the reason and how you can improve.
 
yeah I agree @monners
 
Did you kill your boss's dog with a syntax hack or something?
 
maybe it's the terrible variable names.
 
A K
Basically, he's testing me on a few patterns, at the same time, I can't use ES5+ because he want's to make sure I understand udner the hood
on a side note, I'm also building out personal projects
 
12:16 AM
If my lead said you can't use [basic language feature] I'd say you're gonna be working for me soon
 
A K
I asked him, but he responded that I don't have a clear understanding of javascript
and it's a bit frustrating
 
What's he trying to get you to demonstrate?
 
well he might be right, but just not sure what the end goal is
if you're working actively on projects not allowing es6 is a hinderance
but if they're trying to teach you meh.
 
I mean shit, if you understand Object.assign then you're above where most people who call themselves javascript developers are
 
A K
i use redux
for state management in react, so i'm pretty sure i know Object.assign and Object.create
 
12:19 AM
I'd bloody well hope so
 
A K
building out an image filter editing app
 
I'd say those are easier than old school ways
 
A K
done with all front-end react code
 
Heh, use JSON.stringify and JSON.parse just to fuck with him
 
A K
last portion is node image processing and sending to client for download
havent been able to figure that out; came across file streaming
i dont want to write the image to any disk
but back on track
the function i need to build to demonstrate my understanding of inheritance
is build a function that takes in an object, and gives it a prototype method that console.logs this.name
 
12:20 AM
well it should be easy then.
 
A K
no sht, but i can't make copies, i can't use es5+
 
even w/o those it's not hard.
 
A K
and the approaches people uploaded dont work
 
the one I provided doesn't work?
 
A K
say the object has other properties, those must follow
 
12:22 AM
yeah...
 
A K
yea
 
that's not hard to add
 
A K
but i can't make copies
 
function foo(obj) {
  obj.bar = function () {
    console.log(obj.name);
  }
  return obj;
}
 
A K
i can't add that say method directly, it has to inherit
const r = getMethod( { name: "James" })

r // { name: "James" }
r.say() // Hello James
 
12:24 AM
Inherit from what?
The function?
 
I think I know
 
A K
i solved it like 5 different ways, but it's not the correct way he wants it
 
That's also easy
 
this seems like a homework type thing
@monners yea
 
A K
yea... and it's driving me crazy
 
12:25 AM
@AK Your boss is a dick.
 
A K
hahah
 
@Loktar yeah, sounds like something a professor that hasn't worked in the industry for 10 years might assign
 
A K
well he's having me a 2010 javascript patterns book
but restricting me usage of es5+
 
Shit, why not just get you to write it all in assembly?
 
eh we don't know the whole situation
I'd personally be annoyed but it would be trivial
 
12:27 AM
Do you use DllPlugin in your projects?
 
What's DllPlugin?
 
the best
 
A K
it's really trivial, this isn't acceptiable
 
A webpack plugin
 
1 message moved to Trash can
@AK Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq. For posting large code blocks, use a paste site like gist.github.com, hastebin.com, pastie.org or a demo site like jsbin.com
 
12:28 AM
what's wrong with Loktar's fiddle?
seems perfectly legit to me
 
1 message moved to Trash can
@AK Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq. For posting large code blocks, use a paste site like gist.github.com, hastebin.com, pastie.org or a demo site like jsbin.com
 
function getObject(obj) {
  function F() {
  	this.name = obj.name;
  }

  F.prototype.say = function(){
    console.log("Hello", this.name);
  };
  obj = new F();

  return obj;
}

var r = getObject({ name: "James"});

console.log(r); // { name: "James" }
console.log(r.name); // "James"
r.say() // "Hello James"
 
Where is his fidde?
 
A K
say the object going in has additional properties, it won't be carried through
 
function Person() {
	this.name = 'bob';
}
Person.prototype.say = function() {
	console.log('Hello my name is ' + this.name);
}

function boy(settings) {
    Person.call(this, settings);
    this.sex = settings.sex;
}
boy.prototype.say = function() {
	Person.prototype.say.call(this);
	console.log('I am a ' + this.sex);
}

var jason = new boy({sex: 'boy'})

jason.say();
old schooool
 
A K
12:29 AM
what about {name: "james", age: 4 }
i even iterated through the object and added propties to an emptied one, he still wont accept it
 
@Loktar Way to shun the modern, non-binary gender norms. For shame!
 
I said sex not gender
 
1 message moved to Trash can
@AK Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq. For posting large code blocks, use a paste site like gist.github.com, hastebin.com, pastie.org or a demo site like jsbin.com
 
A K
this is my approach, and he still wont accept it
 
12:31 AM
@Loktar Oh... Carry on then :P
 
haha
 
You know I was just fucking with you, right?
 
@AK might be that let
@monners lmao yes
 
Maybe he has some prejudice against you.
 
I put sex just to be cheeky honestly
 
12:31 AM
giggles
 
heh cheeky
because butts
 
A K
haha, but it's because i'm using Object.assign, Object,create and I''m making a copy
i'm calling so much bullsht, how the fck can i solve it then?
i cant use composition
it has to be inheritence
 
well idk how that even shows inheritance
your code I mean
 
> Sex is not the answer. Sex is the question. Yes is the answer.
 
what are you inheriting?
 
A K
12:33 AM
a method that console logs this.name
 
a few of us have posted things which show inheritance in the old prototypical fashion which classes are just sugar for anyway
 
wait why would the properties put into the constructor be passed through?
 
A K
giving a prototype pointer to any object that passes as an argument
 
I'd opt for object.create now looking back, but back in the day new was the tool
 
hmmm
 
A K
12:34 AM
commuting back home now
 
maybe this guy writes really bad code so the lead is trying to get some justification from his boss that AK can't actually write Javascript by giving him a pretty specific task? In order to let him go.
 
does he just want a class with the inputs as properties and a say method?
 
lol I just know some coworkers could have rolled in here and made me seem like the bad guy when I wouldn't accept certain solutions
> I need to do this CSS task and my boss is telling me I can't use not
 
when in fact not wasn't the dang answer anyway!
lol just a random example
yeah @derp that iteration is what I was thinking
 
12:38 AM
hmm, i was wondering if there was an Object.prototype method that would do that for me
 
I would use {...} or object.assign, super weird he isn't allowed to but idk makes me think there is more to this
 
I'm an absolute bastard when it comes to sticking to our CSS styleguide
 
I'm looking for a name for a feature/mod that implements map tiles interacting with each other, by moving people, goods, and information between tiles. Something better than transfer, communication, interaction, connection, etc.
Someone with English superpowers, I need your help
 
Masonry?
Sounds like masonry
 
ahh thanks @Loktar
 
12:40 AM
@Loktar Imagine trying to read a redux implementation that didn't let you use any of those methods
 
masonry??
 
@monners heh yeah, I hate redux though :p
but yeah I agree
 
gasp
 
You use a different store solution?
We're alt here. It's good, until it's not
 
yeah mobx
some inspiration for you @KendallFrey
 
12:43 AM
When did The Lonely Island become Style Boyz?
 
haha just in that movie
such a stupid movie
 
OH SHIT, there's another band like lonely island?
 
oh, that's a movie
 
Popstar: Never Stop Never Stopping is a 2016 American mockumentary comedy film directed by Akiva Schaffer and Jorma Taccone and written, produced by and starring Andy Samberg, Schaffer and Taccone. Also produced by Judd Apatow, it co-stars Sarah Silverman, Tim Meadows, Imogen Poots, Joan Cusack, and Maya Rudolph. The film was released on June 3, 2016 by Universal Pictures and received generally positive reviews from critics but grossed just $9.5 million against a budget of $20 million. == Plot == Told in the form of a musical documentary, Conner Friel (Andy Samberg) is a musical prodigy at an early...
that movie
sound track is decent
 
ahahhahaa i wonder if its on netflix
 
12:47 AM
It looks pretty good
 
I'm finally logged in again
on an insecure network
without entering my password :D
 
does your security department know?
they're probably getting their batons right now
 
@derp I meant logged into stackoverflow.
 
1:04 AM
There's a package for me at the post office &_&
 
1:40 AM
@KendallFrey Does it contains heart of 21 virgin goats?
 
I'm not sure. That seems improbable.
 
but not impossible
 
1:57 AM
@KendallFrey what's the link to the triangle angle question you asked a while ago?
 
i have no idea what you mean :(
 
It was a question of finding angles of a triangle within a triangle and you posted a link that was a video to the answer
 
I watch too many math videos, still dunno
 
Shít I'm not at a computer I can't find it lol
 
I can name some math channels
Mathologer, 3Blue1Brown, Mind Your Decisions
probably one of those
 
2:06 AM
I can't find it :(
 
Can you describe it?
 
It was a triangle with 2 lines in it, to make like 3 inner triangles, and it gave you a couple angles and you had to find x
 
fuck, idk
 
Imma hop on my computer I gotta find this
 
just gonna guess-post videos until I get it
This is the one I thought of
goddamn my youtube-link-posting chat history is weird
 
2:14 AM
THATS THE ONE
 
weirdly, I can't find that I actually posted it here
 
I can't find it either, nor any reference to it
I remember I did it on a whiteboard and posted it, and I can't even find that
Sep 8 '16 at 21:01, by Kendall Frey
@SterlingArcher In that case you should be able to solve the hardest easy geometry problem.
 
Sep 8 '16 at 21:13, by Sterling Archer
user image
 
Is writing code that explains everything like that a good thing or bad thing?
 
be normal dev and explain nothing
 
2:22 AM
normal devs suck
 
user6820627
@KendallFrey are you solving it?
 
user6820627
i have to solve those kinds of problems everyday
 
errr can that be turned on and off?
 
@LearnHowToBeTransparent Even ones that hard?
 
2:32 AM
If there's no problem, why is this an answer? Close as "can't reproduce" — Sterling Archer 36 secs ago
Rude or nah?
It's got 3 answers already please close it fast :(
-1
Q: Why This Code Error?

Devo Avidianto PAfter I run But Error In Grid View, Can you tell Why ? ...

jesus lol
 
answer 'Yes"
lol
 
A K
i dont think he would accept that derp :(
 
user6820627
@KendallFrey yeah. my teachers give me a lot of it.
 
2:47 AM
@KendallFrey Is that a trick question?
 
No, it has an answer
 
0?
 
I don't remember what it is
all I remember is that it was devious
 
40 + x + 140 - x = 180 --> x = 0
Wait, no
Can't find a statement where the x's don't cancel out
Oh. Create more triangles to solve. fuck you, math.
3
 
@monners That's because it's hard to compare the two sides when there's a variable.
 
3:11 AM
currently free forever on the steam store
 
YES
 
that is so badass
 
ive got like...300 hours on that game
 
I've got a bit less than that but super fun
 
3:25 AM
Has anyone been able to make react-router v4 work with server-side rendering? Not a lot of resource on that thing.
 
Hi Shriek!
@Loktar o/
 
hey @Shrek
 
only one shriek in this pond!!
 
@Loktar wanna play some game ? :D
I've got exceptional airport wifi
@shriek I'm shrek, you shriek after you see me.
 
playing for honor :p
 
3:42 AM
Hi, can I ask some advice I have gps tracking system project I used mysql for storing data of my devices send to our server...and I draw the marker base on the latest data receive inserted in my table...but I search in google that REDIS is faster than mysql...Can I replace my database to redis ?
I hope someone will advice me or help me...thank you in advance
 
3:55 AM
have you tried crossout?
 
hello all. I have an array of objects and I want an array of a property of said object. I used jquery's map() function where I return the property.
var json = self.jobs.models.map(function (j) {
    return j.attributes;
});
there we go. that works, but I now need to limit based on the ID of the object in models. If I use return null; or similar I have an array with the attributes property of all my models interspersed with null values
I could do a filter() as well, but I was wondering if there was a way to do both at the same time
in C# I'd use Linq to models.Where(m => ids.Contains(m.id)).Select(m => m.Attributes)
 
4:42 AM
@Loktar You are klingon?
I shall call you "GameKahless"
’u’ ([Ê”uÊ”], beginning and ending with a glottal stop) is the first opera in the Klingon language, billed as "The first authentic Klingon opera on Earth". It was composed by Eef van Breen to a libretto by Kees Ligtelijn and Marc Okrand under the artistic direction of Floris Schönfeld. The story of ’u’ is based on the epic legend of "Kahless the Unforgettable", a messianic figure in the fictional Klingon history. The premiere of the opera in The Hague on 10 September 2010 was a success, and the opera has been revived since then. == Background == The Klingon language was first conceived by actor James...
 
5:01 AM
I just realised a member of my team uses Safari for dev, exclusively.
 
@monners I use safari for dev too
 
@hsimah You can chain the two methods. array.filter(...).map(...)
 
when I'm on battery its even exclusive
 
@monners oh true, thanks, ill give it a try
 
@Shrek I take it you don't use React dev tools much then?
 
5:17 AM
@monners I'm a server side dev
and if a library needs its own dev tools, there is something definitely wrong with it
 
Hey guys how do I change the url of a user while not reloading the page?
 
change the hash
 
@lix look into history api
it does this out of the box for you
history.pushState, history.replaceState, history.popState
such awesomeness :D
 
ahh okay I'll check it out
 
History.js is a good polyfill on top of it iirc
 
5:21 AM
Currently I'm just looking to make it motus.com/article when a user clicks on an article just without the page reload, is that something I can achieve with this history api?
Ideally it's so that if the article was shared the website can handle that an article was given when navigating to the homepage so it loads it straight away
if that makes sense
 
@lix yep.
 
Brilliant thanks
 
You'll

- Intercept the click.
- Prevent default action.
- Initiate loading your article and replace / re-render the screen.
- Use history api to replace the url
With all of that in mind you can also use nprogress.js
to fake progress bar on the top ;)
 
you sir are a god.
 
Meanwhile I'm reading gpgme docs, why the fuck does this thing not have an actively maintained node project?
OpenPGP is good and all, kbpgp is great, but they are all slower and less battle tested then gpg by several order of magnitudes D:
 
5:27 AM
@Shrek puu.sh/v0SUI/0b60e60da4.jpg you thinking what I'm thinking with that loading bar?
 
yep
 
oh boy it's gunna be wonderous
 
yeah dude
sec I'll make a gif of what the logo also does
 
@Shrek I see what you're trying to say, but that's wrong in this case. React is an abstraction above the DOM, so to try and reason about it in the DOM is a nightmare
 
5:30 AM
@monners It should still not need to inject a browser add-on in devtools. I like the minimal approach of redux devtools which you can install and use as a library
 
@Shrek It doesn't. It's 100% opt-in.
 
And without it development experience sucks
 
It's exactly the same as redux dev tools! It's an extension!
 
Redux dev tools can also be used as just a library
without a global extension
Its just my personal preference, I like keeping things packaged and modular
 
Well good luck with that.
 
5:32 AM
@shrek I was quite impressed when I got this working puu.sh/v0T7E/1ca80fc11f.gif
 
@monners I'm not saying I won't use it, just saying that I don't like it, think about it this way. You install everything from compilers to loggers from npm just a single command to rule them **err run them all. And then you need to go and install a plugin from chrome store just to debug them?
 
Maybe it's overkill if I do both
 
Maybe, maybe not
your UX designer should speak
 
huh?
My ux designer?
 
Whoever chooses how the look and feel of your app should be.
 
5:35 AM
It's only me working on this
 
Then its you!
!!giphy its you!
 
haha ^_^
 
@Shrek In the same way that you use the network tab to debug network requests, or the elements tab to inspect elements, or the sources tab to reason about sources. If you're not using these tools then you're doing it wrong.
 
LMAO
 
5:35 AM
LOL
@shrek thinking of you too man ;-)
 
@monners The network tab is existent because the Network is a browser implementation not facebook's add-on. And so it ships with the browser
 
@Shrek Well then throw away all of firefox
And all of those plugins you use in your editor
 
And I do use the tools
 
Oh look. Home time!
 
funny my editor picks up pretty much every tool it needs from the repository.
 
5:37 AM
This argument is stupid.
 
Why?
 
You do you, I'll do me, and we won't do each other.
 
If you are developing something, you should not have a huge readme just to setup the dev environment. Everything should be in the repository itself and 1 command to install and run em all.
 
Huh?
What does that have to do with anything?
React doesn't not work if you don't have the dev tools
Ugh. Fuck it. There's no arguing with stupid.
 
I know, but it does become a PITA to debug. That was your point.
 
5:39 AM
Out.
 
vOv
 
i found out what react was today
I read this hackernoon.com/…
 
 
1 hour later…
6:54 AM
Hi Guys, I am kinda new to JS and I am trying to create an example in which it will count from 0 to 10 and then it will repeat again from 0 to 10 regularly. here is a fiddle jsfiddle.net/gajen/a8ct4xnr
 
your question is ... ?
2
 
hi guys
 
@Prasanthi Welcome to the JavaScript chat! Please review the room rules. Pleasedon'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.
 
question is how can I repeat this loop again and again so that it will start from 0 and end at length of the "li", and then start over without refreshing page
 
but my question is not related to JS
do u have any idea on power bi desktop
 
7:03 AM
@kare
@KarelG, I am waiting for your response
 
me also
 
@KarelG me too.
 
@KarelG me too
Hey Madara, if I want to make my navigation menu always visible such that it should not go away when I navigate to a different component. Where should I be using that nav ?
in the app-root ?
 
@FlyingGambit Multipage application?
Or single page?
 
7:16 AM
Then it should be something like
<Menu links={linkConfig} />
<RenderMyRouteHere {...routeProps} />
<Footer />
 
Basically trying to make a app with 2 sections, nav and content-area, the content area needs to change
@MadaraUchiha That code looks very different from what I have seen so far. Is that in the index.html ?
 
keh @ those pings.
anyways, @SterlingArcher Do you want to meet her: scontent-bru2-1.cdninstagram.com/t51.2885-15/e35/… ?
 
@FlyingGambit This is react syntax, but the concept is similar in other types of apps too.
 
I was asking about ng2, but I get the picture
 
7:37 AM
Hi Guys, I am trying to create an example in which it will count from 0 to 10 and then it will repeat again from 0 to 10 regularly. here is a fiddle jsfiddle.net/gajen/a8ct4xnr
how can I repeat this loop again and again so that it will start from 0 and end at length of the "li", and then start over without refreshing page
 
@MadaraUchiha did you get my pings?
 
@FlorianMargaine I did, thanks
 
-4
Q: How to learn javascript

hopeverseI am a just getting started soon after the white, and now want to learn good javascript, then ask you big god, what good learning method? What is your learning of this language?

What the fuck, 2/3 answers are w3schools
 
7:53 AM
:|
 
o/
 
@GNi33 ohai
 

« first day (2355 days earlier)      last day (2586 days later) »