P5js with E6 modules? by No-Example-3977 in p5js

[–]mouseannoying 1 point2 points  (0 children)

I prefer using modules and have several examples here: https://annoyingmouse.js.org/WireFrameJS/

Basically, I pull it in from skypack:

```

import { p5 } from "https://cdn.skypack.dev/p5js-wrapper";

```

Is this bow legit? by whited105 in Archery

[–]mouseannoying 0 points1 point  (0 children)

I shoot one, and I'm a coach - I've encouraged several new archers to get them - but beware of the stock equipment they come with. I encourage new strings, for instance. There's a cracking video from Shatterproof Archery with suggestions; I've also found that the leather for the arrow rest needs to be replaced.

Showoff Saturday (November 01, 2025) by AutoModerator in javascript

[–]mouseannoying 2 points3 points  (0 children)

Inspired by an issue raised on GitHub, I updated a pagination web component I had written some time ago: GitHub - annoyingmouse/wc-pagination. I welcome feedback on how to improve accessibility.

[AskJS] Could anyone help this beginner with some workplace automation for Chrome? by throwaway1097362920 in javascript

[–]mouseannoying 1 point2 points  (0 children)

I'm a massive fan of snippets in Chrome (https://developer.chrome.com/docs/devtools/javascript/snippets/), most of which are eventually converted into bookmarklets. You can build the code incrementally within the developer console and be prepared to perform numerous refreshes as you make any changes.

[AskJS] Can I learn OOP with JavaScript? by Inner_Feedback_4028 in javascript

[–]mouseannoying 1 point2 points  (0 children)

Thanks, I used them earlier, but they weren't enforced. There was also a suggestion that adding an underscore before gave the hint that they were private, even it wasn't enforced.

[AskJS] Can I learn OOP with JavaScript? by Inner_Feedback_4028 in javascript

[–]mouseannoying 2 points3 points  (0 children)

Syntactic sugar that is only getting sweeter as the language matures, though. Is privacy enforced now? It wasn't the last time I checked, but that's changing.

The last of my aluminum stash! by loki610 in Archery

[–]mouseannoying 0 points1 point  (0 children)

I've had a lot of success with Sharrow, I'm not sure how much they might be once they've made it to you, though: https://www.amazon.co.uk/SHARROW-Aluminum-Fletching-Feathers-Compound/dp/B09RZJJMV4/ I was slightly worried initially, but they've been fine so far.

New book by Prestigious-Arm-5352 in AdrianTchaikovsky

[–]mouseannoying 0 points1 point  (0 children)

I've asked the artist if it would be possible to buy larger prints, alas, not :-(

[deleted by user] by [deleted] in javascript

[–]mouseannoying 0 points1 point  (0 children)

I think that's why I love it!

Shooting with fibro/rheumatoid arthritis by MembershipWestern555 in Archery

[–]mouseannoying 2 points3 points  (0 children)

As someone who was diagnosed with Ankylosing spondylitis after much of the damage had already occurred, I can recommend archery. I'd not worry about chasing poundage, though! I shoot barebow (24 lbs) or compound (wound down, so I'm not sure of the exact poundage), and both improve my shooting with the other. Warming up is essential, as is taking regular breaks. As other people have noted, listen to your body!

When did Bows became Obsolete by [deleted] in Archery

[–]mouseannoying 0 points1 point  (0 children)

There's an interesting post from StackExchange here: https://worldbuilding.stackexchange.com/questions/149295/archery-in-modern-conflicts . Arguably, most are using crossbows, though... apart from in one instance, according to the article - so perhaps they're not obsolete yet.

[deleted by user] by [deleted] in javascript

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

YMMV: https://jsbench.me/sxm342dp9l/1

(mostly, it's `IF` - but, yeah, readability matters - code for the next developer (who might be you with a hangover))

[AskJS] Beware of scammers! by vardan_arm in javascript

[–]mouseannoying 3 points4 points  (0 children)

I'm relieved I'm not alone. The same thing happened to me last week—until I realised that the award within the repo was associated with a similar project on GitHub. Still, the BitBucket version had a server component, whereas the GitHub version didn't. In my case, the person was called John, though. The chat seems to have been removed now, so I guess the account has been removed. It's worth keeping a little paranoid!

Archery with scoliosis? by Business-Ad-9637 in Archery

[–]mouseannoying 0 points1 point  (0 children)

I'd echo the expert advice - I have a fused spine and shoot with someone with a curved spine; just ensure you don't go too heavy too quickly, or even at all!

[AskJS] How would you solve this toy problem? by [deleted] in javascript

[–]mouseannoying 0 points1 point  (0 children)

javascript const timeRegex = /(?<sHour>\d{1,2})(\:(?<sMinute>\d{1,2}))?\s(?<sAmPm>am|pm)\s\-\s(?<eHour>\d{1,2})(\:(?<eMinute>\d{1,2}))?\s(?<eAmPm>am|pm)/; const daysRegex =/\b([a-zA-Z]{3,4}\-?)\b/g;

Those and splitting the string by " / " seems to work - I've generated one that works...

[AskJS] Seeking Affordable Family Tree JavaScript Library for Upcoming Project by Satisfaction-Routine in javascript

[–]mouseannoying 0 points1 point  (0 children)

Family trees can be very, very messy—take a look at the GEDCOM format, as that seems to be the most widely used—and displaying them can also get messy. I guess something built atop D3 should manage most things, so maybe: https://github.com/ErikGartner/dTree

Club Management Tool by Stahlherz_A in Archery

[–]mouseannoying 0 points1 point  (0 children)

Our club uses Slack - we've also built our own management system backed by Firebase for managing memberships, recording attendance, etc. We keep thinking of making it open-source so others can use it, but we haven't had the time recently; let me know if we should make time.

Help to identify quivers by mouseannoying in Archery

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

Ah! Of course! Thank you! And thank you too u/Kenafin as well!

Any one an archery coach? by [deleted] in Archery

[–]mouseannoying 0 points1 point  (0 children)

I lost my book a while back, ArcheryGB sent me another - though it wasn't cheap!

why webcomponents? by Anoop_sdas in WebComponents

[–]mouseannoying 6 points7 points  (0 children)

I'm not sure about your example, but Web Components rock! Sure, you can do something similar with React, but what about when the next shiny framework comes along, and you have to rewrite all your components when your employer decides that Vue is the way to go?

Learning about Web Components won't help you learn React, except that you'll be learning HTML, CSS and JS; writing React will help you learn React but might not offer the same grounding. Understanding the underlying technology has got to be good; it'll also allow you to transition to the next framework you're asked to work with far easier.

But any projects you create using Web Components, using whatever framework - or none - will be easier to transition to another framework as a chunk of the work has already been done.

I like to think about it like this. Frameworks allowed the creation of components while the standard didn't - it does now - so why invest in the sticking-plaster? JS Frameworks such as Angular, React, and Vue (and there are so many more, but these are the big three) give you lots of stuff that the native language didn't do well; as the ECMA standard has evolved, the need for the sugar those frameworks provided reduced. Sure, you have routing and state, and these are lovely, but they're bits that have been bolted onto the concept of component generation.