« first day (2144 days earlier)      last day (2807 days later) » 

3:00 PM
maybe he is lost, just type in the address!
^ Uncle joke with layers, guys
 
Like an ogre.
 
cakes have layers
 
user3119231
Btw, who removed me from the javascript team?
 
Depends, who are you?
 
Maurice
 
3:02 PM
Wasn't me, regardless lol
 
aka that other guy
 
user3119231
Maurice aka Maurize
 
user3119231
Aka Abraham Lincoln: Help vampire hunter
 
argh.. edited a message by accident. hate that.
wasn't me.
 
the guy whos pic used to be him holding some balls
 
3:02 PM
The other Vermin German?
 
user3119231
... at least German is true
 
I don't do well with name changes. @Trasiva turned into an outsider for a couple weeks
 
user3119231
I will totally restore it in 2 weeks.
 
Aug 17 at 13:11, by rlemon
Maurice, stop changing your name
 
user3119231
^
 
3:03 PM
I already accosted him for it.
 
@Luggage That was actually just a small social experiment until @KendallFrey went and had to fuck it all up.
 
At least we don't have two nicks with similar avatars anymore. :)
 
okay Neal
 
what did i do
 
we don't play social experiments in here
 
@KendallFrey ahahahahahahaha
> oops
 
byyye byyyyyye
 
Holly knows not to be alarmed when she hears me scream "NOOOOO NOOO FUCK FUCK I DIDNT MEAN TO ... FUCK NOOOO!!"
 
multiple launches while saving money on launch sites?
 
I need to remap the staging button from space bar
 
3:08 PM
@rlemon But you keep playing with my heart :(
 
@rlemon that's bad, because the day you actually release something awful she won't react
 
No people are saying this because you're asking us to do your homework. Talking down to those who you are asking assistance from is not a smart idea. — rlemon 15 secs ago
lol
@SterlingArcher I love when the vamps turn to the insults "well you're too dumb to answer"
 
@Mediasoft fun story. One day in college I failed a project because I improperly asked a question on stackoverflow about my homework, somebody answered it. That somebody turned out to be my teacher, who pulled me aside and explained why he was failing me.
 
wow, that's awesome.
 
So before you get snippy on Main and get flagged, take into consideration the consequences of your actions first.
 
3:13 PM
also, straight up posting a homework question is like a pretty basic faux pas
 
@SterlingArcher If I ever become an instructor, I'm soooo wording my assignments in a way that I can track who's asking for answers on SO. Then failing them for abusing SO improperly if they do.
 
Whoaaaaaa
 
Hi, has anyone encountered something like this before?
I have a two spans with onclicks that calls a JavaScript function, which in turn makes an Ajax call.
Clicking the spans works on a computer, but on Android with Chrome it does not. However, if I through the console write ${'span.foo')[0].click(); it works, and after that clicking both spans starts working.
 
@Tazavoo 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.
 
!!afk new McLaren in the parking lot
 
user1596138
3:16 PM
@SterlingArcher Take it
 
So they pay well at SNC
or.. they don't unless you are 'they guy'
Take it for a ride. Tell them I said it's ok. My tax dollars paid for it.
 
@Tazavoo do you know the click is being registered on the mobile?
 
@SterlingArcher Take it for a joy ride, fuck the consequences.
 
@Trasiva SterlingArcher is afk: new McLaren in the parking lot
 
@rlemon It shows the blue square around the span when I click it.
 
3:19 PM
Yes Cap, I fuckin' know.
 
@Tazavoo so then the problem is with the xmlhttprequest?
 
@rlemon Apart from it registering the click, I don't see anything, no errors in console, nothing in the Network tab, so I'm not sure it even reaches it
 
network tab and mobile are not a thing afaik
at best it is an emulation no?
 
user1596138
@rlemon Y U no remote debugging
 
@Jhawins don't need too?
 
3:21 PM
@rlemon I did remote debugging, that's how I got access to the console
 
well then make sure the request is being sent
nope
 
y u ping
 
user1596138
You have full devtools access on Android just like on iOS, including network panels
 
user1596138
@jAndy It wasn't supposed to ping you. Supposed to ping the grammar nazi
 
@rlemon but after invoking the click function once via the console ($('span.foo').click()), it started working. The other span with the same function also started working.
 
3:23 PM
@janDvorak is awol, again :(
 
@jAndy The game.
 
@Tazavoo you are trying to track down why it isn't working on click, make a console log when you click
 
user1596138
@rlemon Rahh rahhh rahhh to the room's bitch board, he was mean to me and abused owner powers lmao
 
make sure that registers first.
 
funny
 
3:24 PM
@Jhawins dude, I was binning it as a "nope, not gonna care" and this is your response/
now you can take a time out
(I'm not kicking, but holy shit if you are gonna be instantly salty, take a walk dude)
 
user1596138
@rlemon What...?
 
user1596138
Can you read
 
A long walk on the beach.
 
> Rahh rahhh rahhh to the room's bitch board, he was mean to me and abused owner powers lmao
 
user1596138
Went straight over your head apparently lol
 
3:25 PM
Yea.. pretty sure it was a joke..
 
user1596138
Everyone else felt the sarcasm splash off of that all over the place
 
you get hot headed all the time man, don't blame me for thinking you did again.
 
I didn't feel any splash, thankfully, though.
 
user1596138
> Rahh rahhh rahhh
 
user1596138
Lol when someone starts a serious complaint with that I will take them so seriously
 
user1596138
3:27 PM
@rlemon I don't even participate, the last time I've been "hot headed" in here has been 3 months or greater.
 
well..
 
user1596138
!!giphy rage
 
that gif doesn't really have the intended effect.
 
@rlemon It does reach it.. I added cache: false in an attempt to fix it a while ago but did not work. I will try some deeper logs and get back to you. Debugging one a live site at the moment, luckily not too much traffic..
 
3:28 PM
looks more like he's tryng to dance
 
@Tazavoo just keep adding logs at every step and see where they stop
 
HAMMERTIME!
 
user1596138
Our dev/test envs are down so I can't do anything
 
Now I know what a quadriplegic dancing looks like
 
user1596138
I am looking into new React shit
 
3:28 PM
there is new react shit?
gimme
 
Yesterday I realized I don't think I need React
 
<Poop />
 
user1596138
@Luggage Still trying to find it
 
No one NEEDS react.
 
I can't see what it gives me
 
user1596138
3:29 PM
@KendallFrey lol You Don't Need jQuery ReactJS
 
Yeah I need to render a UI, but react doesn't actually help me with that
 
it lets you simply describe your DOM from state, instead of figuring out what to change
 
user1596138
It helps you pass states
 
hello everyone I am trying to include the "JQUERY edge " library from jsfiddle.net to my code, but it doesn't work. I added this line to my header: <script src="http://code.jquery.com/jquery-git.js"></script>

This is the actual code: https://jsfiddle.net/lollero/u05oop24/

Could someone tell me what I am doing wrong or how to include the library correctly to my code? My JQUERY code isn't being exxecuted for some reason.
 
currently I can think of a few projects that react would totally help, and a few where it would be adding more work for no gain.
 
user1596138
3:30 PM
^
 
but I should really do those projects that react would help with
right now they are a cluge of jquery
 
right, it's not a silver bullet for all situations
just.. most.
 
user1596138
It depends. But yeah it's not claiming to be the catch-all-do-all JS framework
 
@Luggage But if I re-render it every time my model updates, what's the point of using a framework to do it?
 
because react CAN re-render smartly.. it just changes what needs to change
though this isn't fully automatic.. react can 're-render' too much sometimes
 
3:31 PM
So, it's nothing but performance?
 
user1596138
Also there's the separation of concerns
 
nothing can beat direct dom manipulation, but it ;ets you get close to that without thinking about that level.
 
@rlemon the plots thickens.. it reaches a part where I have jQuery( function($) {... but does not reach inside it. When invoking the click() through the console I defined jQuery first to be able to use it in the console.. I will check now if jQuery is defined, but I get no errors, and I'm 99% sure jQuery is run in no conflict mode..
 
user1596138
But you get that in a hundred other libraries the same way
 
@trilolil define "doesn't work"
 
user1596138
3:32 PM
Or if you just don't write spaghetti...
 
@Tazavoo is your function defined in a scope outside of your calling?
 
@Jhawins That might take some doing
 
i.e. you've wrapped your function defs, and use inline onclicks
 
I can't tell you anything that will make you say "ohh, i need react to solve that". But it's a good solution (along with many others) and I happen to like it's style.
 
I wrote a function the other day where half the lines were code, and half the lines were braces
 
user1596138
3:33 PM
lol
 
show us
 
inb4 shut up about your egyptian braces
 
user1596138
> Lint Error: Expected indentation of 1,246 spaces but found 1,248
 
@rlemon basically I have
<span onclick="foo(123)">
and
function foo(a) {
jQuery (function($) {...
 
wtf
 
3:33 PM
@Neoares you asked for it
	setEdges(i, e, a)
	{
		for (let x = 0; x < this.w; x++)
		{
			if (x in i.n)
			{
				this.edges.n[x].i = i.n[x];
			}
			else
			{
				delete this.edges.n[x].i;
			}
			if (x in i.s)
			{
				this.edges.s[x].i = i.s[x];
			}
			else
			{
				delete this.edges.s[x].i;
			}

			if (x in e.n)
			{
				this.edges.n[x].e = e.n[x];
			}
			else
			{
				delete this.edges.n[x].e;
			}
			if (x in e.s)
			{
				this.edges.s[x].e = e.s[x];
			}
			else
			{
				delete this.edges.s[x].e;
			}

			if (a !== null)
 
@Tazavoo don't use inline event handlers
they are problematic for a number of reasons
 
@rlemon when you have a look at the code on jsfiddle, you can see that when you hover on the image some JQUERY code is being executed (image gets more color). I copied that code from jsfddle to use it locally and now the jquery code isn't being executed anymore. I think it is because I am not including the "jquery edge" library correctly. Could someone tell me how to include it correcty?
 
but right now it looks like the function foo doesn't exist in the scope
 
I see a lot of unnecessary braces
and big spaces
 
no, keep the braces, jsut put one on the same line.
 
3:34 PM
@trilolil add the script BEFORE you add your own code
 
but yea, those are some deep indents
 
1 min ago, by Kendall Frey
inb4 shut up about your egyptian braces
 
Yea, I chose to ignore that 'inb4'.
 
@rlemon I belive I used jQuery( function($) {... so that I wouldn't have to type out jQuery in like.. 3 places..
 
user1596138
Of course the day I'm stuck googling/watching programming videos I forgot my headphones
 
3:35 PM
@Tazavoo unless running in no-Conflict mode that doesn't matter
also not what I was talking about
 
I plan to spend some time rewriting that bit for a bit more elegance
 
If by "before" you mean in the header. That's already done.

This is my local minimal code


<html>

<header>
<title>webGL test</title>
<link rel="stylesheet" href="CSS/mainCSS.css">
<script src="http://code.jquery.com/jquery-git.js"></script>
<script type="text/javascript" src="swap.js" ></script>

</header>
<body>
<img src="http://i.stack.imgur.com/wXXbT.png" alt="" usemap="#Map" />
<map name="Map" id="Map">
<area class="a1" alt="" title="" href="#" shape="poly" coords="92,294,13,293,8,287,13,98,89,98" />
 
Also, yay single-letter variable names
 
user1596138
@KendallFrey I liked this read, probably won't learn anything new tho hashnode.com/post/…
 
user1596138
It's not React specific reasons tho
 
3:36 PM
if oyu need something to watch: youtube.com/playlist?list=PLb6UbFXBdbCrvdXVgY_3jp5swtvW24fYv Kerbal Space Programming
 
user1596138
I'm gonna go to Best Buy and see if I can get some decent over-ear headphones
 
@trilolil your fiddle is set to onload
 
user1596138
Anyone got some recently? Around $100-150 max
 
does $(function...) still emulate document.ready?
 
No, i use cheap earbuds :(
 
3:37 PM
is what I meant
 
@Jhawins hyperx are good if you like to game too and need a good mic
 
user1596138
insert joke about @rlemon using lemons for headphones.. Or something
 
user1596138
@rlemon hope you can see the mood I'm in today lol. Didn't mean to start anything earlier :)
 
@Jhawins Looks like a problem that would be solved by doing the DOM update in one massive change all at once. Which is what I plan to do anyway.
 
it's all good. I get it
 
user1596138
3:38 PM
@bitten Nah I don't need a mic :P. Just want something with a good soundstage
 
user1596138
@KendallFrey FreyJS?
 
I think DOM performance is the least of my concerns, since my prototype takes about a second to run 3 lines of code 10 times
 
@KendallFrey react can batch updates, i think..
 
user1596138
@KendallFrey LOL
 
@Jhawins sennheiser have good soundstages, the hd558 is nice although it's made of plastic
 
3:40 PM
@Luggage I assumed it would, because of the requirement for render to return a single element
 
user1596138
@bitten Nice I had been looking them up last week. Will check out
 
But I can write my render code basically the same with or without react
@Jhawins I'm pretty sure it has something to do with spinning up a Worker each time :P
so 30 Workers
 
@Jhawins good luck!
 
tried it as follows: https://jsfiddle.net/bpqbcs6n/

But it didn't work
 
Damn that car was beautiful
 
3:43 PM
@rlemon Still works on jsfiddle, but not locally
 
@trilolil you've got a serious misunderstanding of scope in JS
 
ok
 
@SterlingArcher dat bumper?
 
@rlemon I removed the jQuery(function($)... and replaced $ with jQuery, and not it works on mobile! Thanks a lot for the guidance!
 
@rlemon I tried to apply what you said here...
 
3:45 PM
read my comments.
 
@rlemon thank you very much for your input! I now put those two lines at the bottom. But it still doesn't work. Could you confirm me this is the correct way to add a library. Or at least the correct one I am adding, that's the first time I lookup a library "manually"
I think the issue now lays in latter mentionned thing.
 
dude, unless the url is failing that is how you do it
so you're either not telling us an error message, or your code has more wrong than you are showing us
(assuming it works in one place and not the other)
 
@rlemon there is no error message. I just want to add the library to have "Jquery edge" work.
I just looked up "jquery edge" on google, found some github things and that link: code.jquery.com/jquery-git.js
 
<script src="http://code.jquery.com/jquery-git.js"></script>
 
Actually, this is a free coding site. I've written much code for people on this site. — nicomp 13 mins ago
hehehe
 
3:50 PM
if this doesn't "work" then you're fucking up how you use jQuery, not how you include it
kek
 
this is everything there is. I am not fucking anybody.
It doesn't work.
 
and I told you to get rid of the onload crap
 
ow my bad, looked over that. But that didn't solve the issue
I just have <body></body> now
 
no but it isn't necessary and looks bad.
and you can remove the jQuery ready
also not necessary
 
3:55 PM
Reminds me of the what-if about shining lasers at the moon
I fucking love xkcd's what-if
 
sauce?
 
@rlemon ok. where do you see the word jQuery "ready"? Do u think this might be an issue?
 
@BenjaminGruenbaum Node 4.
 
3:56 PM
No destructuring.
@Luggage Something that will do this: .map(([thing, another]) => ...)
But without destructuring, because as I said, no Node 6.
 
@trilolil do you know what $(function() { ... }); does?
 
> The reflected light from the Moon would be four thousand times brighter than the noonday sun. Moonlight would become bright enough to boil away Earth’s oceans in less than a year.
This is why if love what-if
the one about turning the sun into a laser was even better
 
Death Star
 
@rlemon Yes that's a shorter form of $(document).ready(function(){}); right? just removed it and didn't solve it.
 

« first day (2144 days earlier)      last day (2807 days later) »