« first day (1748 days earlier)      last day (3207 days later) » 

1:00 PM
if you're just like "this may not work for unknown reasons" then you're never going to finish
trial and error
we must go through that process
 
But what you have is a bunch of functions and something that vaguely resembles a class. There is no logic actuall activity
So 'no', it won't do what your want or anything at al.
 
except zirak, zirak's perfect
 
im not against trial and error, but i got very little expierence about trees thats why i wanted to verify it first :)
ut oh well
but*
 
Break the problem down and tackle each part with real code.
veryify what? you have no code that does anything, jstu functions named like they might.
 
how hard can this be? You have associations between elements, and the associations have associations between themselves. Done. Just think about it that way
it's technically a tree, but you don't have to get stuck with thinking about how you may think of a tree
 
1:02 PM
Step 1. What is your input?
 
step 1 would be a list of users that should be added at the end of the tree
 
the original contestants?
 
list of pairs*
yes each pair is a match
 
geh - I feel nicks pain
 
and they go to the next node if the win
 
1:03 PM
with people pinging other bens with just ben
 
@Ben :P
 
lol
 
it was an accident, i usually ping with full names.
 
._.
 
> pull names
 
1:04 PM
not just you, happens all the time now
 
I'M SORRY!
 
weird name
 
says awal
 
So, your input is all contestants already matched to the first opponent, and you continue from there to do what?
 
s/w/n/
 
1:05 PM
@AwalGarg (jk man, I love you)
 
in my native language, "awal" means "at the top" btw :P
 
You're a top?
 
@AwalGarg if you're at the top, then are we all top-less? 0.o
except you, of course XD
 
from there they should advance to the next node if they win, until they reach the finals(centre node)
 
You both fail the turing test.
 
1:07 PM
@AwalGarg I'll let you urban it :>
 
urban what? "top"?
 
@AwalGarg we are the turing test
 
But what is your role in all this? draw the bracket? take the winner and return the next pairs?, what?
 
@AwalGarg yes
 
!!urban top
 
1:07 PM
@AwalGarg [tops](http://tops.urbanup.com/457403) Aussie, Irish, Scottish, English slang

Fantastic. Wonderful.
 
Next one.
 
that buuuurns
 
blushes
 
to put it in a list to show the matches
that is the role of the app im making
 
@BenFortune [tops](http://tops.urbanup.com/457403) Aussie, Irish, Scottish, English slang

Fantastic. Wonderful.
@BenFortune [T.O.P](http://top.urbanup.com/5834527) T.O.P (pronounced "taph" or "tee oh pee"), real name Choi Seung Hyun, is a korean rapper in a boy band Big Bang. known for:
- noona-killer since 1987
- voice of unf
- visual impregnating abilities
- being a pure boy
- choomTOP

See also: [\[choomTOP\]](http://urbandictionary.com/define.php?term=choomTOP), [\[BAMF\]](http://urbandictionary.com/define.php?term=BAMF) and [\[you are now pregnant\]](http://(snip)
 
1:08 PM
so you are drawing a bracket, then, rendering it to the screen somehow?
 
> by dicklicker
lol
 
nope, i wont do any drawing as of yet
maybe in the future, but now its only a list
player1 vs player 2
 
@BenFortune that's ok. I will say something good about you too. Wait for it... wait for it.
 
:( fuck you babel repl and not having loop protection
while( foo.length ) {

} // aaaand now I'm in an endless loop because I didn't get a chance to write the break condition.
fuck
 
1:10 PM
@BenFortune lol
 
ok.. so.. then your next input is a winner and you pick the next pair and return that? [ contestant123, contestant432 ]?
 
yes
 
It doesn't make sense to me that you already start with PAIRs but then that's the code you are writing,, pairing
it would make more sense to me to srt with a list of all contestants and you return pairs
 
thank god for the url encoded code
phew
thought I lost it all
 
@rlemon Stop coding in your browser, asshat
 
1:12 PM
@rlemon what are making?
 
@Zirak lick my big toe
 
Get an editor you enjoy using
 
@towc @cc2k's project in es6
 
you mean player1 vs player 2, player3 vs player4 ? and then player 1 vs player 4 ?
es6?
 
that's not es6, it's not JS at all
 
1:12 PM
@rlemon In...in public?
 
12 mins ago, by towc
except zirak, zirak's perfect
 
Are you sure we're ready to...announce?
 
I take back everything
 
no its java(android)
 
@Zirak It's not that much harder than an elbow
 
1:13 PM
@rlemon I always uncheck the evaluate option until I'm done writing it completely.
 
smart idea
I just got off my ass and opened ST
 
You're all weirdos. Get decent editors.
 
@Zirak Says the guy that licks elbows
 
Get Visual Studio Code! #1 JavaScript editor!
 
@Zirak you have less chances to complain, we don't want that :(
 
1:14 PM
i'm using 4 editors at the moment, thanks.
 
Concur with @Zirak. ST has an inline babel transpile plugin that I use now.
And node-babel
 
vscode isn't one of them, but it could be..
 
I'd really like to use WebStorm, just waiting to possibly win js13k to get it for free
 
@KendallFrey Says the guy who now pays people to lick his elbow
 
What does that run for these days?
 
1:15 PM
I have a condition, ok
3
 
@Luggage WebStorm? Got mine for £40
 
No, elbow licking.
 
js13k? js for 13 yos?
 
lmao
 
@AwalGarg yup
 
1:15 PM
@KendallFrey if (true) { beStupid(); } ?
 
@towc aren't you 15? o.O
 
That's not a condition
 
@AwalGarg shh, they don't know
 
@AwalGarg He looks 11, so it averages out to 13.
 
@KendallFrey Look closer
 
1:16 PM
ahh, makes sense. It is JS after all.
 
@Kippie your avatar is from the 1800s, how about that? :P
 
@towc I requested an avatar like 2 years ago with MikeDidThis, but then he vanished into thin air
 
@Zirak I'm not that nearsighted
 
@Kippie how about a photo?
 
windows 10 is acting weird right now :(
 
user3119231
1:17 PM
I want to set focus on input field. how I do this? I mean .focus(); does not work
 
@towc What's that?
 
user3119231
in event onmousedown
 
@Kippie cmon, there were photos in the 1800s, I think
don't act like you're older than 200 years, you're only 190, we know
 
@towc Yeah, maybe if you were a king or some kind of arch-bishop
 
it's me or Cortana doesn't work with UK english?
 
1:18 PM
@Neoares or your accent is horrible
(like mine)
 
no no, the point is that if you set up your PC with UK english, she doesn't work at all
 
user3119231
document.onmousedown = function(event){
if (isEnabled == true && event.button == 0){
	input.style.visibility = "visible";
	input.focus();
	}}
 
@towc "cmon" sounds like a hoggy native windows service.
 
user3119231
this simple fuck doesnt not focus
 
same with latin spanish
 
1:19 PM
so it always focuses?
 
dubble negative maurize
 
o_O for some reason Windows 10 decided that my administrator account is not an administrator account
 
add one more negative to make it correct
 
u wot m8?
 
@Maurize input.style.setProperty( 'visibility', 'visible' ) perhaps?
 
1:20 PM
the reported symptom is not focusing, not staying invisible
also that's wrong.
 
@Maurize Lemme guess, the click itself takes the focus. Try to preventDefault
 
user3119231
@Zirak this could be true.
 
el.style.whatever = something never worked for me :(
 
user3119231
@Zirak but how should I use this. I mean I can't check if click was the input
 
@Maurize Sure you can, you have evt.target
 
1:23 PM
@Zirak seeings how you wanna bust my balls this morning es6fiddle.net/icq8eriu
you can help
 
which is unreliable
 
Why do you suddenly hate function declarations
 
because you touch yourself at night
2
 
Well yeah, but that hasn't change for the last 83 years
And no, if you mess with mutations, you have to be careful. In this case, being careful is the condition.
 
I was hoping for some unknown to me es6 magic
 
1:25 PM
@rlemon is a space between = and > allowed in arrow functions?
 
I hate if statements
they are so 1990
 
user3119231
document.onmousedown = function(event){
if (isEnabled == true && event.button == 0){
	input.style.visibility = "visible";
	if (event.target != input){
		preventDefault();
	}
		input.focus();
	}
	cursorX = event.pageX - (input.offsetWidth / 2);
	cursorY = event.pageY - (input.offsetHeight / 2);
}
 
@AwalGarg babel bitches, other compilers do not
 
user3119231
nope
 
@rlemon I mean according to the lexical grammar
 
1:26 PM
@rlemon You can switch between a and b if the duplication bothers you
 
It seems to be a single token in the spec
 
no clue, I correct it before I finish. it is just habit atm
 
You wn tto prevent default when you focus to prevent the clicked element from automatically focusing itself (if that is the problem)
 
so I expect spaces == no no
 
ohh, you are.. the formatting threw me off
 
1:26 PM
@Zirak good idea
 
user3119231
lol forgot evet.
 
I knew you were the right person to ask
 
ok, yea, you are only preventing default when it's NOT the item you wan to focus. that's backwards
 
there needs to be a swap operator
a <swap> b
 
1:28 PM
flip
 
the need to introduce a third 'holding' variable is annoying
 
use destructuring
[a,b]=[b,a] I think
 
dammit
 
depending on the language you need to use a third variable
 
yup
 
1:29 PM
I need to not code before 10am
 
so you create an extra array instead of a variable. It's just not named.
 
is it "he told me to not..", or "he told me not to"?
 
@rlemon This is destructuring 101
 
my english teacher says it's the latter but I see the former all over the internet
 
javascript is not one of these languages
 
1:30 PM
@Zirak I AM STILL TIRED
 
btw PHP had this for years... runs
 
@catgocat I use both depending in the inflection
 
@Luggage can you give me an example?
 
@catgocat Well, if it's on the internet...
 
if I want to emphasize the NOT part: "He told me to not rob any more banks", or if I wan to emphasize the action "he told me not to get too close to the edge"
your english teacher may be technically right, I don't know, but as an avid english speaker I see nothing wrong with either
 
1:32 PM
Don't hurt me, is there any way to do this with one method and without the massive duplication.
	escape(string) {
		string = string.replace(/\\/g, "\\\\");   // Backslash
		string = string.replace(/\//g, "\\/");    // Slash
		string = string.replace(/\|/g, "\\p");    // Pipe
		string = string.replace(/\n/g, "\\n");    // Newline
		string = string.replace(/\r/g, "\\r");    // Carriage Return
		string = string.replace(/\t/g, "\\t");    // Tab
		string = string.replace(/\v/g, "\\v");    // Vertical Tab
		string = string.replace(/\f/g, "\\f");    // Formfeed
		string = string.replace(/ /g,  "\\s");    // Whitespace
 
...
 
One method? No. Without duplication? Of course
 
English has lots of rules that aren't followed in speech or even literature.
 
@Zirak string.replace(fn)?
 
user3119231
is it possible to write something in a .txt file?
 
1:33 PM
Hmm... what is the proper way to emit an event?
 
user3119231
I simply need to insert a stirng
 
one large regex, a look up table, and a function.
 
@BenFortune Yes, that's part of it
 
@Luggage I see! It makes sense that way
thanks
 
@AwalGarg Would a lookup table work with the regex's though?
 
@BenFortune es6 map to the rescue! otherwise you can always toString a regex, and get it back with RegExp
 
@AwalGarg There's no need for a lookup table, he's trading a constant with concatenating two constants
 
@catgocat I'm no english teacher and my rules are about what's 'normal' not always what is technically correct, so..
 
Error 404 occured, I will call the maid (@Zirak)
 
do what your teacher wants but knwo that that one isn't really a concern in the real world
 
1:35 PM
@Zirak Seen that, there's no implementation yet though is there?
 
Well, aidige-dee
@BenFortune Look closer at the files in that repo
 
Ah yeah
 
@catgocat you already have better english writing skills than your average college educated american.
 
!!lol
 
@user3783598 That didn't make much sense. Use the !!/help command to learn more.
 
1:37 PM
@AwalGarg Tried that before, always got stuck on stuff like \\\\` to \\\\\\\\`, then reversing it
Fuck it, I'll leave it broken to stop pinging you
 
Woohoo, windows 10 installed
Windows set my locale to France
._.
 
is w10 any good?
guess not
:P
 
w10 seems like a faster w8.1
 
most beautiful
best
 
@JoshLeBlanc It is
 
1:38 PM
and windows 8 is already pretty fast
 
@Zirak damn right
 
The jump from 7 to 10 was amazing
 
have using w 8.*
havent*
been
argh
 
Edge is also really friggin fast. No addons or adblock though so eh
 
.man, I am pissed I haven't gotten my Windows 10 upgrade yet
 
1:39 PM
@JoshLeBlanc I still feel like I'm in internet explorer
 
so im on w7, it would be good to get w10?
 
A fast internet explorer that doesn't use 1.5gb of ram!
 
edge drops all the quirksmode shit, right?
 
@BenFortune whut
 
1:40 PM
@catgocat An option in Edge :D
 
Why are all of my programs in windows.old
 
because you selected install new copy
or fresh install
instead of "upgrade"
 
I definitely picked upgrade
 
because you are french :-P
 
edge vs chrome?
 
1:40 PM
I only have a select few in windows.old, they're mostly Windows programs though
 
> Enter your license key below
Oh god
 
edge more like ie 12
 
Guesses on what email I bought ST with?
 
@catgocat 3edgy5me
 
internet explorer is still available in windows 10
and pre-installed as well
 
1:41 PM
everybody knows 5 x 3 = 12
 
they likely need it to suport old broken web pages
 
@Luggage and for devs to test shit
 
why, microsoft
 
rekt
Y U no edge
 
1:42 PM
I still ike being able to right click and inspect element
 
^ me too
 
> Thanks for purchasing
You're welcome, Sublime Text <3
 
so Sublime text 2?
:p
 
I bought ST2, but the license worked in ST3
 
@Loktar That took me a few seconds to get
 
1:44 PM
It was so long ago
 
it does ^^ I love that company. I need to build them a plugin to run grunt tasks at some point
 
because I'm totally going to read this
 
@towc I would
 
99% don't read it.
 
@towc It is quite funny. They say somewhere "do not slap pandas".
 
When I installed my antivirus, it said "Please read" in the license terms
 
> We will access, disclose and preserve personal data, including your content (such as the content of your emails, other private communications or files in private folders), when we have a good faith belief that doing so is necessary to protect our customers or enforce the terms governing the use of the services.
 
I love the error sound in W10
I feel like I've reached my floor in an elevator
 
@JoshLeBlanc I disabled windows sounds
 
1:47 PM
@BenFortune as long as they don't publish it I am completely fine with that
 
too much noise
 
mmmm. why don't I see the margin-top here ? jsbin.com/qigopa/1/edit?html,output
 
in fact, it's not like I have anything personal
 
@BenFortune So, every license agreement since 2013?
 
1:47 PM
> Disclose
 
I'd be quite happy to share all of my emails with everyone, it's just that no one really cares either way
BenFortune what does that mean?
 
> make (secret or new information) known.
 
in any case, if someone's going to look into those files, there are much more important people than me to check out
:P
really, I don't really care
I kind of hate that wifi sharing thing tho
 
@rle
 
@Zirak I don't get how that works, never seen '\\$&' before.
 
1:51 PM
it means matched character with \\
 
@rlemon thx, but its not es6 what i use, but will lok into it maybe i can get something out of it :)
 
@AwalGarg In the second argument for replace?
 
!!s/matched/stuff $&/
 
@AwalGarg it means stuff matched character with \\ (source)
 
@BenFortune yes ^
 
1:52 PM
Ah
 
> QA Engineer walks into a bar. Orders a beer. Orders 0 beers. Orders 999999999 beers. Orders a lizard. Orders -1 beers. Orders a sfdeljknesv. ~Bill Sempf
this is so good
 
@OctavianDamiean your mom is so good
2
 
@OctavianDamiean not sure I get it
 
@OctavianDamiean Orders a Robert'); DROP TABLE Students;--
3
 
QA = question/answer?
 
1:53 PM
> 'git' n’est pas reconnu en tant que commande interne
ou externe, un programme exécutable ou un fichier de commandes.
 
It's missing "jumps in the swimming pool" though
 
Ugggh, I'm going to need to reinstall all of my shit
 
@towc quality assurance
 
@towc QA is quality assurance. and they test your stuff with random shit.
 
@GNi33 oooooh!
 
1:54 PM
now it makes sense, right? :D
 
@cc2k yea, I know. I'm not here to write your code. That should give you an idea how it could be done tho
 
@AwalGarg not necessarily random shit
 
yuuup!
 
ty:)
 
@cc2k unless you want to pay him
 
1:55 PM
:P
 
@BenFortune yep, that one would have been good
 
@FlorianMargaine SQL Injection tests are not really random shit, no... but are those done by QA? Don't think so
 
http://chat.stackoverflow.com/transcript/message/24775682#24775682
http://chat.stackoverflow.com/transcript/message/24775696#24775696
 
can we make money on fiverr?
 
1:56 PM
is QA generally supposed to do security audits?
 
@Zirak Got it, thanks :)
 
@AwalGarg I don't see that panda slapping business...
 
@Zirak an ecmascript only version?
 
@towc I was laying a trap for you so you read it :P
 
1:57 PM
Got something like this for the first one
export let escape = string => {
	return string
		.replace(/[\\\/\n\r\t\v\f]/g, '\\$&')
		.replace(/\|/g, '\\p')
		.replace(/ /g, '\\s')
};
 
Writes JavaScript; kinda works on the first try
 
@AwalGarg ctrl+f noob :P
 
user3119231
@Harish for sure. this battlefield named Javascript chatroom is more than qualificated
 
@AwalGarg Maybe the one in regex101.com/#javascript
 
1:58 PM
@Zirak I don't understand their explanations
 
Grow a brain
 
well, I mean, now I do... but not when I was a beginner
 
@rlemon I'm a total n00b indeed
 
@Zirak my brains never want to grow. I water them and leave them in full sunlight but they always just turn brown and fall over.
 

« first day (1748 days earlier)      last day (3207 days later) »