« first day (1124 days earlier)      last day (3817 days later) » 

10:00 PM
I was right, Ghost does work out of the box
 
nice
 
but only if you configure it correctly. ;)
 
@rlemon That's literally the opposite of what you just claimed.
 
well i'm sorry I didn't look at config.js before running it
(it was trying to connect on example.com or something)
 
@SomeKittens you said it. I was about to freak out because this is definitely more than a 2 day project.
 
10:02 PM
the docs (almost) literally say:
download it
unpack it
run npm install --production
run npm start
voila! everything works!
anyways
 
$('img').on('error', function() {
    console.log('err');
    $(this).attr('src', 'https://s3.amazonaws.com/bointy/assets/bointy_logo_big.gif');
  });
Should log + change src when the original src 404's, correct?
@rlemon Just messing with you. Should get it running on rkoutnik.com
 
user1596138
Wow. This chick asked me to change something on a blogspot theme. I gave that one look, and I've already decided it's not worth it.
 
user1596138
Who designs these? These are absolutely disgusting!
 
afk, home time
 
Teehee, I'm female, fix my computer <- Gained immunity to that spell.
 
10:07 PM
I have another question from backwards JS land, full of terrifying beauty and awe. If you HAD to have a script tag inside the body, but you didn't want to run that script tag until the rest of the page had loaded (because your other script includes were at the bottom of the page), how could you tell your script to not run until the includes were ready? Is there something I can use that's built in, or should I consider creating my own solution?
 
user1596138
@SomeKittens Yeah this was basically the 2nd or 3rd time I've been asked and suspected it would land me some fun... But I don't even care.
 
@NathanJones window.onload = function() { /*yer kodz hyar */ }
 
user1596138
Haha
 
many wordpress templates are easy.
 
Sure, I'll step in and object.
 
10:09 PM
I guess I should rephrase that, I cant use that as a blanket statement because I suppose people do crazy things.
 
user1596138
Maybe they are. This blogspot one I was looking at is absolutely terrible. I mean, sure it looks like it's supposed to, but at what cost? If the designer of it has any sense of pride whatsoever, they'll never touch a computer again.
 
Please don't make assumptions that women don't understand computers, and please don't discuss only helping them for only sexual reasons. It makes the community quite unfriendly to women.
 
Ah, the handler's activating after the 404
 
@BrianCampbell while I agree with the sexual favors statement (if untrue), he never insinuated that women are computer illiterate.
Just this particular female apparently needed help with a template.
 
user1596138
^ That's right
 
10:12 PM
And we're not talking about females in general, just those that try to use sex appeal to get guys to do things for them.
 
@Loktar "Teehee, I'm female, fix my computer"
 
user1596138
Also, I wasn't saying I would only help for sex. I was saying that the template was soooooo bad that I wouldn't even be willing to do it for sex.
 
Two different people, both offensive.
 
Just because you're offended, doesn't mean you're right.
 
@BrianCampbell meh, I smell white knighting
 
10:12 PM
@BrianCampbell: there ARE girls like that. but nobody said everyone's like that.
 
user1596138
He had a valid point. Women try to buy our help with computers in exchange for flirting with us. Not all women, but some do, and in this case she does.
 
@BrianCampbell Quit perpetuating the stereotype that developers only talk about females in a sexual sense.
 
user1596138
@ThiefMaster I'm guessing my message was flagged... Or did you just decide to drop in for a visit?
 
I'm in here all the time
 
user1596138
Creepy
 
user1596138
10:14 PM
Lurking
 
user1596138
@SomeKittens That's a stereotype?? I thought the stereotype was that we're all slothy virgins?
 
@Jhawins @BrianCampbell is certainly perpetuating it with his generalizing assumptions.
 
@SomeKittens I am not making any stereotypes. I am pointing out that your comments were offensive. They are not appropriate for a professional forum.
 
user1596138
Professional?? Where?!
 
This is not a professional forum
 
10:15 PM
Hold on, lemme ask an actual female (and a feminist at that) about this.
 
It's an open forum
where they're allowed to say what they want, and you're allowed to respond how you want.
 
user1596138
What I was saying is this: I very much enjoy being with a woman. Very very much. But if I have to mess with this blogspot template to get that, I'd rather go on a date with Pamela hand-erson.
 
@BrianCampbell I don't think anyone thinks women don't understand computers...
 
user1596138
How's that for professional? :P
 
user1596138
10:17 PM
I'm heading home
 
I think the point is that @Jhawins just doesn't like blogspot.
 
@BrianCampbell I'd like to think we're far enough from that... especially given how some of the most fundamental research in the field has been done by women..
 
user1596138
@phenomnomnominal That's honestly all I was saying haha.
 
@BenjaminGruenbaum I would love to think that we're far from that, but I've seen plenty of evidence to the contrary.
 
That said, I completely get that statement from a welcoming PoV, it was in bad taste.
 
10:18 PM
@Jhawins I get that; I would just prefer if you didn't use sexually charged language while making that point.
 
Just checked with said actual woman, she's ok with it. She also called anyone who flirts for technical help a 'slutbag'.
 
@SomeKittens One "actual women" being OK with something means nothing in general.
 
user1596138
@BrianCampbell You might have a little bit of room to talk here to @SomeKittens, but even then you're reaching pretty far. I definitely didn't do anything wrong and I'm done with this.
 
@BrianCampbell I don't think anyone in their right mind would categorize women as bad, at least not anyone learned much about computing, there are plenty of other chauvinistic stereotypes like driving to choose from.
 
offense is taken, not given.
 
10:19 PM
Who says her view on it is worse than other women's opinions?
 
It's fine for you to say you're offended by it, and if so someone should apologize.
 
I am offended by it.
 
@BrianCampbell Her opinion's actually more weighty than yours here, given she's actually effected by said stereotypes and you're just a pedant.
 
For example, I know a few who would laugh about forking/dongle jokes and not get people kicked out of conferences / fired.
 
Just don't try to speak for all women
 
10:20 PM
Seriously, if @BrianCampbell is offended by it just apologize @Jhawins , it's not a big deal... you made a joke and someone got offended by mistake - there's no shame in apologizing.
 
Just because someone is offended doesnt mean anyone needs to apologize
 
@BrianCampbell I am sorry that you were offended, I'm sure it wasn't meant to be offensive.
 
I don't really need an apology; what I would rather is not to come into a forum and have the first thing I see be statements stereotyping women and sexual jokes.
 
user1596138
I am sorry for offending you. But I will retain the fact that I do not agree with you. Let us be friends?
 
@BrianCampbell part of coming into a community is accepting that communities have their own ways of doing things.
 
10:21 PM
Did I accidentally bring up twitter?
 
I will probably not come back to the JavaScript chat again, based on this interaction.
 
@BrianCampbell Well, if it makes you feel any better I can assure you no one here really thinks that of women.
Fair enough, you're welcome to come and leave as you please.
 
@BrianCampbell whether you do or not shows how strong you are.
 
user1596138
I don't know if I should feel bad or not. but now I do.
 
If you instantly come in and start saying "No, you're doing it wrong", you just end up starting conflicts. Especially based on one small thing. We're actually a group of pretty decent human beings :).
 
10:22 PM
@Jhawins no you shouldnt.
You didnt generalize women at all.
 
user1596138
Still, this wasn't anywhere near as bad I usually would've been?
 
The sexual joke could be considered distasteful sure, however making this some white knight crusade for women is pretty ridiculous tbh.
 
@Jhawins I don't think you should feel bad, your joke was in bad taste but I didn't find it offensive in general - that might be just because I know you.
 
No one is disregarding that women have been marginalised in our industry
 
10:23 PM
Pointing out something people do !== stereotyping. 'An African friend of mine and I went out to grab some KFC' is not racist.
 
But I make just as many jokes about fucking dudes as I do about fucking chicks. Equal opportunity.
 
... @SomeKittens all he said was a female asked him for help on a blogger template
 
I think jokes are exactly that: jokes. No matter about what. For example, I laugh about jokes if they are about "the evil germans" (I am german by the way) just as much as about a joke that's about e.g. black or french people or about hitler. Same thing for "funny" comments.
 
@BrianCampbell Just block the people you don't like and get on with it, it's what everyone has to do in this room
 
@Loktar More a comment on what I said (Some women flirt to get technical help)
 
10:24 PM
@phenomnomnominal There seem to be a lot of people here dismissing the marginalization in our industry.
 
@ThiefMaster Evil Germans? Germany never did anything bad to anyone, it's a nation of pacifists :P
 
@BrianCampbell when did we start that topic? Was that when @Jhawins somehow generalized all women?
 
When I point out two comments in a row that were in poor taste and are likely to further marginalize women in the industry, I get jumped on by several people for "white knighting", and others saying "well, no on really believes that".
 
@BrianCampbell I don't think so. Part of overcoming that marginalisation has to be a mutual acceptance of how the core community and the marginalised members behave.
 
@BrianCampbell I feel sad for you if that has been your experience, it has not been mine. ~50% of our company is female but that's just coincidental. We have a strict "we don't care about your gender/age/location/sex life/etc as long as you're fun to hang out with, work with and you do your job well"
If you're working in a place that has a marginalizing behavior - you might want to consider finding a better place to work. I'd hate to work in a discriminatory environment.
 
10:25 PM
@Loktar I have never said that anyone generalized all women. However, characterizations like "Teehee, I'm female, fix my computer" perpetuate stereotypes.
 
Lots of us are men. We have penises. We think about sex and about women.
 
But my point is he never said anything like that.
He said a girl.. needed help with a blogger template.
 
I think it just states that certain girls would act like that.
 
So because the gender was mentioned it was a stereotype?
You are the only one perpetuating the teehee Im a female stereotype here.
 
I think most of us have experienced something similar?
 
10:26 PM
@BrianCampbell How did I make that indicative of women in general?
 
@BrianCampbell Maybe, but "Some women abuse their sexuality to get help in other areas" does not imply anything about all women and nothing meaningful about women in general. He was talking about his own personal experience , not generalizing.
 
@phenomnomnominal Yes, and so do I. I don't talk about it in a forum about JavaScript, however. Doing so can make female developers (as well as male developers) uncomfortable.
 
Maybe not with an explicit 'teehee' but it's not exactly a rarity
 
@BenjaminGruenbaum unfortunately our industry makes it hard to have 50/50 men/women in our jobs.
 
0
Q: JavaScript Module Pattern with AJAX

wootscootinboogieI have an application which currently uses AJAX for CRUD operations on a simple Person object. The following script works fine, but I'm looking for some pointers on how to structure my code. Currently, I have four methods for CRUD operations, and I'll extend my person module as needed, but I wa...

 
10:27 PM
And actually I'm sure you can find quite a few like this in the right environment (cheerleaders or beauty contests or nightclubs)
 
@BrianCampbell well female's surely don't need males to protect them on a programming chat, Im pretty sure they can handle it themselves unless of course people hold the stereotype that females are weak.
 
@FlorianMargaine Honestly I would have been cool with 90% females or 10% females just a well... I just don't see why that should be an issue.
 
@BrianCampbell this may be a JavaScript chat room, but we don't only talk about JavaScript. We talk about lots of things, and there are a number of women who are in here all the time.
 
Females are physically weaker though, it's a fact.
 
Physically weak !== weak.
 
10:28 PM
@BenjaminGruenbaum just look at the number of females in CS courses...
 
@FlorianMargaine physics...
 
@BrianCampbell I'm not saying it doesn't exist though, one of our room regulars - @BadgerGirl went to a Microsoft convention and got offered pink stuff and fashion advice :P
 
Ah, didn't see the "on a programming chat" :p
 
@FlorianMargaine look at the numbers of Males in nursing programs.
@FlorianMargaine heh it was a ninja edit :p
 
That has more to do with what are perceived as appropriate things for girls vs boys to do from childhood.
 
10:30 PM
@phenomnomnominal exactly, however I choose not to believe there are huge barriers in place.
 
So, are we generalizing humans by 2 categories?
 
OK, I'm done here. I'm sorry I derailed the conversation. I merely meant to point out two statements which, together, were somewhat offensive and offputting; I did not intend to start a general conversation about sex and gender.
 
When I look at a github repo it is genderless.
the work speaks for itself.
 
user1596138
Well, @BrianCampbell wins, you got me suspended. And now your avatar has shrunk down to a tiny little speck in the user list. Sorry I offended you, please use the ignore button if you would no longer like to see my posts as I have done for you. This solves our problem.
 
Anyone can pick up a computer a book and learn to program.
 
10:30 PM
@Jhawins You got suspended for that?
 
@Loktar absolutely, and the world is becoming more and more like that. But it doesn't happen overnight unfortunately.
 
@BrianCampbell If you want to come back, try again in about 4 hours when the conversation dies off.
 
@BrianCampbell meh it's an interesting convo don't feel bad
 
@BrianCampbell Well, just so you know that the discussion is welcome and we always take criticism well - even if we don't say that.
 
@SomeKittens: people validated that flag.. shouldn't have misclicked "not sure" when it was alive
 
10:31 PM
The only point I really disagree with you on is that he was generalizing women. The joke was definitely in bad taste
 
user1596138
@SomeKittens Sort of? Yes, but now I'm not.
 
user1596138
Idk.
 
user1596138
Was it because of women, or because I used the word penis?
 
user1596138
This will definitely help me find out haha
 
People getting offended by jokes in bad taste on the internet? I did Nazi that coming.
 
10:32 PM
@Jhawins it was because you used the words..... blogger template. :P
 
HEY
 
It's true. The blogger template part was the most offensive part of your statement ;)
 
YOU all need to watch this
 
@SomeKittens nah Im not offended, just in general in a professional environment it would be considered in bad taste
 
user1596138
I don't have a problem with people being offended, that's fine. I just want to know which it was
 
10:32 PM
 
user1596138
And the tension rises again...
 
user1596138
Time to go home. Haha. Later @all
 
Just remember kids, the chat is google indexed!
 
!!Where did you go?
 
@Loktar so?
 
10:33 PM
Everytime I come back somebody is talking about being offended..
lol what the fuck guys
 
@connor.js heh just saying anything said here can be read by anyone, so sometimes its better to let some things be unsaid
 
@Jhawins Seriously, though, the implication that a woman asking you for help is offering sexual favors is what did it for me. Even if they're flirtatious, it does not imply that they are offering sexual favors.
 
@Loktar watch that video :)
 
tbh, I understood the joke like this: "even if you WERE offering sexual favors i wouldn't do it"
 
@connor.js I like how much booze is on display there
 
10:34 PM
@SomeKittens Yeah, he's a piss head
 
user1596138
@ThiefMaster yes that's what I meant.
 
'The highest reward you could offer me is not enough'
 
user1596138
Well not the highest, but a damn good one.
 
eval(room.tension);
 
What have I stepped into?
 
10:36 PM
@connor.js compiler explodes
 
@SomeKittens Stackoverflow
 
Unhandled emotional strain exception.
 
user1596138
Yeah this is how my thought process went... "I'm suspended?! Wtf..." "Ok... I can't even tell them I'm suspended......" messages @somekittens on facebook because I have no one else to bitch to "Wait that won't help.."
 
@Jhawins flagged
 
user1596138
So I just stared at my monitor angrily waiting...
 
10:37 PM
lol
 
@BenjaminGruenbaum Yeah. That was fun.
 
user1596138
He was my only lifeline to the world of SO.
 
user1596138
Alright, going home for real!
 
honestly this wasn't even as bad as political/religious convos we've had
see ya @Jhawins
 
OH NOES A WOMAN, WHATEVER SHALL WE DO WHILST OUR GENDER STEREOTYPES ARE CHALLENGED!??!
 
10:38 PM
0
A: Implementing prototype method

Benjamin GruenbaumYou'll overwrite you the default implementation. Any code that uses it will use yours instead. There was a proposal for scoped extension methods and it was rejected because it was too expensive computationally to do. There is talk about a new proposal (protocols) to address the issue. However,...

Controversy ensues!
 
@Jhawins \o/ I'm special!
 
@SomeKittens Gentlemen's clubs
 
Never heard of prollyfilling
is that slang for probably will never be used?
 
@Loktar You prolly have
 
@Loktar No, that'd be if you implement .contains now.
On string.
Or .reverse
Or .replace on an array for example.
 
10:39 PM
ah so reverse polyfill to do what you want it to do instead of what its meant to?
 
No, you guess what it's meant to and fix that if the actual implementation ends up going to break it when the spec comes out.\
 
@BenjaminGruenbaum wtf, is that javascript?
 
ah ok
 
Also, someone ate my sandwich.
and by someone, I mean 'Me at 11PM last night'
 
10:41 PM
@BenjaminGruenbaum
> You'll overwrite you the default implementation.
that doesn't make sence
> You'll overwrite the default implementation. ***
 
@BenjaminGruenbaum Isn't the preferred approach to doing this testing for the method before assigning it?
 
@monners People hate it but somehow every successful extension to the language is the result of this in one way or another.
I wouldn't use it in a library but it's perfectly fine.
I used to dislike the idea but I like it now.
 
for some reason, I have window.item = {}; at the top of my javascript file and I don't know why...
 
I learnt it from Crockford's book, but I think he always tests whether the method exists before implementing it, kinda like shimming for older EMCAscript versions
 
@monners one sec
 
Oh balls my boss says I'll be learning Java soon
*re-learning
 
That's risky, it's useful for pollyfilling in retrospect to get native implementations when available. If you do that to a new method and you get different behavior in different browsers that might be really risky. — Benjamin Gruenbaum 23 secs ago
@RUJordan Scala
 
Scalawhat?
 
10:45 PM
Or Clojure, that looks like fun and I promised @FlorianMargaine I'd learn LISP this summer (which ended 2 months ago).
@RUJordan Java replacement that runs on the JVM and interacts nicely with existing Java code. Works like a charm.
 
Ok, actual JS question: I want to capture 404's on images and replace them. Problem is, the 404 is happening before I'm able to capture the error event. Halp?
Also tried delegating it: $(document).on('error', 'img', function() {
that didn't work either
 
I'm not sure that's an option. The only reason I'm going to learn is because Coldfusion I believe is built on Java, and sometimes you have to interface with the native Java parts.
 
@SomeKittens Put blanks as the image source, replace them to real images with code
 
@SomeKittens How about attempting to preload the image data and test for the success prior to inserting into the page?
 
omg sticky notes everywhere on my desk.
 
10:49 PM
and good movies?
 
So much work done today <3
 
Test image size?
 
@SomeKittens What @BenjaminGruenbaum said
 
Long-term I want to just use a front-end framework to do the heavy lifting for me, but that's not going to help me right now.
 
!!google "recursive dolphins"
 
10:50 PM
@SomeKittens Put the real src in a data attribute, go through the images and replace that with the real attribute when you add the handler.
 
Awww, Cap6 still on sebatical?
 
What's the difference between binding 'onkeypress' and 'keypress'?
 
@NathanJones A what now?
 
@NathanJones depends, onkeypress would be for old IE
IE Can't speak proper Javascript so you gotta like use sign language
IE Can't speak proper Javascript so you gotta like use sign language
 
> even though your using google chrome.... lets blames IE
lol people really hate IE
 
10:54 PM
Thanks for the advice @all but none of it really helps for the current state of the app (no code quality control whatsoever, backend business logic right in the HTML, etc)
 
@RUJordan Yes, let's blame IE.... still don't get your point...
 
@SomeKittens That. Sucks.
 
Someone should write a tool that works out the minimum Modernizr queries that you need?
 
@connor.js irrelevant to your onkeypress thing, sorry.
 
!!afk food
 
10:55 PM
ok, well
 
Like is i'm checking for WebGL, I can assume that I have canvas and I have RAF etc etc
 
@SomeKittens You know, all apps have that sort of shit in one form or the other. The only people with clean apps with perfect code are the ones who never built anything real for production. We theorize here about good clean code but life is filled with dirty hacks to strange IE bugs, libraries that become irrelevant after a year and changing specs.
 
Any problems you ever get, just blame IE
ok, well
 
@BenjaminGruenbaum No! Let me be a dreamer!
 
@BenjaminGruenbaum I know. I've worked with all sorts.
 
10:56 PM
That's why I like testing so much - it lets me refactor
 
@SomeKittens I feel your pain. I deal with SQL code in my html all the time.
@SomeKittens And next to no documentation for any of it.
 
@SomeKittens I'm just saying "don't beat yourself over it" :)
 
@BenjaminGruenbaum all I pictured was @SomeKittens being used to beat a computer
 
The reason I ask about the events is that I have one page that works fine when I bind to 'onkeypress' and the other only seems to work with 'keypress'.
 
ok, well
 
10:58 PM
Does it matter if I'm binding to an object that has been selected by name attribute? For example, with the code $('[name="attrName"]');
and then .bind('onkeypress', function() {...});
 
Wasn't bind replaced by on or is this a legacy version?
And what's the raw JS way to grab an element by attribute?
 
Yeah its depreciated.
 
@RUJordan oh I see. Rereading the docs for bind, I see that on is the preferred method now. It doesn't say it's strictly deprecated, but it's the "preferred method".
 
Would you do querySelectorAll("[name='derp']") or is the syntax different?
 
That's what I get for taking legacy code on its word.
@RUJordan So I should do $('input[name="attr"]') instead?
 
11:02 PM
@NathanJones don't worry, I had to update a script from .click => .live. *Update. UPDATE. I almost cried.
@NathanJones no no that's just my curious ramblings.
 
I don't think I was even programming JavaScript when .click was a thing to use
 
You can still use .click, but if (as far as I know) the element is dynamically created, you need to delegate the event to it
 
@NathanJones Why are you selecting by name in the first place?
 
@BenjaminGruenbaum I'm working on a legacy proprietary system that I can't directly modify.
 
.live() and .delegate() are also not recommended / depreciated iirc?
 
11:06 PM
So I have to inject scripts into the DOM and use .insert() and .replaceWith() all over the place.
I should say, inject scripts into the BODY of the DOM.
 
@NathanJones I started working on code to fix that for a few hours. Just to see if it's viable.
 
@BenjaminGruenbaum sorry, to fix what?
 
@NathanJones the reversed order of binding. You have tables and things you want to make JS objects off and possibly do cool things like data binding.
It lasted a few ambitious hours, at the end of the day I figured the crowd it'd help would be the crowd not being in that scenario in the first place github.com/benjamingr/TakebackJS
Worthless piece of code right now. See if it helps you. It even contains that dirty dirty function construction optimization (and lacks a lot of other more important ones :P)
(Just because I wanted to see if it's faster)
 
@BenjaminGruenbaum I don't know how .bind() works that well, so much of what you said I don't understand. But I'll take a look at the code tonight when I get some time.
Anyone heard of the student information system called PowerSchool? That's what I'm working with, if anyone's curious.
 
m59
Too pro
0
Q: How to assign array into an object?

FlyingCatI am trying to assign value to a object property through loops. I have something like var data = ['item1' => 'aa', 'item2' => 'bb', 'item3' => 'cc' ..more]; var elements: [ { type : 'html', html : 'adding html' }, ...

I don't know if some people can be helped.
 
11:13 PM
!!stat 401147
 
I can name somebody who can't be helped
 
@m59 I think using .map() before he understands loops would just confuse him.
 
@m59 400 questions, 5 answers, surprise surprise
@rlemon where's caprica?
 
@BenjaminGruenbaum I can't even think of 400 questions to ask.
I mean by the time I had wrote the question, I could have googled and found out :D
 
@BenjaminGruenbaum well she should be running and was when I left work
 
m59
11:16 PM
I think overall I've improved more by posting answers than posting questions.
 
but apparently she is not
just wonderful
(rlemon is having a really bad day)
 
@rlemon please have a beer when you get home. I think you deserve one.
 
@rlemon I don't blame you man.. you've been arguing with people for like 2 days straight.
 
I am home
beer is in hand
 
m59
My learning hierarchy:

SO chat > google > answer SO questions > post SO questions
 
11:17 PM
@RUJordan also got into a pretty bad argument with my family today
tl;dr I don't think i'll be speaking to them for a while
 
m59
Of course, I google first, but I don't understand half of what I read until I talk about it.
 
@rlemon sorry to hear that. Are you alright?
 
@BenjaminGruenbaum I won't. In six months this codebase should be purring like me.
 
well yea, I mean i'm pissed and in a horrible mood but overall I am pretty hard to get distressed
 
The encouragement's absolutely welcome. Thanks!
 
11:19 PM
Haha
 
Well you relax Bro Nameth, you need it
 
my money clip also broke today
I hate loose bills
 
I'm off guys, work is over. I'll be on later
!!afk chasin trains
 
see ya man
 
11:20 PM
-1 This answer is incorrect. A* search will not always return the optimal result - the heuristic has to be consistent (that is, hold the triangle equality heuristic(current,Goal) <= cost(current,someOtherNode) + heuristic(thatNode,Goal). However like the other answer points out in this specific case Admissability is enough. — Benjamin Gruenbaum 29 secs ago
:/
 
@RUJordan What'll you do if you catch one?
 
now I want to watch Chasing Amy
 
How could that get upvotes and accept? It's very clearly wrong.
 
m59
lol formatting
-1
Q: making multiple HTTP GET requests with javascript

Matthew KnudsenI am attempting to make multiple http get requests in js. but I'm a total noob. I would not be opposed to jquery either. The idea is I make a call to my server so i can populate a js chart. <script type="text/javascript"> var client; function handler() { if(client.readyState == 4 && client.statu...

 
That Fuc*ing Treehouse advert!
 
11:20 PM
@m59 That first // wipes everything else out.
 
m59
larlz
 
@SomeKittens Too much cute.
 
"Help someone when they're in trouble and they'll remember you when they're in trouble again"
 
Step #1 is use jQuery (or whatever library you prefer that provides a nice XHR interface, preferably with Promises). The using the standard XHR support and .. wow, hmm. Automatic support for multiple XHR request! The primary issue with this code is that it uses the same variables which will just fail for multiple requests as they become clobbered: closures and objects avoid this issue but .. just use an existing library and be done with it. — user2864740 2 mins ago
I fucking hate these responses
"I want to learn how to do a proper request"
"use jQuery"
 
11:23 PM
@rlemon I think jQuery has a method for avoiding those questions
 
-1
A: making multiple HTTP GET requests with javascript

user2864740The primary issue with this code is that it uses the same variables (e.g. client) which will just fail for multiple requests as they become clobbered. Closures and objects avoid this issue but .. just use jQuery (or whatever library you prefer that provides a nice XHR interface, preferably with ...

-1
 
yay! someone else voted the same as me
:feels loved:
 
you -1 that answer
also the answerer doesn't think your post helps
 
This a) doesn't answer the question and b) suggests using an 80KB library with thousands of lines of code that's focused on DOM manipulation for simple AJAX. The problem with the code above is that OP doesn't know how concurrency works in JS yet so he's having trouble returning from an AJAX call. — Benjamin Gruenbaum 32 secs ago
 
11:27 PM
iirc it is 90k
just sayin'
he argues more then deletes answer
I like his style
 
@rlemon SPOILER ALERT
 
lol so I was going through old entries on my blog, this one cracks me up
had no idea at the time how popular Minecraft would turn out to be
 
11:53 PM
@Loktar sooo with two IP addresses I can apparently tell apache to just ignore one and have node us it.
So no proxy
 
Nice
Any reason for Apache > nginx?
 
lol the worst reason.
"It was pre installed"
god the people below me do nothing but scream at their children.
It is fucking annoying.
 
The people next to me are amazing cooks, so I catch a wiff of fantastic food whenever I return with my lame fast food.
 
Yea the people below me are not. Lots of potugese food cooked wrong
 

« first day (1124 days earlier)      last day (3817 days later) »