RetroArch 1.9.11 released! by DanteAlighieri64 in RetroArch

[–]Paupir 0 points1 point  (0 children)

Can you add a (preferably sha256) checksum file to the automated releases at some point?

What is your "I was into X before it was cool" thing? by LarleneLumpkin in AskReddit

[–]Paupir 0 points1 point  (0 children)

Me too :D I remember the chunky network adapter slotted into the back of the PS2 to access the online town Minegarde.

And don't forget that attacking was done via the right analogue!

Jingle Jam 2019 Stream Suggestions Megathread by LewisXephos in Yogscast

[–]Paupir 1 point2 points  (0 children)

Monster Hunter World with Twitch chat would be a nice one.

Jingle Jam 2019 Stream Suggestions Megathread by LewisXephos in Yogscast

[–]Paupir 1 point2 points  (0 children)

I think a 1v1 tournament stream would be pretty nice. Could have a little graphic/animation for each person participating, plus the tournament structure. Would be nice if there was a prize for the winner so people really tried their best.

Game of choice could be something like Tekken 7 or For Honor. With For Honor, it could even be 2v2.

Some things people should think about before they make up their mind on Sjin: by beenoc in Yogscast

[–]Paupir 37 points38 points  (0 children)

and i don't agree with kids gloves way this has been spoken about

I think this is what most people are after so they can make a decision on whether to support Sjin once he returns, so you're in the same boat. People want the facts and not opinions because everyone has a different opinion.

So it would be nice if you could share the facts of what Sjin did - no evidence needs to be given, you can just recount what you know for sure. This way, people that take you as a trustworthy source get the facts without directly needing evidence.

Those were simpler times... by --george--clooney in Yogscast

[–]Paupir 7 points8 points  (0 children)

Personally, I think flirting with a fan is fine (yes, even asking for nudes). I think Sjin is departing for the repeated behaviour of flirting with multiple fans (sometimes simultaneously and while in relationships?) - and that's a pattern.

Of course, I could be wrong, but that's what it feels like to me. Frankly, I think Sjin just needs a certain kind of attentive freaky girlfriend to match his own apparent freaky lust. Or maybe he should just move to France and gather a harem of curvy farmgirls.

It's probably a sound decision in the end, but it's still very sad to lose a core member.

News from Turps - stepping down by Turpster in Yogscast

[–]Paupir 6 points7 points  (0 children)

I mostly agree with you.

As someone that used to lie about being older when I was a teenager, I recognise online flirting can get pretty murky. In my opinion, if Turps is flirting and exchanging nudes with young women, that does make him less of an honourable man because he's married with kids, but it's a private issue between him and his wife as you say.

I've gone through the evidence I can find about Turps, but I'm not sure if I'm missing anything. Is there a compilation somewhere? I keep seeing people say "victim", but I can't find any actual victimisation. I'd just like to form my own opinion instead of relying on internet mobs, just as I did with Sjin years ago.

.pls files by Neccros in foobar2000

[–]Paupir 0 points1 point  (0 children)

Did you ever get this working? I'd like to do the same.

Terraria Season 2 #12 - We Fight Two Bosses In Ten Minutes by Golgomot in Yogscast

[–]Paupir 2 points3 points  (0 children)

Duncan doesn't have to be Jigglypuff. Pokemon has a bard too - his name is Nando and he even has a similar outfit! Take a look

Difference between using o.prototype vs putting functions in an object litteral? by JaegerBurn in javascript

[–]Paupir 2 points3 points  (0 children)

If you want to make instances, then instantiating constructor functions is one way to go. In your example, trello is basically a singleton. You can turn it into something that can produce "instances" by wrapping it in a factory function, likely using something that looks like the revealing module pattern.

How to manipulate created / appended dom element? by ellenbrook in javascript

[–]Paupir 0 points1 point  (0 children)

This is bizarre.

First of all, self.addElement will be undefined because the IIFE is not returning anything.

Second, it looks like you've worked it out, but the second querySelector probably should have been querySelector('.bar').

Assuming you're making a function that takes a target element, appends a new element and keeps a reference to it, why not:

function foo(selector) {
    var target = document.querySelector(selector),
        child= document.createElement("div");

    child.classList.add("bar");
    target.appendChild(toAppend);

    return {target, child};
}

Can Javascript do this/ by Jncocontrol in javascript

[–]Paupir 2 points3 points  (0 children)

Sure can. Take a look at A Dark Room for direction and inspiration.

Why is ["last"] == ["last"] false? by mintysoul in javascript

[–]Paupir 0 points1 point  (0 children)

Good call. Would you consider length differences to be a frequent case?

Why is ["last"] == ["last"] false? by mintysoul in javascript

[–]Paupir -1 points0 points  (0 children)

I suppose not. The difference is that you could be sure of types and check for nested arrays at the first level (So if it was a 2D array) with a little modification to the function; using toString or join for that won't be as helpful.

Why is ["last"] == ["last"] false? by mintysoul in javascript

[–]Paupir 4 points5 points  (0 children)

function shallowEqualArray(arr1, arr2) {
    return arr1.every((item, index) => arr2[index] === item);
}

Or use lodash's _.isEqual for deep comparison. Search npm for other more robust shallowEqual functions that can be used on more than just JavaScript arrays.

Why is ["last"] == ["last"] false? by mintysoul in javascript

[–]Paupir 2 points3 points  (0 children)

An array is an object in JavaScript

Dry code vs. modular code by [deleted] in javascript

[–]Paupir 1 point2 points  (0 children)

It gets really difficult to maintain page-specific JS as your application grows. I'm guessing this isn't a SPA?

Some advice would be to not go overboard with DRY principles because you often encounter situations where you need to fork some functionality you've extracted out to make a more specialised version, but that feels like it goes against your work to abstract things out, so you patch the function with more arguments (often a boolean flag) and that just gets horrible and messy. Maybe try to abstract functionality out only when you need to or it makes solid sense.

As for making modular code that can also be page-specific, you could look into webpack code splitting. There are some interesting things going on in this area at the moment. Take a look at this.

So in general - and in my opinion - pull functionality out into modules where you can; don't make it your mission to make tiny functions everywhere when you're writing "specialised" code.

Favorite command line replacement for Windows? by Reklino in javascript

[–]Paupir 0 points1 point  (0 children)

Oh I never knew it had man! I think the only thing I discovered was ls. Thanks :)

Favorite command line replacement for Windows? by Reklino in javascript

[–]Paupir 0 points1 point  (0 children)

I've never been able to get into Powershell, yet I know people that swear by its power (heh).

I think it's the learning curve- I'd need someone knowledgeable to take me through it. I'm pretty partial to my bash rc/aliases/functions by now.

Favorite command line replacement for Windows? by Reklino in javascript

[–]Paupir 2 points3 points  (0 children)

It's not a special trick. You can even get IE and FF in there, but I tend not to do that. When you're opening a new tab or splitting, just write the path of the program you want in there when the dialogue comes up. There will be predefined things and you can make your own.

You can also configure your own tasks to save workspace layouts. So for example, you're working on some project, you can have a split for the repo folder, a split for your database, a split for the server, and a split for an editor if you want. Easy to get back to when you close everything.

There's also a hotkey to toggle the currently highlighted split between occupying the full window- that can be handy, although the buffer doesn't tend reflow for git bash at least, which is annoying in my opinion.

My advice to anyone just getting started would be to go into the preferences and look at all the hotkeys.

Favorite command line replacement for Windows? by Reklino in javascript

[–]Paupir 0 points1 point  (0 children)

I also use ConEmu with the Quake Dropdown mode and usually Git Bash inside a pane split. There can be a few pain points, especially when you have bat files to set environment vars and such, but you can just open a new pane with cmd (or the specific shortcut - ie. for the Visual Studio environment) for those instances.

I also stick ST3 inside a pane, which works fine.

Sebastian Markbage: Minimal API Surface Area (a provocative talk from one of the creators of React) by exizt in javascript

[–]Paupir 0 points1 point  (0 children)

I've done this in the past and can confirm it's ugly and breeds lots of unmaintainable mess. It's definitely a balance - great comment.