Skip to main content
Amadan's user avatar
Amadan's user avatar
Amadan's user avatar
Amadan
  • Member for 14 years, 11 months
  • Last seen more than a month ago
comment
Stack Snippets Console can't output ES6 data types
@Kaiido: Sorry, but if I ever mistakenly log a mousewheel event, I'm killing the tab, whether or not these are being tested for :D
comment
Stack Snippets Console can't output ES6 data types
@DragandDrop: Wouldn't know, don't touch the stuff :D My mother used to tell me "Don't touch the edge, it can hurt you" - never knew how right she was. Even though she was talking about a kitchen knife...
comment
Stack Snippets Console can't output ES6 data types
Regarding the link: it shows how to patch the Map object so that repl.it will display it. First of all, it does not work for SO Snippets. And furthermore, there used to be a time when we used to patch console with a gist; there was a giant cheer when SO Snippets included the console functionality natively, so I really don't think userside patching of Map in each post is a good answer. It is a missing feature that should be implemented (I personally don't particularly need to rush it, but it should be documented, and I haven't seen it mentioned before).
comment
Stack Snippets Console can't output ES6 data types
@KanonChowdhury: Browser console is working perfectly. Stack Overflow Snippet console (the little window with yellow-then-grey background that you get when you click "Run code snippet") is not.
comment
Why is there no kbd button in the text editor?
@psubsee2003 vim tag might be an exception, but <kbd> is very useful there (and obviously vi.SE), given that most answers would look like gibberish to newbies.
awarded
awarded
awarded
revised
Loading…
Loading…
comment
How do you best research your question before asking it on SO?
I'd also add Wikipedia. If you know the name of the thing you're trying to do, there's a very good chance Wikipedia knows about it; for algorithms, it almost certainly has mathematical and/or pseudocode representation, and very often also an implementation in one or several popular programming languages.
comment
User edits my code and takes out the very thing I was asking about, I get downvoted, and they delete it
@FunkFortyNiner The article was linked by OP in comments to this (meta) question. They were asking what **construct was, without realising it was the blog author’s typo (there is proper __construct lower on the page) in a parallel example.
comment
How do you best research your question before asking it on SO?
It is true that sometimes finding the right search terms is hard. However, more often than not, simply entering the title of the question into Google is enough to pop the answer as the first result. These are the ones we get annoyed about. If you go like "I have a 2d array and i want to add to every element the sum of its neighbours but multiplied with these other values", I'll be more than happy to hint "look up 2d convolution"; there's no shame in failing to find that. If you ask "how to write bubble sort in python", aaaaargh!
comment
User edits my code and takes out the very thing I was asking about, I get downvoted, and they delete it
Now that everyone is aware of everything, what next? I believe the question should be closed, but as typo, not as dupe, and especially not as dupe to scope resolution operator (as explained in my comment on the question). Is there value in flagging a mod for that?
comment
User edits my code and takes out the very thing I was asking about, I get downvoted, and they delete it
@FunkFortyNiner: Just FYI if you want: It is not a valid Ruby/Perl syntax. Double-splat (which is indeed the Ruby term, both for the asterisk's shape and the action it does) is valid in a parameter list at method definition/invocation: def tag(name, **attrs) or tag("a", href: "#", **attrs), or inside a hash literal: { name: "a", **attrs }. (There is also ** as exponentiation operator, but it's not called "double splat" in that usage.) I'm far from being an expert on Perl 6, but it only uses ** in function definitions, calling it "unflattened slurpy parameter" (and exponentiation).
comment
To what extent does language need to be moderated?
@BSMP: By who? dictionary.com lists both as vulgar. They are used as swear words. If you said "poo", you'd have something, but both "crap" and "shit" are definitely swear words. Unless you go by George Carlin's definition, but he was hardly trying to be serious - let alone exhaustive. Then again... I don't give a poo.
awarded
comment
Let's talk about my (canned) comments for bad questions by New Contributors
I don't think any mention of search is noise, especially when users know what they want but not what it's called. e.g. "This is too broad to answer here, but a keyword to search for is 'stochastic language generation'".
comment
We-are-not-a-code-writing-service comments. Are they the good, the bad, or the ugly?
"People search"? here's a recent example. It's a pure "gimme codez" question. I directed OP to Wikipedia (if I were snarkier, it would be a perfect candidate for a lmgfty link) that actually even links to the Java code, the very thing OP's looking for - and OP didn't even bother to look at it. It took a real strength of will to not comment and not be not nice. The Q is closed now, do you think OP knows why? I don't want to be welcoming...
awarded