What are the rules for sockpuppets here?
-
@bb36e Wow, that's ugly...
Filed Under: Thanks, though
-
@Kuro I'm pretty sure python uses the same syntax (and PHP)...that said, it does make things hard to reason about sometimes. Still better than
console.log.call(this, arguments)
IMO.
-
@bb36e I thought python used ** which at least looks like a pointer to a pointer for my C-damaged brain.
PHP just does whatever it wants. I think you can use func_get_array() to get additional unspecified parameters?... It's PHP....
Filed Under: All programming languages are ugly some way or another!
-
@Kuro said in What are the rules for sockpuppets here?:
@bb36e I thought python used ** which at least looks like a pointer to a pointer for my C-damaged brain.
PHP just does whatever it wants. I think you can use func_get_array() to get additional unspecified parameters?... It's PHP....
Filed Under: All programming languages are ugly some way or another!
D'oh! yeah, you're right.
-
To be pendantick, python uses * for list spreading and ** for dictionary spreading.
-
@CreatedToDislikeThis said in What are the rules for sockpuppets here?:
python uses * for .. spreading and ** for ... spreading.
...
-
@Yamikuronue said in What are the rules for sockpuppets here?:
@ben_lubar It's probably running a tor exit point or something.
Nah, just plain old cell data.
-
@otterly You open NodeBB on mobile? You poor soul!
Filed Under: That's different!
-
@ben_lubar said in What are the rules for sockpuppets here?:
@fbmac The IP address associated with that post was never used to log in on any account. Did you share your session cookie with someone who is listed on not one but two lists of bad IPs?
I prolly logged while in WiFi range then posted while on cell data, no cookie sharing or anything. I'm also on the largest cell network of my country which would explain this IP being classed as spammy.
-
@otterly Cortana wannabe detected!
-
@Kuro PHP can do cool shit these days with variadic functions
-
@Arantor Urgh, okay then. Point taken... PHP also has ugly syntax... Are you happy now?
Filed Under: Earlier today, I said PHP was pretty sane compared to NodeJS... you ruined that!
-
@Kuro "PHP is a festering pile of shit, but at least it's trying to get better"?
-
@Arantor By adding "..." as a syntax? Yeah, no... try again next time!
Filed Under: Maybe I am just grumpy about that syntax
-
@Kuro To be fair, how else could you possibly indicate 'I accept an unknown quantity of arguments but please dump them in this array here for me when you run me'? Gotta be better than
func_get_args
.
-
@Arantor
a) Don't support that. It's gonna be a maintainance nightmare
b) PHPs syntax is based on C... So what's wrong with using * at the parameter (like python)? Is that already taken?
c) Doesn't PHP supportfunc(array $additionalArgs = array()){}
nowadays?
d) According to the docs you linked to, you can actually even use ... AT THE CALLING?!?! WHY?!?!?!
e) Don't do it!filed Under: still better than func_get_args(), though
-
@Kuro in Go, you can do
package main import "fmt" func ReallyInefficientLastItemInList(items ...interface{}) interface{} { exceptTheFirst := items[1:] if len(exceptTheFirst) == 0 { return items[0] } return ReallyInefficientLastItemInList(exceptTheFirst...) } func main() { fmt.Println(ReallyInefficientLastItemInList("hello", 47, "goodbye")) // prints goodbye }
-
@Kuro said in What are the rules for sockpuppets here?:
d) According to the docs you linked to, you can actually even use ... AT THE CALLING?!?! WHY?!?!?!
Like:
def whatever(*args): return whatever_else(1, 2, 3, *args)
In python?
(Replace def with function and * with ... for javascript ES#AlmostAUsableLanguageNow version)
-
@Kuro
because functional.
unpacking/deestructuring is a nice thing to have, and frankly, arguing between...
and* | **
is futile IMO
-
@anonymous234 said in What are the rules for sockpuppets here?:
When I tried to make that account it told me the username wasn't available.
That's because Jeff used to use that username. Then when he left he renamed himself to @
bellend.
-
@Kuro said in What are the rules for sockpuppets here?:
@fbmac What does the
...e
do?Filed Under: confusing syntax
ES6 syntax.
...
is the spread operator. A function defined with its last argument...a
will collect all of the remaining arguments into an array,a
. When calling a function (or defining a literal array),...a
is equivalent to writing longhand the expansion ofa[0], a[1], ... a[a.length]
.function (...e) { console.log(...e) }
is equivalent to:function (a, b) { console.log(a, b); }
if it's called with 2 parameters, or to:
function (a, b, c) { console.log(a, b, c); }
if it's called with 3 parameters, or... etc.
(In the case of the
socket.emit
callback, it has 2 arguments, one for an error and one for a successful result. One or the other is always going to benull
.)@otter said in What are the rules for sockpuppets here?:
@anotherusername what is that command for viewing the IP address of a post? does it still work on my own account?
No, it does not.
-
-
@Kuro said in What are the rules for sockpuppets here?:
@bb36e Wow, that's ugly...
Filed Under: Thanks, though
It's actually super handy and elegant. Especially for converting array-like things to real arrays.
E.g.
var a = [...document.querySelectorAll('a')]; // this is an array a.forEach(e => { // do stuff });
Without the spread operator you'd need to do something funky like:
var a = Array.apply(null, document.querySelectorAll('a')); // this is an array
The
...
syntax is much cleaner, more obvious, and less clever.
-
I guess I disagree with almost everyone here on sockpuppets. In summary, my opinion is:
- Sockpuppets help maintain privacy;
- I almost don't feel like deleting stuff if it isn't under my name;
- Some got compromised really quick, but I found the hide & seek game that happened fun (Except when stuff was looking IPs, that kind of take the fun away)
Current puppets are good enough, but I had hopes of convincing people to change their position on the matter and maybe freeing @clippy, to allow @clippy jokes. Maybe you can give it to someone else, then.
-
@fbmac alternatively, instead of using a sockpuppet you could just do a mass delete and switch accounts every once in a while. That would be less annoying than having posts and threadds randomly disappear.
-
@bb36e We cant do mass deletes. I dunno what you're proposing, people hate when I delete stuff, how wouldn't that be worse?
-
@fbmac said in What are the rules for sockpuppets here?:
- Sockpuppets help maintain privacy;
- I almost don't feel like deleting stuff if it isn't under my name;
That's just silly. If you don't want something posted under your not-even-your-real-name-pseudonym, just don't post it in the first place.
@fbmac said in What are the rules for sockpuppets here?:
I had hopes of convincing people to change their position on the matter and maybe freeing @clippy, to allow @clippy jokes
I for one would not be opposed to that.
-
@fbmac said in What are the rules for sockpuppets here?:
I guess I disagree with almost everyone here on sockpuppets. In summary, my opinion is:
- Sockpuppets help maintain privacy;
The point of sockpuppets is not privacy. That's what a persona is for. That's what a forum is for.
- I almost don't feel like deleting stuff if it isn't under my name;
I hope that @fbmac isn't your actual name. In which case, this argument doesn't make much sense. I based my user name on my real name (or do I?) because there are plenty of people that could match that information. Your user name is pretty anonymous.
Tl;dr: sockpuppets should be gimmic accounts. Not "ha ha, you don't know who I am" accounts.
-
Plus, even "ha ha, you don't know who I am" accounts (you know who you are) generally have their secret identity respected by the admins. The trick is not doing anything objectively annoying repeatedly.
And if you want to hide your account split from the admins too, you'd have to do whatever it is that would make that happen. (proxy? the tors? I'm not a network expert)
-
@abarker said in What are the rules for sockpuppets here?:
I hope that @fbmac isn't your actual name.
It's his name in a way almost similar to how Tsaukpaetra is my name. Except, a little shorter.
-
@Kuro said in What are the rules for sockpuppets here?:
According to the docs you linked to, you can actually even use ... AT THE CALLING?!?! WHY?!?!?!
My main use for variadic argument lists (in C) is with printf wrappers. In that case you want to pass the unknown argument list on, and
fprintf($file, ...$args)
is cleaner than
$args2 = array( $file ); foreach( $args as $arg ) { $args2[] = $arg; } call_user_func_array("fprintf",$args2);
IMHO of course.
-
@Jarry said in What are the rules for sockpuppets here?:
@Kuro
because functional.
unpacking/deestructuring is a nice thing to have, and frankly, arguing between...
and* | **
is futile IMO
-
@anotherusername said in What are the rules for sockpuppets here?:
I for one would not be opposed to that.
https://what.thedailywtf.com/topic/12586/sexy-sock-puppet-master-list
-
@abarker said in What are the rules for sockpuppets here?:
I based my user name on my real name (or do I?)
No, you're a barker, it's based on your job of attracting new patrons to the forum. If it was your name, anyone that knows you wouldn't have any trouble figuring out it's you.
-
@all_users I know the Lounge, what is this area you talk about? Is there a secret cow level hidden here somewhere?
-
@Yamikuronue said in What are the rules for sockpuppets here?:
@otter Baiting the mods is never smart:
What? That's half the fun on this forum. Sometimes you get to see mods baiting other mods!
-
@abarker said in What are the rules for sockpuppets here?:
I based my user name on my real name (or do I?)
don't tease me like that ;)
-
Typing the konami code doesn't open any new areas here
-
@Yamikuronue said in What are the rules for sockpuppets here?:
@anotherusername said in What are the rules for sockpuppets here?:
I for one would not be opposed to that.
https://what.thedailywtf.com/topic/12586/sexy-sock-puppet-master-list
I know about the list. I don't see @clippy on it.
-
@anotherusername said in What are the rules for sockpuppets here?:
@Yamikuronue said in What are the rules for sockpuppets here?:
@anotherusername said in What are the rules for sockpuppets here?:
I for one would not be opposed to that.
https://what.thedailywtf.com/topic/12586/sexy-sock-puppet-master-list
I know about the list. I don't see @clippy on it.
I suspect that's Yami's point
-
@fbmac said in What are the rules for sockpuppets here?:
Typing the konami code doesn't open any new areas here
-
@ben_lubar well, you're special.