« first day (1892 days earlier)      last day (2954 days later) » 

2:00 AM
@AlexA. I would accept that opinion.
 
it'd be great if mods could uncheck on meta
 
@NathanMerrill They can.
 
@quartata No we can't
 
@AlexA. I'm not sure our meta is ready for that kind of meta
 
@quartata They can't.
 
2:00 AM
sure, lets get dev effort to uncheck my meta question
 
The devs can do whatever they want
 
@AlexA. Uh, you're sure? I was under the impression that mods could accept/unaccept answers
 
I'm sure they have the time
 
@quartata Positive.
 
@quartata Yes, as a moderator I'm sure. :P
 
2:01 AM
...that's weird. One second I have to check something
I swore there was this one time where Doorknob force-accepted one of my answers for some reason
 
Not possible.
 
mods can force accept?
 
Oh, that was an edit. der
 
@Downgoat No
 
@quartata force-accept =\= edit
 
2:02 AM
 
would you rather I use unicode?
> "force-accept" !== "edit"
< true
even JavaScript knows...
 
<> is just evil.
 
@Geobits This is fact
 
@QPaysTaxes ಠ_________________________________________________ಠ
 
Mar 28 at 2:07, by Alex A.
Hello @Zgarb and welcome back to JavaScript Bashing Central.
 
2:03 AM
JavaScript is the best
two pings === constant?
 
It pings on every edit.
 
@QPaysTaxes He's using the reply feature as it's intended to be used. You can turn off the ping sound by the all rooms button.
 
oh
@QPaysTaxes Ewww Ruby
@Downgoat no stars? D:
 
@QPaysTaxes can confirm, was pinged four times earlier
 
Mar 30 at 4:50, by Alex A.
@Downgoat You know, you don't have to press enter before proofreading. :P
Just sayin'... again...
 
2:05 AM
@AlexA. but I do not know how long to make it for full-effect
 
@QPaysTaxes no, by @Downgoat
 
@AlexA. That wasn't even a proofread edit spree, it was just adding more underscores to the face :/
 
@Geobits Seriously? :/
:(
 
@Doorknob D: sorry.
 
@AlexA. o______o
 
2:07 AM
@Downgoat you know, you could at least read what you type before pressing enter
 
:P
 
though it shouldn't ping on edits. brb, writing meta.se post...
 
Mar 28 at 0:50, by Downgoat
JavaScript is the worst.
 
...
 
@Geobits be careful or you might get elevened :P
yep
 
2:08 AM
The easy solution would be not to do that.
 
The pointless formatting and underscores are annoying already, without the edits, actually...
 
Ping everyone who's starred something if the starred post gets edited :P
 
@QPaysTaxes but it seems to be more annoying than useful. Especially when there's someone with bad spelling like me.
 
Grrr. The android app doesn't show deleted posts.
 
@MyHamDJ neither does the iOS app.
 
2:09 AM
@MyHamDJ I have found that out on multiple occasions :(
 
Lame. Especially when you have a notification on a deleted posts.
 
@MyHamDJ The Android app is crappy in all aspects. (sorry devs)
 
It's also missing revision history.
 
@QPaysTaxes if only letters were added/removed that be a basic way to detemine a typofix
 
I'd much rather have revision history than deleted posts.
 
2:10 AM
@MyHamDJ for deleted posts or all posts?
 
Oh, I like the app itself. It's more easily usable than the mobile site in general. There are quite a few missing features, though.
 
@Downgoat I saw it get accepted and saw on the main page "modified x minutes ago by Doorknob" and thought for some reason that he had somehow accepted it
 
@Downgoat this is not "bad spelling." That is just apathy.
8
 
All posts.
 
@Doorknob that's just sad
 
2:11 AM
@QPaysTaxes okay, that is true
 
What's "caring less than apathy"?
 
Lol. I love getting replies from @Downgoat because I know that I will get at least 7 notifications as he updates it.
 
0
Q: solving problem step by step, limit x to inf, limit x to 0 and limit x to -1

user52760lim x to inf ((x^4)-3x)/(-2x+5) solving step by step lim x to 0 ((-(cosx)^2)/4x^2) solving step by step lim x to -1 ((x+1)/((6(x^2)+3)^1/2)+3x) solving step by step

 
I know, but it seems this situation calls for a new word.
 
@QPaysTaxes it would probably overflow to 4294967295
@QPaysTaxes It would of been a bad choice to make is signed imo
 
2:14 AM
@QPaysTaxes It's gotta be unsigned. You said you can't care less than nothing (zero). :P
 
> You can't care less than nothing
you said that, which proves my point
@QPaysTaxes brain =\= computer
 
Caring against isn't negative imo. Go with the boolean direction and integer magnitude option.
int passion = 0; // apathy
 
But are there degrees of apathy?
 
I need some new music. Give me a recommendation and I'll listen to it.
 
@Doorknob I usually use radians of apathy.
 
2:18 AM
@MyHamDJ what type of music do you like?
 
There's "I don't care," and then there's "meh," and "ehhh," and "not really important," and...
 
Mostly rock.
 
@Geobits Radians Celsius or Fahrenheit?
 
Radians Kelvin per Hour
 
Light rock like silversun pickups to heavy rock/metal like killswitch engage.
And a lot inbetween.
 
2:19 AM
@MyHamDJ Carnavas is a pretty good album
 
I've not listened to that one. I know pikul and swoon pretty well.
 
wat
 
Well if you like Silversun Pickups and you're looking for a recommendation, that's it.
@Downgoat Can confirm
 
@Downgoat ಠ_ಠ Damn you.
 
2:21 AM
\o/ finally got someone :P
 
@Downgoat I knew what it was and I clicked it anyway
 
Hi everyone, is this the right place to ask for help?
 
With what?
 
i'm starting to get crazy
i think i have a solution, buyt seems too good to be true
sorry, typing is not my strength :P
 
2:24 AM
How are you computing your score? Many submissions got that wrong in the first revision.
 
If you hit the up arrow key, you can edit your chat posts.
 
oh! i was looking for the biggest collition on a single key
but i think i know what was wrong
should it be the sum of all collitions?
 
range
translate en: Danke schoen
(from German) Thank you very much
je'e .i mi gleki lo nu sidju
 
@Doorknob is that the next cool esolang?
 
translate: je'e .i mi gleki lo nu sidju
(from nonsense) asdfasdfasdfa
get rekt, lojban
 
2:28 AM
@fedes. Yes. For each collision, you count the number of preimages that hash to that value, then add all counts.
 
(sorry @Doorknob >_>)
 
.i'e nai cai
(approval-negative-very-strong, aka ಠ_ಠ)
 
I thought very strong translated as ಠ_ಠ.
 
@QPaysTaxes Yes. So, disapproval, really. :P
Opposite
 
OK, so I discovered a partially working newreader app on an old hard drive that I think I wrote when Google Reader died. There's only one problem: it's written in JavaScript using Sencha
 
2:30 AM
@Dennis Ahhh, thank you, i'll see how that works!
 
Should I just burn it?
 
@quartata ಠ_ಠ
 
It's actually a surprisingly large amount of code. I'd think I'd remember writing such a massive progrm in Javascript
 
@quartata I don't know what Sencha is but yes
 
@QPaysTaxes Basically. :P
 
2:33 AM
@AlexA. Sencha is like if you take all the things wrong with javascript, then add all the difficulties of mobile, then make it worse.
 
@Doorknob how long did it take for you to become fluent in lojban?
 
It's like a worse version of Phonegap, which is saying a lot.
 
@Downgoat go'i na'i
 
@Geobits How was such an abomination ever permitted to exist?
 
That's a phrase that has no direct English translation, other than "well, I'm not fluent in Lojban."
 
2:34 AM
@Geobits There are too many messages to ಠ_ಠ that I'm not going to even bother to...
 
It's used as a response to "when did you stop beating your wife"-type questions.
 
@Downgoat No really. It's terrible. They took the worst of each component and threw them all together.
 
0
A: Sandbox for Proposed Challenges

soktinpkWhere will the cat go? A nearly massless cat is dropped in space at the point (x, y, z) with velocity (vx, vy, vz). There is an infinitely dense planet (with volume of 0) at the point (0, 0, 0) and it attracts objects at distance r with acceleration 1/r^2. According to Newtonian gravity, where d...

 
> infinitely dense planet
*black hole
 
> A nearly massless cat
 
2:35 AM
Yeah, this looks like scope hell. I seem to recall having to use reflection to access a parent variable in this somewhere
 
@AlexA. Somebody looked at this and interpreted it the wrong way.
 
Why did I do this
 
what is wrong with JavaScript, why is there so much JS hate :(
 
everything
 
it's like a car crash i just can't look away from this code
 
@Dennis please give specific example.
 
@quartata I've been there. I eventually had to scrap a phonegap project at work and rewrite the whole thing natively for both android and ios. Much better than trying to maintain it.
 
Man, I must have been super drunk in 2014. It explains why I couldn't remember writing this
 
@AlexA. well every language has it's quirks. e.g. Python
 
2:38 AM
@quartata For the entirety of 2014
 
Yep
 
@Downgoat except JavaScript seems just like a bunch of quirks all smashed up together :P
 
ಠ_ಠ
 
That means 2015 was just one long hangover which explains why I ended up in this hellhole
 
@Downgoat Javascript's object/class/whatever system isn't a quirk. It's an abomination.
 
2:40 AM
@quartata you didn't end up in CR
@Geobits why? how?
 
@Downgoat Type casting is absolutely insane. Semicolon insertion should never have existed. The name is misleading, at best. The implementations are utterly incompatible. Writing asynchronous code is painful.
 
@Dennis ES6 introduced async functions, which fix that issue. Type casing makes sense once you understand toString. Semicolon insertion isn't a problem if you put semicolons in your code
 
llama@llama:~$ js
> '' * ''
0
> 'foo' * ''
NaN
> [] * []
0
> [[]] * []
0
> [[]] * ['hi']
NaN
3
This is not how any of this should work
 
@Downgoat except no one supports ES6 which is his point
 
@Doorknob those are very extreme examples
 
2:43 AM
@Downgoat The entirety of their "prototype" implementation is just crazy. I work almost exclusively with OOP languages, and I have to google how to write JS contructors every. single. time.
 
@quartata Chrome, Firefox, IE, Safari, Node, and more do.
@Geobits ES6 introduces real classes (basically doing away with prototype)
 
@Doorknob I know xkcd tried to mock this, but actual JS is actually worse.
 
@Downgoat And doesn't work in real browsers :P
 
Chrome does not support ES6.
 
not really. Especially considering the fact that that JavaScript treats every single thing the same means that it's ridiculously easy to end up with things of the wrong type.
 
2:44 AM
@Downgoat Safari's ES6 support isn't great. I can't run most ES6 submissions in the console.
 
llama@llama:~$ js
> var x = 10;
undefined
> x.foo = 'bar';
'bar'
I seriously should not be able to do this
 
@quartata type (()=>alert("ES6 supports chrome"))() in your console please
 
@QPaysTaxes Yes.
 
@AlexA. get Webkit Nightly
 
@Downgoat Uh no thanks, I like stable browsers
 
2:45 AM
Only Firefox truly supports ES6.
 
also, js code should be transpiled with babel
 
@Downgoat ES6 != arrow functions.
 
@Dennis it does?
Chrome has 97% ES6 support
 
And only Chrome truly supports classes so that's great
 
2:46 AM
@Downgoat That's just enough for it to break on things that should work.
 
you install the babel plugin in your favorite text editor, then you can use ES6 on every browser
@Geobits no?
 
@Downgoat ES6 support is far too inconsistent to be used in production
 
I can't imagine if someone told me to try a C compiler that worked for 97% of the language.
 
21 secs ago, by Downgoat
you install the babel plugin in your favorite text editor, then you can use ES6 on every browser
 
@El'endiaStarman Ill take a look at it in like 15 mins, you literally pinged me as I was standing up :P
 
2:46 AM
that's full ES6
 
@Geobits Lookin' at you, Microsoft Visual C compiler...
 
having to transpile is absurd
 
@quartata you have to compile C too, is that absurd?
 
No, because C is a compiled language
JavaScript isn't a compiled language
 
No but transpiling C to something else then compiling it is
 
2:48 AM
JIT compilation is still compilation
 
@GamrCorps Hahaha, okay. I cut a few things entirely, shuffled the items into an order that flows better, and essentially standardized each paragraph by putting the most important thing as the first sentence and bolding it. It's still rather long, but it's not quite as long. :P
@El'endiaStarman @Doorknob, your feedback on this would be appreciated.
 
@El'endiaStarman pro tip: call the file something.md so the Markdown actually renders :P
 
@Doorknob Whoops, fixed. :P
 
@Geobits I actually wasn't kidding about the MS C compiler. It doesn't fully support the C99 standard (1999!!!).
 
@AlexA. Oh I believe you. I don't use it though, so I wasn't sure :P
 
2:51 AM
Microsoft doesn't believe in standards
C99 is just an illusion
 
> var s = 'foo foo bar baz baz baz'; counts = {}; s.split(' ').forEach(function(word) { if (counts[word] === undefined) counts[word] = 1; else counts[word]++; }); counts
{ foo: 2, bar: 1, baz: 3 }
@Downgoat This seems pretty solid, right?
wait it actually is
hang on it wasn't supposed to be
 
POSIX is merely a bad dream to them
 
haha
 
> the body of lambda functions can only be an expression, no statements; this means you can't do assignments inside a lambda, which makes them pretty useless
Hmm, Lisp dialects are all expression-only...
 
@Downgoat JS's regex flavor was made by the devil himself.
 
2:53 AM
'foo foo bar baz baz baz'.split(' ').reduce((a,b) => (a[b] ? a[b]++ : a[b] = 1, a), {});
 
> typeof NaN
< "number"
gorgeous
 
@Doorknob more golfier ^^^
 
@El'endiaStarman (set! doesn't work in your Lisp dialect?
 
var myVar = 5;
if(myVar == '5'){
  alert("if is loosely typed");
}
switch(myVar){
  case '5':
  alert("switch is too, then, right?"); // no, it actually isn't
}
 
@quartata Even so, the vast majority of Lisp programs are expressions.
 
2:55 AM
> var s = 'foo FOO bAr BAz bAZ'; counts = {}; s.split(' ').forEach(function(word) { if (counts[word.toLowerCase()] !== undefined) counts[word.toLowerCase()].push(word); else counts[word.toLowerCase()] = [word]; }); counts
{ foo: [ 'foo', 'FOO' ], bar: [ 'bAr' ], baz: [ 'BAz', 'bAZ' ] }
Okay, does this seem right?
 
@Geobits what
 
@Doorknob please write sane JS code
 
(golfiness aside)
 
1 min ago, by Downgoat
'foo foo bar baz baz baz'.split(' ').reduce((a,b) => (a[b] ? a[b]++ : a[b] = 1, a), {});
 
@AlexA. drops mic
 
2:55 AM
It's an example
 
hahaha
 
Is there anything wrong with that code?
@QPaysTaxes I'm copy/pasting from a REPL
 
@Doorknob You can golf foreach down to map if you don't return anything
 
This isn't golf (╯°□°)╯︵ ┻━┻
2
 
@Quill it should be golfed to a reduce
 
2:56 AM
@Downgoat But that's ES6
 
Besides that, it looks good :)
 
Anyway, it's not buggy per se, is it?
@Quill Okay. No bugs, no unexpected behavior?
 
Mar 28 at 23:50, by Downgoat
@QPaysTaxes Welcome to Programming Puzzles and Code Golf! This website is tagged so you need to make your code as short as possible, you can start by removing all that horrible whitespace and making all variable named 1-char long.
 
> var s = 'constructor length'; counts = {}; s.split(' ').forEach(function(word) { if (counts[word.toLowerCase()] !== undefined) counts[word.toLowerCase()].push(word); else counts[word.toLowerCase()] = [word]; }); counts
TypeError: counts[word.toLowerCase(...)].push is not a function
    at repl:1:155
    at Array.forEach (native)
    at repl:1:57
    at REPLServer.defaultEval (repl.js:262:27)
    at bound (domain.js:287:14)
    at REPLServer.runBound [as eval] (domain.js:300:12)
    at REPLServer.<anonymous> (repl.js:427:12)
JavaScript: "NOPE! Try again!"
 
@Doorknob object =\= array
 
2:57 AM
@Doorknob I'm not even sure it wants you to try again
 
ಠ_ಠ
>>> a = {}
>>> a.push(1)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: 'dict' object has no attribute 'push'
Python counterexample
 
This happens because constructor is a special variable on all objects, and setting it to [...] magically transforms the object into an array. Which gives it a length property. Which is plain stupid.
^
 
@Downgoat A simple switch is sane, right? Can you explain why they decided to make this happen?
 
@Downgoat ...what are you trying to do? o.O
 
@QPaysTaxes doorknob is
 
2:58 AM
It's an associative array of word->list of capitalization formats
 
@Geobits regular equality is === not ==
 
It's the exact same code as
3 mins ago, by Doorknob
> var s = 'foo FOO bAr BAz bAZ'; counts = {}; s.split(' ').forEach(function(word) { if (counts[word.toLowerCase()] !== undefined) counts[word.toLowerCase()].push(word); else counts[word.toLowerCase()] = [word]; }); counts
{ foo: [ 'foo', 'FOO' ], bar: [ 'bAr' ], baz: [ 'BAz', 'bAZ' ] }
with a different string
 
@Downgoat You're misreading his example he is not pushing to a dictionary
 
oh, well it's because that element is undefined
 
@Downgoat I'm saying that if and switch should behave the same way, whichever way they decide on.
 
2:59 AM
@Downgoat no it's not
 

« first day (1892 days earlier)      last day (2954 days later) »