-*- coding: utf-8 -*- BartholomewJS ​Still: @Xah Lee Comment on redacted previously upcoming tracking feature in Gitlab. Xah Lee ​@BartholomewJS what's the tracking feature of gitlab? Freddy Freeman ​hello all BartholomewJS ​@Xah Lee They planned to implement a usage tracking feature, then community backlash happened, now they retracted it. mat5ch ​het folks mat5ch ​*hey mat5ch ​topic 9 sounds nice Emily ​Heyy mat Xah Lee ​starting BartholomewJS ​@Xah Lee Let's go BartholomewJS ​@Xah Lee Comment on the issue I was talking about. ZitronCrazy ​Hey Xah BartholomewJS ​@Xah Lee We didn't hear the first 10 seconds of your scream. I think you should always wait in the beginning of the scream Welcome to live chat! Remember to guard your privacy and abide by our community guidelines. Emily ​Heyooo xah! Kathy H ​hi all .@BartholomewJS greetings BartholomewJS ​@Xah Lee You were in the middle of saying time/date when it started to show. BartholomewJS ​@Kathy H Greetings, nice to see you. Albert Schotschneider ​heeyy Justin Heyes-Jones ​hi all BartholomewJS ​@Justin Heyes-Jones Greetings BartholomewJS ​@Xah Lee Would be nice if you could use human var/const names for better readability. Hello beautiful people! ​Hello everybody! Hello beautiful people! ​@Xah Lee hello BartholomewJS ​@Hello beautiful people! Hello beautiful people! ​@Xah Lee Are we doing the JavaScript today? Hello beautiful people! ​@BartholomewJS 👋 Daniel Langlois ​Hi! Alan W ​I scream, you scream, we all scream for... Alan W ​xah live scream! BartholomewJS ​Precisely. Justin Heyes-Jones ​@Xah Lee how are you evaluating the javascript in emacs Hello beautiful people! ​nice wording 😃 Daniel Langlois ​evaluating code straight from the buffer? Daniel Langlois ​the problem is actually quite difficult Alan W ​sounds like it is Node that evaluates it Alan W ​so all the window.blahblah probably won't work the same; but good for server-side and just JS language stuff Justin Heyes-Jones ​yeah pretty neat Alan W ​@Xah Lee signature no-indent style? Emily ​In_dont_ Alan W ​^ lolol Alan W ​JS equivalent of `gofmt`? maybe you can review competing options @Xah Lee (topic suggestion) Justin Heyes-Jones ​xahfmt Alan W ​@Xah Lee is this (defining range function) a place where a `for` loop is needed and functional programming map stuff isn't preferred (for JavaScript at least)? Luca ​would be nice to see you release tutorials on c! mat5ch ​😀 Justin Heyes-Jones ​making arrays in ruby has some gotchas too Alan W ​@Xah Lee u should write something that becomes a dependency for webpack Justin Heyes-Jones ​In Scala Justin Heyes-Jones ​@ (1 to 10) res0: Range.Inclusive = Range.Inclusive(1, 2, 3, 4, 5, 6, 7, 8, 9, 10) Justin Heyes-Jones ​😛 Hello beautiful people! ​@Xah Lee I would say `for (let i = 0; i <= n; i++) BartholomewJS ​@Xah Lee You high? Hello beautiful people! ​@Xah Lee think you want to remove the ' +1' on line 3 Hello beautiful people! ​right? Emily ​What does whitespace mode show on the output? Freddy Freeman ​@Xah Lee time to switch to vscode haha Alan W ​@Freddy Freeman feels bad man 😞 Hello beautiful people! ​Environment breaking on live demo? I would expect nothing less 😉 amz11995 ​Maybe try copying something else than this array, but in that bottom buffer - see what happens. Hello beautiful people! ​@Xah Lee Disagree. You are doing well today. Broken environment is not your fault. Freddy Freeman ​@Xah Leei have a basic question: i want to call a function which creates a dictionary with many nested values, with strings,arrays etc in it. but i also want ot specify: Freddy Freeman ​@Xah Lee in the function a few values for some of the values of the dict Freddy Freeman ​@Xah Lee but all the rest get a default value Freddy Freeman ​@Xah Lee so i would want ideall the initialsation of the dict with default values and then an iteration of the key/value pairs for the dict, which meight be quite nested and include even arrays etc Freddy Freeman ​@Xah Lee do you have a good way to do that? Justin Heyes-Jones ​I gotta go, later everyboday mat5ch ​bye Justin Emily ​Byee Justin Hello beautiful people! ​bye Justin Daniel Langlois ​var foo = []; Daniel Langlois ​for (var i = 1; i <= N; i++) { foo.push(i); } Daniel Langlois ​Of course, Arrays are iterable. But there are many other built-in objects, that are iterable as well. Emily ​@Xah Lee -- what do you use for your templates of tab completing keywords and all? Hello beautiful people! ​@Xah Lee you can `Array(9).fill(null)` and then iterate over it. Hello beautiful people! ​@Xah Lee array.ForEach or whatever Daniel Langlois ​a function that basically takes in a starting index and ending index then return a list of all integers from start to end? ok.. Daniel Langlois ​const range = (start, end, length = end - start) => Array.from({ length }, (_, i) => start + i) La Casaca ​es6 has Maps and Sets now Daniel Langlois ​a recursive range function? Well, If you only needed range to handle approx. 6000 iterations.. Daniel Langlois ​The for loop is by far the easiest to read and also by far the most efficient. Freddy Freeman ​@Xah Lee yes thank you, i meant object. basically giveMeDefaultObject({"level1": [ {"default": "changthis"}, 2, "hi"] ) Daniel Langlois ​'trying to get all fancy when the simple solution is much better' Freddy Freeman ​looks so complicated Freddy Freeman ​ugh 😀 Hello beautiful people! ​@Xah Lee Happy to help! Alan W ​got to go now; have a great rest of the show stream ppl 😃 Hello beautiful people! ​@Daniel Langlois Interesting solution. Have to try it! Freddy Freeman ​yes no problem xah, another time, may be more complicated than i anticipated 😃 BartholomewJS ​keytool -list -v -keystore keystore.jks -storepass '' BartholomewJS ​Ah damn, that was by accident. Freddy Freeman ​interesting bart Freddy Freeman ​haha Freddy Freeman ​using eclipse huh? Freddy Freeman ​idk 😃 BartholomewJS ​Me? No, it's a Java server with cert issues. 😅 Freddy Freeman ​oh ok 😁 wrong associations😁 BartholomewJS ​@Freddy Freeman Well, you were pretty close since both are closely related to Java. Daniel Langlois ​The modulus operator ( % ) Freddy Freeman ​@BartholomewJS so what are you hosting? 😃 Daniel Langlois ​var z = x % y; BartholomewJS ​@Freddy Freeman It's not me, it's the clients who buy this server. I am just fixing it right now. Freddy Freeman ​@BartholomewJS i see, wouldnt have taken you for a java fan 😉 Hello beautiful people! ​@Xah Lee For example given (finding the first element passing test) You can use somearray.find BartholomewJS ​@Freddy Freeman I'm no Java fan, I just need it for work. Freddy Freeman ​@BartholomewJS ah yea, i meant to say i wouldve been surprised BartholomewJS ​@Freddy Freeman Do you know the beauty of Nim? Freddy Freeman ​@Xah Lee ah yes, this is the kind of code by a 10 fold that im dealing right now, left behind by my superiors 😃 Freddy Freeman ​@BartholomewJS no i havent investigated it yet Sauce ​Hello, my friend Sauce ​I do not know how to program BartholomewJS ​Open @Sauce Freddy Freeman ​@BartholomewJS nim rhymes with vim though so i should check it out soon.. 😉 Freddy Freeman ​@Xah Lee yes! if this stuff is in one line it really makes it hard read.. Emily ​So it's short-circuiting? Emily ​Like and in lisp BartholomewJS ​@Freddy Freeman You're damn right. Hello beautiful people! ​@Xah Lee some and every on empty arrays are weird. Freddy Freeman ​@BartholomewJS what?? nim can compile to javascript?? Freddy Freeman ​damn Hello beautiful people! ​😲⬆ BartholomewJS ​@Freddy Freeman C, C++, Objective-C and JavaScript, to be precise. BartholomewJS ​@Freddy Freeman Once you know Nim, you are pretty much done. Freddy Freeman ​😲 Hello beautiful people! ​😲 Julio Fernandez ​un saludo a todos BartholomewJS ​@Freddy Freeman And look at the syntax... Simple as Python and yet mostly as fast as C. Freddy Freeman ​it does look nice BartholomewJS ​@Freddy Freeman It's amazing. Hello beautiful people! ​@BartholomewJS what is nim usually used for? BartholomewJS ​@Hello beautiful people! What can't you use it for? Yes, it has mainly a focus on systems programming. But you could actually use it for pretty much anything. BartholomewJS ​@Hello beautiful people! You can build an equally as valid back-end as well as front-end with only Nim. Hello beautiful people! ​@BartholomewJS interesting. Think I will have look at it. BartholomewJS ​@Xah Lee You never make "too much" sense. 😂 Emily ​Thanks for a great talk as ever Xah! Emily ​And a good night to you all Hello beautiful people! ​@Xah Lee I do enjoy your talk show 😃 Hello beautiful people! ​@Xah Lee Freddy Freeman ​yes me too Hello beautiful people! ​@Xah Lee Any chance doing it little bit earlier? Julio Fernandez ​os dejo. otro dia me quedo mas.aqui son las 1 de la madrugada Hello beautiful people! ​@Julio Fernandez same time here 😉 Hello beautiful people! ​Thank you. Bye everybody! Freddy Freeman ​or let me do it differntly: Freddy Freeman ​ah haha well next Freddy Freeman ​time BartholomewJS ​Big show, big end. Emily ​Next time Freddy Freddy Freeman ​bye everyone Emily ​:p Emily ​Byeeee Freddy Freeman ​hehe 😃 Freddy Freeman ​cya! Xah Lee Say something... 0/200