« first day (1962 days earlier)      last day (2884 days later) » 

5:02 PM
¡ǝɯɐuɹǝsn ʍǝu ʎɯ ʇɐ ʞooן
 
@uoɥʇʎPʎzɐɹC Nice.
 
˙uʍop ǝpısdn sı ǝdʎʇ ı ƃuıɥʇʎɹǝʌǝ ʍou
@LeakyNun
 
@uoɥʇʎPʎzɐɹC Challenge: create a script to do that in client-side.
 
@LeakyNun ˙ǝƃuǝןןɐɥɔ ʇɐɥʇ ʇsod pןnoɥs noʎ
 
facepalm
 
5:05 PM
shameless plug .. first answer in months :
0
A: Stack Exchange Vote Counter

OptimizerJavaScript ES6 + Living Standard, 107 bytes Although this is pure JS without any external library, the fetch API is not yet adapted into any ECMAScript standard. It is supported by many browsers though. fetch`//api.stackexchange.com/posts/82811?site=codegolf`.then(_=>_.json()).then(_=>alert...

only 22 bytes longer than jquery.
 
@Optimizer I was counting the days towards you not posting an answer for a year but still lurking in chat :P
 
and the count is?
 
was?
oh, now you are calculating.. :P
 
I don't know, but I think your last undeleted answer was from September
 
5:08 PM
@LeakyNun ¿ı pןnoɥs ɹo ¿ʇı ʇsod oʇ ƃuıoƃ noʎ ǝɹɐ
 
@uoɥʇʎPʎzɐɹC Well, you take it if you like it.
 
I knew there was a simpler API to make network calls in JS now.. was just not able to recollect. so had to post..
 
^^ that's even more annoying than avocads
 
@MartinEnder Guess the language, 15 bytes: !%!+.[:+/!%1+i.
bonus if you help me golf it
 
5:10 PM
Stack Cats
I with there were a shorter way to do .then(_=>_.json()).then(_=>
 
Well, darn. Ninja'd by bad internet connection.
 
@MartinEnder Yes.
 
then you'll have to find someone else to help you golf it :P
 
So... who's getting distracted at work?
 
@LeakyNun @CᴏɴᴏʀO'Bʀɪᴇɴ Sounds like a job for you! X)
 
5:12 PM
@zʏᴀʙiɴ101 not sure if he's active now
 
JS ninjas.. help be golf chained promises..
 
@uoɥʇʎPʎzɐɹC Hey, it's not reversed letters ;)
 
@TùxCräftîñg @TùxCräftîñg you caught me off guard!
*¡pɹɐnƃ ɟɟo ǝɯ ʇɥƃnɐɔ noʎ
 
[:}.2:x:[:+/1%1+i.
!%!+.[:+/!%1+i.
 
uoɥʇʎPʎzɐɹC ;)
 
5:15 PM
Turns out fetching the denominator (first one) is longer than the second one (arithmetic)
 
@Optimizer someone beat you to it
 
:(
 
but you used an underscore instead of a letter so you're answer was better
because letters are dumb
 
:D
 
0
Q: Denominator of harmonic series

Leaky NunEarlier, we did the pseudofactorial of a number, which is the LCM of the numbers from 1 to n. It would be useful in adding fractions together. However, we find that the denominator of 1/1 + 1/2 + 1/3 + 1/4 + 1/5 + 1/6 is 20 instead of the pseudofactorial of 6, which is 60. Your task is to find...

 
5:25 PM
@Poke ɴᴏᴛ ᴀʟʟ ʟᴇᴛᴛᴇʀꜱ ᴀʀᴇ ᴅᴜᴍʙ. ᴏɴʟʏ ᴀꜱᴄɪɪ.
 
0
Q: ¡ǝƃuǝןןɐɥɔ uʍop ǝpısdn

uoɥʇʎPʎzɐɹCTurn the characters abcdefghijklmnopqrstuvwxyz!?., upside down and don't modify the other characters. Then, reverse the text to achieve the upside down affect. If text is already upside down, turn it right side up. Don't modify capitals. Use this as a reference: abcdefghijklmnopqrstuvwxyz!?., ɐ...

Posted.
@TùxCräftîñg How did you do that?
 
@TùxCräftîñg well you got me there. too bad i'm far too lazy to go through the charmap looking for better glyphs
 
@TùxCräftîñg They didn't look like small caps...
 
2
Q: Denominator of harmonic series

Leaky NunEarlier, we did the pseudofactorial of a number, which is the LCM of the numbers from 1 to n. It would be useful in adding fractions together. However, we find that the denominator of 1/1 + 1/2 + 1/3 + 1/4 + 1/5 + 1/6 is 20 instead of the pseudofactorial of 6, which is 60. Your task is to find...

0
Q: ¡ǝƃuǝןןɐɥɔ uʍop ǝpısdn

uoɥʇʎPʎzɐɹCTurn the characters abcdefghijklmnopqrstuvwxyz!?., upside down and don't modify the other characters. Then, reverse the text to achieve the upside down affect. If text is already upside down, turn it right side up. Don't modify capitals. Use this as a reference: abcdefghijklmnopqrstuvwxyz!?., ɐ...

 
5:34 PM
@uoɥʇʎPʎzɐɹC why did you change your name?
 
@LeakyNun I'll take a looksy
 
@Upgoat Same reason you did: because it's fun
and also it looks cool
 
@CᴏɴᴏʀO'Bʀɪᴇɴ Thanks
 
@CᴏɴᴏʀO'Bʀɪᴇɴ Also, you get to post it (even if you didn't golf it)
 
5:45 PM
wait why?
 
because answer my own challenge seems...
meaningless
 
oh
okay :P bbl
 
@mınxomaτ it looks cool, but I'd rarely actually use that on a website
 
6:00 PM
The Windows console use a strange encoding by default, not Unicode :'(
 
22
Q: Weapons of Math Instruction

Kevin CruijssenLast time when I tried to come up with something easy that wasn't a duplicate, it ended up being way too hard.. So hopefully this time it's indeed something newcomers can try as well. Input: An array/list with integers/decimals. (Or a string representing an array with integers/decimals.) Outpu...

Somehow, the most upvoted answer in this challenge isn't jelly
Not even the FGITW effect works, I was second, Pyke was 4th
 
@Bálint
Javascript is the best
6
 
@TùxCräftîñg Thank you, +1
 
@TùxCräftîñg +1 you are my favorite user in the chatroom right now because of tha
 
Anyone knows, wich is faster in javascript, fillRect or drawing the rectangles with paths, then filling them in 1 call?
> True. The profound meaning behind Bigtoes is too deep for me
Why does this message have 7 stars?
 
6:16 PM
@Bálint good question
we'd tell you if we knew but that's just how stars work around here I guess
 
Oh, wait, @Upgoat could you please check this out, and tell me, what I could do to improve it? mcdorli.github.io/tornado/index.html
 
@Bálint Perhaps destroy the particles once they go offscreen?
 
@Upgoat That's already done
 
nvm looks like they decay automatically
OH MY GOD YOU ARE USING FOR IN LOOPS D:
 
@Upgoat What's the problem with them?
 
6:20 PM
Oh my god
 
@Bálint JS's for in loops were implemented by satan himself
 
for in are slow
 
^ that too
 
@Upgoat THey implemented your satan?
 
they loop through every. single. property. of an instance, even the prototype
 
You have a satan?
 
use for (;;) its faster anyway
 
They loop trough an array
 
@Bálint :|
 
6:21 PM
for (var i = 0; i < array.length; i++)
 
Dr @Upgoat, what would you suggest instead?
 
> Array.prototype.len = function(){ return this.length }
for(var i in [1,2,3]) console.log(i)
[Log] 0
[Log] 1
[Log] 2
[Log] len
notice the len
 
hasOwnProperty m8
 
@Upgoat I usually don't attach prototypes to already existing objects
 
@CᴏɴᴏʀO'Bʀɪᴇɴ he isn't using hasOwnProperty
 
6:23 PM
wait is he using for in to iterate over an array
 
Because I don't attach new properties to objects
 
here's a better example:
> for (i in "foo") console.log(i)
[Log] 0
[Log] 1
[Log] 2
 
@CᴏɴᴏʀO'Bʀɪᴇɴ Yeah
@Upgoat I'm not looping trough string either
 
@Bálint still, it's horrible practice, and pretty slow. Never use it in production code imo. If you need to iterate over an object, something is wrong with your fundamental design
though cool tornado anyways
 
@Upgoat If you check out my hypercube code, there was a place, where I needed it
 
6:26 PM
@Upgoat well you can hide the things, right, with non-enumerable
 
@TinyGiant Actually: don't use for...in loops to iterate over arrays. — Cᴏɴᴏʀ O'Bʀɪᴇɴ Nov 7 '15 at 3:27
 
Because you can't loop trough the elements of an object's properties without it
 
I didn't know how much I needed a whiteboard until I finally got one. This is so good for planning
 
@Upgoat here's an example where I actual use for ... in
 
@Maltysen the fact to make a variable you have to do Object.defineProperty(Array.prototype, "len", { enumerable: false, get: function(){ return this.length} }) is ridiculous
 
6:27 PM
for(let a in smallest){
	smallest[a] = decompress(smallest[a]);
}
 
@CᴏɴᴏʀO'Bʀɪᴇɴ what is smallest?
 
@mınxomaτ I use a simple exercise book
 
@mınxomaτ do you have like a wall one or a desk one
 
@Upgoat an object containing the compressed smallest representation of a number
 
I experienced the same with colored pens though
 
6:28 PM
@Upgoat Wall. 2m x 1m
 
@CᴏɴᴏʀO'Bʀɪᴇɴ why are you using objects to store data ಠ_ಠ if you need to loop through an object you should be using array
 
@mınxomaτ brb converting to feet
@CᴏɴᴏʀO'Bʀɪᴇɴ json supports arrays
 
6 by 3 ft
@Upgoat idc. It's fugly to use an array with gaps
 
@Upgoat Just multiple Everything with 3, a feet is 32.idon'tknowwhat cm, a meter is 100 cm-s => a meter is 3 feet
 
6:29 PM
@CᴏɴᴏʀO'Bʀɪᴇɴ A) why do you have gaps. B) It's even more fugly to use for...in
 
@Upgoat the correct solution is clearly to use coffescript
 
@Maltysen oh god why
solution is to use babel. So you can use Map() and .toMap()
 
@Upgoat cuz it has a for in that loops over the values
@Upgoat why do you need babel for map?
 
@Upgoat because I'm not representing all the numbers from 1 to N
 
you can also do new Map(my_ugly_object.values()) <- waaay better solution
 
6:31 PM
@Maltysen You forgot a "not" between the "to" and "use"
 
@Bálint ಠ_ಠ
 
@Upgoat es7 syntax, not supported by node and babel iirc
 
@CᴏɴᴏʀO'Bʀɪᴇɴ ES7 is not supported by anything right now
 
@Bálint it is partially
 
@CᴏɴᴏʀO'Bʀɪᴇɴ idk, but there's probably something wrong with the way you're approaching storing this. If you need to store empty values. What's wrong with [{val: 3}, {val: 5}] etc. Objects don't have guaranteed order either
@Bálint except babel!
@CᴏɴᴏʀO'Bʀɪᴇɴ ?
 
6:33 PM
@Upgoat That's not the same thing, it just converts it to ES5
 
@Upgoat I don't need order. I just need the values. Trust me, I know what I'm doing. Just because you have object-o-phobia doesn't mean any use of an object is bad.
 
@Bálint babel-node
 
@CᴏɴᴏʀO'Bʀɪᴇɴ rekt
 
@CᴏɴᴏʀO'Bʀɪᴇɴ :| but Map is still objectively better ._. (you can loop through them normally and they don't have key conflicts, etc.)
 
Make Tux's "Javascript is the best" message a sticky one
 
6:33 PM
^
 
^
This is a multi line message.
Yes, it is.
 
^^ (after correcting it to "worst")
 
If I'm correct, Martin is currently in the chat stalking us
 
while we're on the topic, js question: how do I call a settimeout a certain number of times? i was thinking promises, but setTimeout doesn't return one. right now I have something really stupid with decrementing a global variable
 
@Maltysen you should read my async blog article regarding this
 
6:35 PM
@Maltysen Just use a counter
 
@Bálint that's what i have, and plz no. even worse, there are two stages of counters
 
@Maltysen Make it non-global
 
you can do:
 
> Hopefully I didn’t lose you but the above demonstrates how async/await works
 
6:36 PM
for (var i = 0; i < 5; i++) {
     await delay(500);
}
 
Nope, I'm lost
 
@Upgoat wait what?
HOW DOES THAT WORK
 
@Maltysen read blog article to understand fully
 
@Upgoat ES7, remember?
@Maltysen Use a generator
 
@Bálint babel
@Bálint ES6 still
 
6:37 PM
@Upgoat I don't think he uses babel
 
@Upgoat does that return a promise, or automatically start calling it?
 
@Upgoat I don't care
 
@Bálint just go to the website and but your code through it
@Maltysen uh, here lemme write up the code...
 
where is delay defined?
 
@Maltysen V
> Basically async & await are based of promises. You could even consider them semantic & syntax sugar for longer promise syntax.
 
6:38 PM
async function delay(ms) {
    return new Promise(done => setTimeout(done, ms));
}
@Maltysen ^
then just do:
 
@Upgoat you mean done,ms?
 
async function delayNtimes(times, ms) {
    for (let i = 0; i < times; i++) {
        await delay(ms);
    }
}
@Maltysen oh yeah
 
Generators would be the cleanest way, and shortes
 
@Upgoat so if i want to execute something, can I do for(...){alert(123);await delay(500)}?
 
@Upgoat wouldn't it be better to just do await delay(times * ms)?
 
6:40 PM
@Maltysen sure. the await delay(ms) is what delays. you can place that wherever in a async function
@CᴏɴᴏʀO'Bʀɪᴇɴ yeah
 
function* generator() {
    for (var i = 5; i > 0; i++) {
        setTimeout(yourFunction, time);
        yield;
    }
}
 
I need to write another blog post I guess
 
@Upgoat oh, i can't use await outside of an async function?
 
@Bálint but iterating over that generator would be much more difficult then async/await which is designed for this
@Maltysen no you can't, but you can just call the async function normally so it's not that painful or anything.
 
6:41 PM
@Upgoat Can you make an async lambda?
 
^
 
@Bálint no because why would you need an async lambda
 
@Upgoat Why wouldn't I?
You know me
 
well why would you? An async lambdas would be pointless
 
@Upgoat so i can do like (aysnc ()=> {for()(...){alert(1);await delay(500)}})()
 
6:43 PM
@Maltysen They need an argument or empty parentheses
 
@Maltysen lambda abuse eleven
 
async f=a=>{for(...){...}}
or
 
you should be writing that as a function, as lambdas don't even get their own scope
 
(async a=>{...})();
 
@Upgoat idc
@Bálint does that work?
 
6:44 PM
only reason to do that would be for golfing
 
@Maltysen Dunno, I don't have babel
 
@Bálint oh shit that actually works
 
:D
 
:| :| :|
I feel like an idiot rn >_> >__>_>>_>
 
@Upgoat :D:D:D:D:D:D:D:D:::::D::D:::D:::D::D::D
 
6:45 PM
I swear that wasn't in the spec...
 
@Upgoat oh wait, this is es7?
its not working in chrome dev console
 
I'm going to print screen this
 
@Maltysen paste your code here: babeljs.io/repl, get the ES5 code, profit
 
@Upgoat yeah, no
 
@Maltysen ;_; what why
y u do dis
 
6:46 PM
i'll go with normal promises then
 
@Maltysen ;_;
i thought id finally got someone to use babel
 
@Upgoat You know what, I'M going to use it
 
:D :D :D :D :D :D: :D :D :D :D :D :D :D :D :D :D :D :D
 
Using babel is not recommended. Sooner or later it will be struck down due to a lack of humility, and communication between js tribes will be even more difficult.
 
"use strict";

var name = "Upgoat";
f = function f() {
return alert(name + " didn't know, that async lambdas are a thing'");
};
f();
This came out
 
6:51 PM
@Bigtoes /idiot
 
Awesome
 
@Bálint ಠ_ಠ
 
@Bigtoes .
> js tribes
Are we some sort of native indians?
 
Yes? Maybe I should have said ecma tribes?
I think js is but one branch of them.
 
@Bigtoes s/ecma/Ecma/
 
6:54 PM
BTW, I needed to google, what native is in english
ANd the first thing, that came up was "abo"
 
@Bálint it means like indigenous
 
> rejected for reason "too trivial"
 
@Upgoat Yea, that was the second one
 
Anyone want to review
0
A: Sandbox for Proposed Challenges

muddyfishA Hundred Squares! Back to basics... code-golfarithmetic As a teacher at the local primary (grade?) school, you need a way to teach your class their times tables. At your disposal, you have hundred squares and red pens. You need to also be able to show your class the correct answers quickly. ...

 
@Bálint abo is a prefix, as in aborigine. You wouldn't use it alone.
 
6:56 PM
It's been there for ages and I've just renovated it
 
@muddyfish i don't understand your challenge
 
times table?
 
Basically output that grid but with different squares shaded in depending on the input
 
@muddyfish It looks clear and straightforward to me.
 
I understand it just fine, but is time table a real word?
 
6:57 PM
The squares shaded should be multiples of the input
 
@muddyfish You probably meant multiplication table
 
"Times tables" are what we called them here in the UK
 
@Bálint same thing
And in the US
 
Anything I should add to it?
 
Maybe add restrictions on the input (positive only, etc), but even without that it seems obvious what needs to be done.
 
6:59 PM
@muddyfish The hard part is to color it
 
Maybe a better way of shading in the boxes? I'm not sure what else I could do for a regular terminal without complicating it
@Bálint Thats the point
 
Then it's a chameleon challenge
 
What did you think immediately?
 
No it's not. The coloring is the whole point of it...
 
Rename it t something like "color the times table"
 
7:00 PM
I thoufht it was obvious the colouring was the hard part
 
The immediate thing under The challenge heading is "Output a hundred square to stdout or equivalent using ansi-escape codes to shade in numbers which are multiples of the input." This is not a chameleon.
 
@Bob finally found the source: youtube.com/watch?v=qo4jNOOgaxc
 
Making it so the size of the grid could change would make it more of a chameleon challenge right?
 
@flawr I love the recommended videos
> Top 10 Foods that Can Kill You
 
@muddyfish Not sure if "chameleon" fits that well, but it would make it more of a dual-task thing. I like the simplicity of having one main challenge (coloring).
 
7:02 PM
Would be useful or just fluff?
@Bigtoes I wouldn't add that anyway
 
@muddyfish It can't hurt I think. I'm not sure how necessary it is, but judging from some of the other [grid] questions, it would fit just fine.
 
I think I'll post it them. Today or tomorrow? Probably nowish
 
Sure. Give the people something to do at work on a Monday :P
 
There it goes...
 
"It goes" only needs a "B" to be an anagram for bigtoes
 
7:17 PM
Yeah, I've got a few anagrams spread out across SE >_>
 
My rep count is now an ambigram.
2
 
I checked, and I still have my clicker heroes state from 1.5 years ago
 
Clicker Heroes was a thing 1.5 years ago?
 
@HelkaHomba: Just watched your A Nether Adventure video and jeez, that was insane. o_o
 
@TimmyD Nice. Mine is just LEESE :/
 
7:25 PM
I just found out what the EXC key on my calculator does o_o
 
execute?
 
2
Q: A Hundred Squares!

muddyfishBack to basics... As a teacher at the local primary (grade?) school, you need a way to teach your class their times tables. At your disposal, you have hundred squares and a load of red pens. You need to also be able to show your class the correct answers quickly. Now, you're clever enough to wr...

 
nope, try again=)
 
excuse?
exchange?
excommunicate?
exculpatory?
 
Excape?
 
7:26 PM
Enter eXtreme Competition?
 
@Bigtoes thats it=)
exchange the current value with the one in the memory
 
Aww, I was really hoping for excommunicate :/
 
how cool is that?? why did nobody ever tell me???
 
@Bigtoes allow padding - I think I should
 
@Bigtoes exacerbate
 
7:27 PM
@flawr It's probably in the manual. But nobody reads those :P
@muddyfish You mean in each cell? I guess it can't hurt, as long as they're all the same size.
 
@Bigtoes True, but now I can finally say that I know all the functions of that calculator=)
 
@flawr I literally just started watching that 2 minutes ago and considered sharing it in here.
 
high five!
 
\o
clap
 
7:37 PM
@Bálint oh great, another cookie clicker kind of thing to get addicted to :/
 
^
 
@aditsu I remembered why I left it, because f*cking dread knight costs 100000000 times more than the one before him
 
@CᴏɴᴏʀO'Bʀɪᴇɴ TIL you made the sacred esolang.
@Bálint we are coders, remember? :P
 
7:52 PM
@EᴀsᴛᴇʀʟʏIʀᴋ And?
 
@flawr That was a pretty good clincher.
 
@Bálint hack teh codez
auto-clicker
 
@EᴀsᴛᴇʀʟʏIʀᴋ I have an auto clicker actually
@EᴀsᴛᴇʀʟʏIʀᴋ I don't know flash
I could use something like cheat engine though
 
@Bálint hm
@Bálint MAKE IT FASTER
 
@EᴀsᴛᴇʀʟʏIʀᴋ DO IT BETTER
 
8:05 PM
NO
GOLFIER
 
WORK IT HARDER
 
NO
WORK IT FASTER AND GOLFIER
SOFTER IF NEED BE
 
@TimmyD MAKE IT BETTER
 
@EᴀsᴛᴇʀʟʏIʀᴋ Harder, Better, Faster, Stronger
 
ik
use to listen to daft punk
 
8:10 PM
I just remember when I discovered DP, good old times=)
 
@flawr Was it via Discovery? (badum-tsh)
 
@TimmyD I think it was when I found the daft hands video when I thought I have to find out who the hell makes stuff like this=)
 
8:44 PM
0
Q: Terminology question -> challenge

uoɥʇʎPʎzɐɹCI propose that we change "question" to "challenge". So instead of "Ask Question" it'd be "Create Challenge".

 
@MartinEnder - Integer square-root in Retina, if you're interested: codegolf.stackexchange.com/a/82842/11259
3
 
Venus
 

« first day (1962 days earlier)      last day (2884 days later) »