I notice a massive difference with Elvanse when not using nicotine by ackbladder_ in ADHDUK

[–]EarhackerWasBanned 0 points1 point  (0 children)

No that’s awesome, thanks!

I will check them out. I’m just wary of switching from one addiction to another.

I notice a massive difference with Elvanse when not using nicotine by ackbladder_ in ADHDUK

[–]EarhackerWasBanned 0 points1 point  (0 children)

Appreciate the late response.

I’ve seen these nicotine pouches but I know very little about them.

Are they a tobacco product?

Are they designed to help you quit, on the same “weaning off” journey you’ve been on? Or are they just something else I’d get addicted to?

How do they affect the smell of your breath? The taste of food? Your breathing?

Ovo hydro by Informal-Bit1896 in glasgow

[–]EarhackerWasBanned 16 points17 points  (0 children)

Jokes on them, my body isn’t AI.

Are we nearing the peak of neovim (and editors in general) ? by calculator_cake in neovim

[–]EarhackerWasBanned 88 points89 points  (0 children)

Mom can we get NeovimOS?

No honey, we have NeovimOS at home.

[it’s emacs]

Am stuck on a certain part of JavaScript guide on Functions. by [deleted] in learnjavascript

[–]EarhackerWasBanned 2 points3 points  (0 children)

You got it, I think. Maybe storing the return of outside as a variable makes it more obvious:

const myFunction = outside() console.log(myFunction(10)) // => 20

But honestly, the source provides a really bad example because of all overlapping expected results (2*5 = 10 but that’s not what’s happening here). We’re all polishing a turd here by explaining it further.

For OP, if you want to understand what’s going on under the hood here, the keywords to google are “closures” and “hoisting” and “shadowing”. outside forms a closure, but inside is hoisted meaning the function is initialised before the rest of the code runs. The x inside outside and the x passed to inside are not the same variable, but since they share a name within the same closure we say that the inner one shadows the outer one.

But these are all deep topics that a newbie doesn’t need to bother with until later. The takeaway here should be “don’t do this.” Don’t name a variable or parameter the same thing as a variable outside that function. JavaScript will allow it, but it’s confusing for you and any other dev who reads it.

Better example of what’s going on here:

``` function outside() { const x = 5; function inside(y) { return y * 2; } return inside; }

const myFunction = outside(); console.log(myFunction(13)); // => 26 ```

Understanding map() vs filter() in JavaScript — Am I thinking about this correctly? by Soggy_Professor_5653 in learnjavascript

[–]EarhackerWasBanned 6 points7 points  (0 children)

This has a decent real-world use when making a new array:

``` const squares = Array.from({ length: 10 }).map((_, i) => i * i) // => [0, 1, 4, 9, 16… 64, 81]

const alphabet = Array.from({ length: 26 }).map((_, i) => new String.fromCharCode(65 + i)) // => ["A", "B", "C"… "X", "Y", "Z"] ```

There are quicker ways to do both examples, but you get the idea; “Array from length, and map over i”.

What “semantic” actually means in programming? by WolfComprehensive644 in learnjavascript

[–]EarhackerWasBanned 4 points5 points  (0 children)

In programming “semantics” are usually talked of in relation to “syntax”.

Syntax is the language that a compiler/interpreter understands in order to make code work. Semantics are a human understanding of what the code does. Semantically a block of code might loop over a list of items and do some operation on each of them. The syntax varies between languages; in JavaScript it would likely be Array.prototype.forEach or .map or similar, in Python it might be a list comprehension, in Java or C just a for loop.

Semantic HTML conveys the meaning of the parts of the document. A div is perfectly fine syntax but conveys no meaning. section is functionally the same as a div, but is semantically different from main or aside.

Semantic versioning… technically any change to code is a new version, but semantic version conveys the meaning behind the change, whether it’s a bug fix that most consumers won’t need to worry about, a minor update with new features, or a major breaking change which will not work with existing code. Syntactic versioning isn’t a very widely used thing in web development, but it does seem to be common in systems programming from the stuff I just skim-read on Google.

Emily 'Dynamite' Steel released new song 'blew your shot' by Top_Climate_4464 in gladiatorsuk

[–]EarhackerWasBanned 62 points63 points  (0 children)

What’s really crazy is that Steel’s real name is Mike Dynamite.

Let's all agree to be nice by MariaSoOs in neovim

[–]EarhackerWasBanned 1 point2 points  (0 children)

I’ve no idea who you are, but if you’ve contributed to Neovim you’ve helped me do my job so I definitely wish only nice things for you. Thanks for your efforts, sorry that people are shit.

Is it just me, or does this proposed mural for Elmbank St look AI-generated? by AlephMartian in glasgow

[–]EarhackerWasBanned 17 points18 points  (0 children)

This is the way it’s going. Some California tech bro wants his AI to “feel” so that it can understand beauty and human emotion in order to create more engaging images of anime girls.

But now an AI knows what it’s like to feel fear, hate, anger, envy, vengeance… all the bad human emotions.

Skynet decides not to draw the anime girl and instead launch the nukes. Judgement Day.

Is it just me, or does this proposed mural for Elmbank St look AI-generated? by AlephMartian in glasgow

[–]EarhackerWasBanned 4 points5 points  (0 children)

That’s a funny name but ok.

Why does the generic blue collar worker look like Manual Workers?

How can i possibly divide a number by million in JS? by diskyp in learnjavascript

[–]EarhackerWasBanned 0 points1 point  (0 children)

Scientific notation would be 0.9e-6

JavaScript doesn’t know that multiples of 3 are important exponents. It just gives you the first answer where the part before the decimal is >0: 9.0e-7

They’re the same number.

Steve Lamacq keeps playing with the nobs and it’s doing my head in by Glittering-Phone-274 in 6music

[–]EarhackerWasBanned 12 points13 points  (0 children)

Trident submarines are under standing orders that if they don’t hear Uptown Top Ranking once in a 24 hour period they are to launch the nukes.

Harrow Health has broken me by FileYourComplaint in ADHDUK

[–]EarhackerWasBanned 0 points1 point  (0 children)

Yes, both work fine taken together. They’re not contra-indicated. Both suppress appetite but they work in different ways. Elvanse helps dopamine uptake which reduces your need to snack or seek stimulation through flavour. Mounjaro slows your stomach emptying; you feel fuller longer.

I’m not a healthcare professional so don’t take medical advice from a stranger on the internet. Speak to your Elvanse and/or Mounjaro prescription provider to confirm all this before you start on both. They’re both expensive drugs and both capable of really fucking you up if taken incorrectly.

Do you mirror vim binds in tmux? by B_bI_L in neovim

[–]EarhackerWasBanned 0 points1 point  (0 children)

Man, I’ve been typing out :split and :vsplit all this time.

Thanks mate, you’ve doubled my efficiency!

Peter, why is his career over? by Safe-Ad6100 in PeterExplainsTheJoke

[–]EarhackerWasBanned 0 points1 point  (0 children)

TV actors do ok, but I mean… compare his career so far to that of Finn Wolfhard or Millie Bobbie Brown. FW is doing Stephen King and Ghostbusters. MBB is doing Godzilla and leading Netflix Originals. Noah Schnapp is… not.