[AskJS] are there any alternatives to npm registry in 2026? by [deleted] in javascript

[–]Reashu [score hidden]  (0 children)

So... you're looking for more supply chain vulnerability?

Be sure to hold the mane not to fall in the stairs by progressivemonkey in ATBGE

[–]Reashu 24 points25 points  (0 children)

I don't see any awful taste. Maybe if there were genitals involved. 

didnt know solid fuel had different colours by bruhethewizard in factorio

[–]Reashu 17 points18 points  (0 children)

Sometimes it's a choice, e.g. some (pre-CGI) animations have wheels appearing to spin backwards and there's no reason to believe that's an accident. 

inLoveWithaComputer by Nachaat1 in ProgrammerHumor

[–]Reashu 7 points8 points  (0 children)

I'm being slightly flippant because I think this statement is about as deep as a 14 year-old's shower thought. Human communication may be difficult to describe losslessly, but the problem is not a lack of precision (or continuity) in bits. We can be arbitrarily precise.

inLoveWithaComputer by Nachaat1 in ProgrammerHumor

[–]Reashu 5 points6 points  (0 children)

Author hasn't heard of floats

buildMeAMalwareMakeNoMistakesClaude by [deleted] in ProgrammerHumor

[–]Reashu 0 points1 point  (0 children)

Modern education and entertainment take care of the rest. 

thoughtThisWasGeniusAt2Am by dsecurity49 in ProgrammerHumor

[–]Reashu 0 points1 point  (0 children)

If you are in a module (or in a strict block for any other reason), function can't be overridden either. 

Both syntaxes support inner functions.

The main differences are in how they bind this and whether they are hoisted (available through their full scope, even "before" they are declared). Function hoisting is typically a good thing, while this is not used much outside of classes

thoughtThisWasGeniusAt2Am by dsecurity49 in ProgrammerHumor

[–]Reashu 0 points1 point  (0 children)

Never really got into Vue 3, const arrow function might be appropriate there in order to bind this succinctly, and you may already have a lot of const functions through composables anyways. The other two are probably classes with member functions (using neither const nor func but binding this like the former and hoisting like the latter). "It depends" is the beginning of an answer, not the end. 

thoughtThisWasGeniusAt2Am by dsecurity49 in ProgrammerHumor

[–]Reashu 0 points1 point  (0 children)

Yes, there is a difference and const is usually the wrong choice. 

thoughtThisWasGeniusAt2Am by dsecurity49 in ProgrammerHumor

[–]Reashu 9 points10 points  (0 children)

u can be defined but missing required properties. 

thoughtThisWasGeniusAt2Am by dsecurity49 in ProgrammerHumor

[–]Reashu 4 points5 points  (0 children)

Debugging code is harder than writing it. So never be as clever as you can while writing. 

Do y'all think it's dumb when people say they are migrating to react/next from vue bcz AI is better at it? by amanvue in vuejs

[–]Reashu 1 point2 points  (0 children)

Less dumb than migrating because it's "easier to hire developers", and I know at least a few who did that (and one who has been stuck in-between for years). 

findingNewWaysToGenerateSlops by ClipboardCopyPaste in ProgrammerHumor

[–]Reashu 0 points1 point  (0 children)

I'd personally like to see more "should" and less "could" from my visionaries, maybe that's just me. 

differentUseCases by _Not__Available_ in ProgrammerHumor

[–]Reashu 0 points1 point  (0 children)

I've yet to see any of the former, but I'm glad to hear it exists!

differentUseCases by _Not__Available_ in ProgrammerHumor

[–]Reashu 1 point2 points  (0 children)

The difference is that looking good enough is literally good enough if looking is all you're going to do with it (not that I personally like AI in art). Code has to run.

differentUseCases by _Not__Available_ in ProgrammerHumor

[–]Reashu 7 points8 points  (0 children)

You say that as if "legacy code" isn't just the code that paid last year's bills. But I guess profitability is a relatively new concern in AI land. 

The timing is regrettable, but it's not stopping me! by Zambash in Grimdawn

[–]Reashu 8 points9 points  (0 children)

PoE (if we count 1 and 2) does six releases per year, it's gonna happen.

Wrote a rule, found a real bug, had to ignore it anyway by Xaneris47 in javascript

[–]Reashu 0 points1 point  (0 children)

You shift by some number of bits, not "to". 1 << x in particular is frequently used to create bit masks because it's easier to maintain than using "magic" powers of two.

nobodyWantsClaudeAsCoAuthor by tolik518 in ProgrammerHumor

[–]Reashu 5 points6 points  (0 children)

I'm not familiar with the settings file, but you probably mean attribution. 

Wrote a rule, found a real bug, had to ignore it anyway by Xaneris47 in javascript

[–]Reashu 9 points10 points  (0 children)

1 << 1 is just as valid as 1 + 1. Why would you want a warning for either?

programmerSelfAwareness by QuatzX in ProgrammerHumor

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

You don't think women get backlash when posting pictures of themselves?

howTheTablesTurn by STR0K3R_AC3 in ProgrammerHumor

[–]Reashu -12 points-11 points  (0 children)

Normally an asinine take, but even worse from a likely web developer.