Diamonds: what do you mean,.

Boken: Impaloo: nah. That function asks for an object. which is totally unclear, because almost everything is an object

Birdine: But wait, there’s more!

Roshia: I can’t find any discussion about named parameter proposals though

Boken: Impaloo: like, if I have to p*** an object, what’s the point of having a cl*** in es6?

Defusco: What’s the way you put numbers in a string in JS? Python it’s “something something {}”.formatthing

Kalkman: You can just concat them with plus

Failla: Http:// app.getstr, fn defines an app route.

Defusco: Kalkman: ah right, cool I’ll try that

Stoudenmire: Express is fantastic stuff after coming from PHP frameworks

Chadderton: But app.getstr gets a configuration setting!

Fenix: App.get: lookup config setting or maybe set a route handler :

Boken: So, cl*** Student { constructorname, age, sex, cl***es, professors, isMinority, isVegetarian, eatsFoobar {}. /wrists

Hoefel: Gillice: yeah I like it p well

Boken: And now you have to remember the param order FOREVER!

Groden: Diamonds: I was fearing the worst trying to get a variable from the URL. nope! app.get’/yourpage/:yourvar’

Fratto: Boken: ABA: Always Be Abstracting. just add more abstraction layers so you don’t have to remember arg order :

Boken: You still have to know it.

Zaccagnino: And the query string is neatly there as well

Boken: Diamonds: how would you abstract that?

Boken: You can’t abstract models. You can break them into pieces, not abstract them, you’ll have to know every detail when you create a new model.

Smiling: I’m wondering what the best way would be to make a look-up table if I have fuzzy keys :/

Dan: Boken: I’m sort of joking. some frameworks add a million abstraction layers “so you can change the underlying cl*** w/o having to update all your code”

Wiechman: Hey guys i wonder if someone could tell me how to do this

Chauca: Https://

Banbury: Gillice: that .get would look up a config var named /yourpage/:yourvar yes?

Boken: I profoundly dislike how badly js works with tooling because it’s type system ****s.

Goosen: Manners13: what’s your goal?

Cravens: But i need the data from the text area to be posted to the contactlog.php script

Valdiviezo: Im new to javascript and ajax so please be gentle

Lavorini: Manners13, you need to send the value in the send

Riddle: Yes but how lol with get it was this.value then +str

Shoyer: Xmlhttp.send”contactlog=” + encodeURIComponentarguments0;

Bodell: But how do i do it with post when i have to declare what to send before the textarea input

Rodrigeuz: Manners13: tbh don’t even bother learn to write XHR requests by hand unless you have some good reason to. there are a zillion good AJAX libs to make this easier & fetch api will replace XHR in the future anyway

Seigle: Also, you have xmlhttp and contactlogpost variable in your code

Mate: Manners13: visionmedia/superagent ยท GitHub

Fagnan: Diamonds: hmm, I was aiming at sending parameters with the URL

Boken: So you have to write stuff like this?

Cleath: Manners13, you can’t use both variable name

Reefer: Gillice: you’d need a handler fn as final arg there

Voros: Gillice: with just .getstr it looks up config

Wead: Diamonds: app.get’/hello/:what’, functionreq, res { console.logreq.params.what; } would tell you what you were greeting in your URL for whatever obscure greeting because this is not how you should be doing hello worlds

Zysett: Diamonds: what do you mean, look up config?