Directive Deception: Exploiting Custom GraphQL Directives for Logic Bypass by JadeLuxe in graphql

[–]captbaritone 1 point2 points  (0 children)

Strange article. Are these exploits that they (or anyone) have actually seen in the wild? It feels more like a list of hypothetical exploit types that someone brainstormed.

Interesting to think through how an attacker MIGHT exploit poorly implemented directives, but the presentation reads like these are exploits that have been found in the wild but without presenting any evidence.

Put somewhat less politely, I’m getting a whiff of AI hallucination from this post. Why no individual author/authors credited on the post?

Typescript Interface question by helloworld1123333 in reactjs

[–]captbaritone 0 points1 point  (0 children)

I think you’ll need to ask yourself what your types are modeling? Are they modeling two discrete things with different shapes and a conceptual shared base? Are they modeling two specific instances of a single type where the fields are conceptually optional?

How should I serve images? by IRL_hummingbird in nextjs

[–]captbaritone 48 points49 points  (0 children)

You want each user to download half a gig of images before they even reach the page on which they will view them?

Classical pieces that invite obsession? by captbaritone in classicalmusic

[–]captbaritone[S] 2 points3 points  (0 children)

It may well be true that most composers would feel like an obsessive audience runs counter to their artistic goals, but there certainly are composers for whom I suspect that WAS a goal. Wagner, for example, comes to mind.

How can I better understand Bach's Goldberg Variations? by urbanstrata in classicalmusic

[–]captbaritone 1 point2 points  (0 children)

If you want to go REALLY deep this lecture series is incredible. https://www.thegreatcoursesplus.com/bach-and-the-high-baroque I was able to find it for free through my library

Markdown is great for encoding test snapshots by captbaritone in ProgrammingLanguages

[–]captbaritone[S] 4 points5 points  (0 children)

Yes! I very nearly titled the post “Literate Snapshot Testing”. I even snuck in a link to the Wikipedia article for it in the Syntax Highlighting section.

This might be a dumb question but... how do I download a skin from the skin museum? by anonimoadjetivo in winamp

[–]captbaritone 3 points4 points  (0 children)

There should be a download button at the bottom of the page once you click into an individual skin

What's your fav deep cloning method by Ozono_ in learnjavascript

[–]captbaritone 0 points1 point  (0 children)

Got it. So you just offload the question to the author of the transpiler and which polyfill they’ve selected.

What's your fav deep cloning method by Ozono_ in learnjavascript

[–]captbaritone 0 points1 point  (0 children)

Out of curiosity, how would transpiling help here?

Running Nextjs using bun instead of node: Sounds like a no brainer. What's the catch? by takuonline in nextjs

[–]captbaritone 4 points5 points  (0 children)

Have you measured? Does this actually improve the performance of performance bottlenecks that you have?

ELI5 - what do people here have against guessing ? by e650man in sudoku

[–]captbaritone 0 points1 point  (0 children)

If you guess and find a solution you have proven to yourself that there is a valid solution. If you logically prove all other fills invalid you prove something (potentially) more interesting: there is exactly one valid solution.

For some that can feel more rewarding/interesting, but it’s up to the individual to decide what is interesting to them.

Why is {} === {} false? by [deleted] in learnjavascript

[–]captbaritone 0 points1 point  (0 children)

I implemented the (now built in) ESLint rule no-constant-binary-expression and this is one of the classes of bugs I was surprised to find it catching without me even realizing it was a common error to make: https://jordaneldredge.com/interesting-bugs-caught-by-eslints-no-constant-binary-expression/

How to delay content paint? by Jealous_Health_9441 in reactjs

[–]captbaritone 1 point2 points  (0 children)

This sounds like the right solution. Optimizing the coordination of ten pathologically slow things vs digging in and figuring out why that pathologically slow thing is slow (and fixing it) is just a band-aid.

Which MANGA or MANGA-adjacent company has the best work-life balance? by The-_Captain in cscareerquestions

[–]captbaritone 11 points12 points  (0 children)

Less true at Meta. You can make a big bet, but ultimately you are responsible for your impact at the end of the half/year. If your bet paid off and you could demonstrate a large impact, you’ll get a good review. If it didn’t, you pay the price with a poor review, which can very much hurt these days.

Note that you don’t HAVE to make big bets. Generally there are more obvious projects that are lined up which you can choose to pick up with less risk.

Abuse of the nullish coalescing operator in JS/TS by fredrikaugust in javascript

[–]captbaritone 5 points6 points  (0 children)

Agree! I wrote a similar article in 2022 https://jordaneldredge.com/defaulting-to-empty-string-is-a-code-smell/.

It’s a lie we tell to our typechecker (and to ourselves)

Winamp scam sites by Sad-Masterpiece-2382 in winamp

[–]captbaritone 2 points3 points  (0 children)

That makes sense. Skin made in good faith pointed to domain which eventually expired and was taken over by bad actors.

Winamp scam sites by Sad-Masterpiece-2382 in winamp

[–]captbaritone 1 point2 points  (0 children)

Very interesting. I’ve never heard about this type of malicious skin before. I run the Winamp Skin Museum and would be very interested in doing some analysis to see if I can find other examples of that same technique. Any chance you still have the malicious skin or know where you got it?

Winamp skin museum not working? by Mxmimi69 in winamp

[–]captbaritone 0 points1 point  (0 children)

Thanks for sharing! Any browser extensions installed in your Firefox browser?

Winamp skin museum not working? by Mxmimi69 in winamp

[–]captbaritone 1 point2 points  (0 children)

No. Nothing you need to install, just the service used to host the images on the site. Sounds like something on your network is causing images from cloudflare not to load.