« first day (1587 days earlier)      last day (3372 days later) » 

8:00 PM
y = rt4(x) <->y^4 = x
You have x
Find y
 
jquery.oversized.java there is no such thing like .min in java
 
Err I fucked that up edit nvm im right
 
@Meredith and it brings me to the first problem??
 
your jquery.min.java made me think of jQuery code written in java and that made me laugh my ass off
 
too many question marks
 
8:01 PM
(y/x)^4 = (...) / x^4
 
well, dinner
 
right?
so find the GCD of all the numbers in (), then 4th root that and sub it for x
 
public class jQuery{
      jQuery jQuery(String selector){

      }
      jQuery jQuery(DOMElement element){

      }
      jQuery jQuery(Function callback){

      }
}
 
@dystroy is the community wiki 'name' spot determined by rep?
it was me, then darkyen edited, still me, you edited, now you
 
no by the creator iirc.
 
8:04 PM
@darkyen00 it says dystroys name right now
that always confused me about CWs
 
probably something to do with the grace period?
 
strange
 
Hey guys here's that infographic!
 
looks like an Intel ad
just saying
 
@rlemon probably just the number of lines
 
8:05 PM
looks a lot like an intel ad
 
not a good ad
 
Intel ads
 
it's an intel ad
 
There's now a "fucksfr" branch on miaou...
 
@towc (2^10 + x2^37/4)^4 = 2^37 + 2^40
Solve for x
And then repeat for each term
I think that will work
Maybe
 
8:06 PM
@dystroy lol
 
yeah! fucks the fr
 
lol
@dystroy make an HN topic about this :->
 
@darkyen00 no. I'm no good at HN ^^
 
:-(
 
Well the graphic is changing so don't share that with friends
lol
 
8:07 PM
oi i remember your resume, you have worked with terribly old tech (as in i can just imagine the pain on pre javascript and open standards era)
 
"Jordan share this with your reddit friends!" Ok! "Wait no don't do it!" -_____-
 
and um am pinging you on miaou :-> probably you can help me
 
@SterlingArcher sorry did I upset the poor designer by telling him it looks exactly like an intel ad?
 
no lol language change i think
 
well tell him her all I wanna do after looking at that ad is buy intel products and not rape them
 
8:09 PM
Plot twist: Intel starts releasing sex toys
 
her and LOL
 
@KendallFrey to compete with Hitachi?
 
Am I the only person that works with the one guy that always ends up dragging a discussion out by talking about all sorts of slightly related things?
 
I don't expect most programmers to be great at socializing
 
this isn't socializing
I meant productive discussions
 
8:13 PM
o idk then
 
The funny thing is, this is the same guy that keeps pushing time efficiency
 
Just grab him by the ears and yell into his face, "FOCUS, MAN! FOCUS!"
 
I can't grab ears over Lync
 
I'm pretty good at keeping conversations on track as I provided phone support for almost nine years
 
var mousePosition = { x: 0, y: 0 };
paint.push(mousePosition);

How do I push the values of X/Y into the array instead of the reference to the object?
 
8:20 PM
why would you do that?
 
paint.push({ x: mousePosition.x, y: mousePosition.y });
 
your data structure should make sense
 
Because I want an array of xy coords as user paints
 
yeah, and a list of objects is the way to do that
 
Also known as making a copy of an object
 
8:21 PM
Nice, works nice
Anyone wants to paint with explosions?
G to record path, F to paint
 
No thanks, ISIS
 
@Jonathan You mean copy's? I'm curious, how is that different from yours?
(besides the obvious)
 
!!should i buy 2 iPhone 6 or wait.
 
@darkyen00 You should buy 2 iPhone 6
 
8:23 PM
My version held the ref to the current mouse pointer
no path was recorded
 
:D awwh you wise caprica
 
@Jonathan you mean it was changing? why?
 
Because he changed it
 
@SterlingArcher I signed up to help but got "your account is not old enough to participate"
 
@Jonathan "path" is not defined in the current context. "record" is not defined in the current context.
@copy but why
 
8:24 PM
Because he needs new mouse coordinates
 
My version resulted in an array with references to the same point
one point
 
@Jonathan You should be treating your types as immutable
 
Eh?
 
a point is an x/y pair, and you can't change them without creating a new point
new point
 
@BenjaminGruenbaum same :( Only people older than yesterday on reddit can vote
 
8:26 PM
Can you see who voted?
 
I don't think so
 
Ok i'll vote on all of my accounts
 
It's like @copy said: paint.push({ x: mousePosition.x, y: mousePosition.y });
 
Unidan === @Meredith
 
8:27 PM
mousePosition is one point
 
@Meredith read the rules first, just in case that is a case of vote fraud
 
@Jonathan it should be a different point every time
 
Fraud == disqualification
 
not the same point with different values
 
@Jonathan Mr Frey suggest using mousePosition = { x: mousePosition.x + dx, y: mousePosition.y + dy } wherever you change it
 
8:28 PM
because it's more mathematically sound that way
 
You're serisouly confusing me now -.-
 
Do you know what immutability is?
 
^ I do! After you painstakingly taught me lol
 
I suppose a constant?
 
not exactly
it's the difference between string = string.replace(...) and just string.replace(...)
replace returns a new string in JS, so strings are considered to be immutable
 
8:30 PM
@SterlingArcher WATCH THAT VIDEO!
:(
 
@rlemon sorry I did, forget to ping back
I lol'd
 
you can't modify "Hello, World" without it becoming a different string, and should thus be a different instance
points (vectors) are also like that in math
 
Ok...
Still not seeing what you mean
 
Do you know what an instance is?
 
basically, you can only set the x/y of a point when you create it
 
8:32 PM
So I do paint.push(new mousePosition());
 
that's not valid, no
 
@KendallFrey no... it's rather that because strings are immutable, replace returns a new string :P
 
yeah, yeah
 
You have no idea how many hours I've wasted because I wrote str.replace() instead of str = str.replace()
 
But it seems I'm the only one excited about painting with explosions...
 
8:34 PM
@Jonathan you should be doing something like mousePosition = { x: x, y: y } and never mousePosition.x = x
 
@Jonathan You undo the change that I originally suggested and avoid changing mousePosition.x directly, hence treating mousePosition like an immutable value
 
a point should behave like a number, because that's what it represents mathematically
 
But I want mousePos to be one point...
 
and you can't modify a number
 
@rlemon miaou now works on mobile thanks to that simple trick... ISP hate you
 
8:35 PM
@Jonathan no you don't
 
:P
 
it can be one variable, but not one object that keeps changing
 
I'm glad it works out for you
your ISP is stinky
 
mousePos is one point, the current point of the mouse. That makes sense to me at least
 
@dystroy out of context that almost sounds like a buzzfeed article lol
"Websites now work on mobile thanks to this simple trick! ISPs will hate you!"
 
8:36 PM
@SterlingArcher coincidence, obviously...
 
@Jonathan well, mousePos will always contain one point
 
@dystroy of course :)
 
the point keeps changing to a new location, it's not the same location with different values
just like 5 isn't just 2 with a new value
 
var mousePosition = { x: 0, y: 0 };

// Track mouse all the time.
document.addEventListener('mousemove', function storeMouse(event) {
mousePosition.x = event.clientX;
mousePosition.y = event.clientY;
});

So you disagree with this?
 
8:38 PM
Because its a different point every time
 
yes
mousePosition = { x: event.clientX, y: event.clientY };
 
or mousePosition = Position(event.clientX, event.clientY);
 
Ah, no need to track it...
Argh mousePosition = { x: event.clientX, y: event.clientY }; throws
no event
 
huh
this is in the event handler, right?
 
Meh, I was confused, did var mousePosition = { x: event.clientX, y: event.clientX };
 
8:42 PM
nope, you don't want var
 
I got it now...
 
Yay 2 compliments on my haircut from the ladies today :)
 
pap
 
@SterlingArcher which hair
 
You're saying
mousePosition= { x: event.clientX, y: event.clientY };

Is more correct than:
mousePosition.x = event.clientX;
mousePosition.y = event.clientY;
 
8:43 PM
yes
it's more mathematically accurate
 
Ok, got confused there
 
@KendallFrey lol shut up
 
Following you now :P
 
@SterlingArcher no
 
I recommend using a constructor though
 
8:44 PM
@Jonathan And you know of a practical reason for this, of course ;)
 
No, none :P
 
Oh wait
I do
 
The value doesn't magically change in random places
 
This should now behave as expected: paint.push(mousePosition);
 
8:45 PM
var a = { b: 1, c: a.b+1 }; // not gonna work
var a = {};
a.b = 1;
a.c = a.b + 1; // all good in the hood
 
@Jonathan :D well done
 
uereka
 
@rlemon get the fuck out
 
Anyone, I can paint with explosions
which is awesome...
 
@KendallFrey I was never "the fuck in"
 
8:46 PM
@Jonathan i still don't know what that means
@rlemon And this is why you use constructors
 
Hipchat is baller
 
Slack is currently down
 
some idea I just had with this game I'm making, wanted to fire in pre-recorded paths
 
@KendallFrey but new is so ugly.
 
Don't use new then
 
8:48 PM
@SterlingArcher that reminds me I need to write that for here
I got it half working
 
@rlemon what Meredith said
I used that pattern in transform.js
 
@rlemon Why is new ugly?
 
var foo = old Foo(); // but this didn't work!
 
@rlemon I'm pretty impressed by hipchat
 
dad i didnt know you knew javascript
 
8:50 PM
@KendallFrey
 
wot de fok
 
Painting with explosions....
I'll make another key to release the entire path at once
 
hi everyone
 
@MousaJafari Welcome to the JavaScript chat! Please review the room pseudo-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.
 
@rlemon factory methods brah
 
8:55 PM
fun.call(Object.create(fun.prototype) ..)
 
looks like Kerbal Space Program gone wrong
 
stahp
 
HAMMAHTIME!
 
8:59 PM
The sole purpose of that is to have many many explosions
Because we can
 

« first day (1587 days earlier)      last day (3372 days later) »