Havvy: okay, I will give it.

 
Gentleman: Because loops are confusing and pollute scope

Britz: Okay, fair enough on the scope issue

Idol: Although with let that isn’t so much of a problem

Gentleman: Needing “let” is an indicator that you need smaller functions.

Flockhart: I’m not convinced, but I’ll agree to disagree 😛

Hacking: Let, afaik, is the only way to have a for loop with its own scope

Apruzzese: But i agree that var wasn’t really a problem unless you went through great lengths to make it one

Arcega: The main problem with var was with captures inside loops, which let avoids

Eblen: Let also sounds nicer than var. ;

Mayeux: Let sounds like math. homie don’t play that

Ogg: I’ll paste this here for opinions as well: Folks playing with Insomnia http://insomnia.rest/ yet? I’ve been using Postman but not as a power-user, wondering if there’s anything I’d be missing

Richlin: As a person who only programs in Python and is only here to ask web-related questions occasionally, let me just say that this conversation highlighted why I chose Python

Codispoti: I like python, but it ****s too

Granado: Hello, I have a table column td id=’userRole’ which contains a select id=’selectUserRole’. The table has several table rows and I don’t know how to fill the select for each row differently

Begonia: If they have IDs then just use that?

Hankey: Compengi: get a list of ids

Grasman: I’m doing this http://paste.ubuntu.com/12436967/ but it sets for all selects of all rows

Hankey: Compengi: that code doesn’t show any different data you could use for other rows

Flippin: Buu: it simply auto selects a role defined for a user, which is distinct for each user

Jarver: Compengi: what’s different between rows?

Giambattista: Each row is a different user

Sperle: Okay, so you need to find the corresponding user data for each row

Kennelty: Hey, is there any way to use a variable as a key when defining an object? ie. var foo = { varhere: ‘123’} — or must I create the obj first and then set foovarhere = ‘123’ no matter what?

Mailhiot: Deltab: tr is the row of a different user

Panduro: Compengi: you have a loop for each row but then *within each row* a loop over users and within that a loop over roles

Willms: Timwis, that’s valid syntax in es6, but unless you’re using babel to do es6-es5, you need to create the object first

Alcalde: Compengi: you shouldn’t be looping over every user when generating one row

Negron: Compengi: by the way, what do you expect var i = 1, tr to do?

Schnair: Oh, I think I misread that, sorry

Sehl: Compengi: so you need to look up the user for that row

Dipietrantoni: Deltab: this is my table’s body http://paste.ubuntu.com/12437036/

Weidler: Deltab: isn’t tr the user of that row?

Paton: I know, but when get it, can’t I just set the select values?

Kleppinger: You have some sort of data binding thing there; can’t you use that to do it for you?

Vollman: If you’re repeating an element per-user it can’t have a fixed id, because then you’d have multiple elements with the same id

Reckers: Deltab: yeah I’ve noticed that. I wish I could, but I’m not sure how to do that :/

Bobet: Compengi: read the docs again

Tackes: Deltab: yeah I’m looking :

Umstead: Hello. Is there any way to load an external page sending a custom HTTP Header in pure javascript?

Mcquigg: Jimeno: There’s https://developer.mozilla.org/en-US/docs/Web/API/GlobalFetch/fetch but I’m not sure if it’s possible to do so via XHR.

Kind: Saranzak: any other possible way? XHR was the only one I thought could work.

Monson: Https://stackoverflow.com/questions/1180048/is-it-possible-to-send-custom-headers-with-an-xhr-ajax-request

Woock: Havvy: okay, I will give it a try, thank you very much