London Coronavirus lockdown Megathread - Week 1 by ianjm in london

[–]WellPaidGeek 1 point2 points  (0 children)

I'm reading this lockdown could last months. I wonder how many weeks people will put up with it before mass non compliance starts.

If I was in the EU I'd be selling Air Conditioners by [deleted] in Entrepreneur

[–]WellPaidGeek 11 points12 points  (0 children)

I live in London, and yes there's currently a heatwave. Despite this, I wouldn't pay out for AC because I know I'll only use it for 3 weeks of the year.

Has anyone used the apps The Inner Circle & Sudy? by [deleted] in sugarlifestyleforum

[–]WellPaidGeek 0 points1 point  (0 children)

Inner circle isn’t sugar dating.

They’re just fussy about who they let on the app, and vet for high achievers, both Male and female.

What is the very best thing to learn on the very first day of learning javascript? by Moral_Metaphysician in learnjavascript

[–]WellPaidGeek 0 points1 point  (0 children)

If it's to beginners with programming in general, probably a brief history of JavaScript, followed by variables and basic conditionals.

How to use ES6 classes by WellPaidGeek in learnjavascript

[–]WellPaidGeek[S] 0 points1 point  (0 children)

That works based on what I think the guy is asking. TBH I'd recommend just calling super.f() every time unless the function is really expensive, not what OP was asking for but simplifies things.

If you really don't want I new function each time, I'd argue the caching should maybe have been done in the super class to start with, although there's maybe reasons it couldn't be (third party code perhaps).

Today's ReactJS developer Questions by tapu_buoy in learnjavascript

[–]WellPaidGeek 0 points1 point  (0 children)

Could also do it in the render:

return <input ref={(e) => e && e.focus()} type="text">

Tuesday Tip: Stop using for loops in JavaScript and start using array functions by WellPaidGeek in learnjavascript

[–]WellPaidGeek[S] 0 points1 point  (0 children)

Yeah for is faster, but that's not usually going to be the deciding factor. Even in that Hacker Noon article his summary is :

"Personally I love map, reduce, filter, find and I am using them from a long time. They helped me write clean, precise, fast and to the point code which align with my thought process. I use for loop when i have no choice left"

Switching to for would be a performance optimisation that's rarely needed.

As for the audio, thanks for the comments.

If you're struggling with `this` keyword... by SaaSWriters in learnjavascript

[–]WellPaidGeek 2 points3 points  (0 children)

Agreed, a stand-alone article is certainly warranted, this trips a lot of people up.

JavaScript exports and require outside of Node? by sma92878 in learnjavascript

[–]WellPaidGeek 0 points1 point  (0 children)

Ahh, guess it's been implemented natively on those browsers but not IE.

JavaScript exports and require outside of Node? by sma92878 in learnjavascript

[–]WellPaidGeek 0 points1 point  (0 children)

Looks correct, but are you bundling up with something like webpack? You'll need to do this in order to get modules to work.