[-] [email protected] 28 points 3 weeks ago

The future is ~~webp~~ JPEG XL...

And telling software patents to burn in hell.

[-] [email protected] 18 points 1 month ago

It wouldn't, a simple finite state machine that any intelligent entity could emulate would be enough.

But people have completely deluded themselves into thinking that (what CEOs and marketers call) "AI" is actually intelligent, and this case study shows how preposterous that fantasy actually is.

[-] [email protected] 28 points 4 months ago

There are only two genders...

Except for: <giant list of genetic, epigenetic, developmental, etc... things that happen with human beings>.

Not to mention all the other things that happen with other living things

[-] [email protected] 132 points 10 months ago

That's 41 degrees for everyone who doesn't measure things in bird per gun.

[-] [email protected] 32 points 11 months ago

What to know about blue supermoons:

  1. They literally mean nothing.
  2. The change is imperceptible to everyone.
  3. Expect useless clickbait slop about it until it passes.
12
submitted 1 year ago by [email protected] to c/[email protected]

Feel free to tweak the two custom properties in the css pane to explore the different mosaic patterns that are generated.

16
I made a thing (codepen.io)
submitted 1 year ago* (last edited 1 year ago) by [email protected] to c/[email protected]

Single HTML element + CSS only

  1. Inhale for 4 seconds
  2. Hold for 4 seconds
  3. Exhale for 4 seconds
  4. Hold for 4 seconds

And repeat

Inspired by: https://quietkit.com/box-breathing/

Note: The current Safari version has a bugged linear() implementation that has been fixed in the upcoming version.

[-] [email protected] 22 points 1 year ago

As an outsider looking in, it looks like it's a bit of a wipe the slate clean governance and moderation wise as voted on by the community.

So, now over the coming days the community will in essence vote on whether they will allow sponsorships from the military industrial complex.

[-] [email protected] 35 points 1 year ago* (last edited 1 year ago)

There's a reason Teams is/was shit.

The first teams was written in AngularJS (which is a slow to run resource hog, but fast to develop) wrapped in Electron. It was kind of a minimum viable product, just to build something quickly to get some feedback and stats on what people needed.

The plan was to build a new native version of teams and build it into the next windows while having an web fallback (built on react) for everyone else.

They stopped working on the original teams and started working on the new versions.

They got half-way through working on the native and react versions when suddenly, covid happened.

They couldn't keep working on the new versions because they wouldn't be ready for a while, so they had to go back and resume development on the old one, introducing patch after patch to quickly get more features in there (like more than 2 webcam streams per call).

Eventually covid subsided and they were able to resume development on the new teams versions.

Windows 11 launched with a native teams version (which has less features but runs super quick), and the new react based teams (which can now be downloaded in a webview2 wrapper) has been in open beta since late last year (if you've seen the "Try the new Teams" toggle, then you've seen this). The React+Webview2 teams will replace the AngularJS+Electron version as the default on July 7th.

[-] [email protected] 16 points 1 year ago* (last edited 1 year ago)

The solution is simple: Remove the dagger mid-combat.

You could make the dagger too hot to hold and it falls out of reach (off a mountain, into rushing water, etc...)

You could make the dagger dissolve away (through lava, acid, being eaten, etc...)

You could make something take the dagger (disarming, stealing, etc...)

A hag/genie/etc could place a curse on the PC (holding anything makes them experience immense pain and drop what they're holding, anything dagger they hold is turned into a spoon, etc...)

[-] [email protected] 19 points 2 years ago

That's not pro, that's just reckless gambling.

49
submitted 2 years ago by [email protected] to c/[email protected]
9
submitted 2 years ago by [email protected] to c/[email protected]
32
Typescript 5.2 Released (devblogs.microsoft.com)
submitted 2 years ago by [email protected] to c/[email protected]
14
submitted 2 years ago by [email protected] to c/[email protected]
[-] [email protected] 47 points 2 years ago

Github has always had being a job site be it's secondary feature.

Except that it has a slightly higher bar of entry to recruiters and recruitment bots spreading toxic positivity, and anyone asking for a job is able to prove (at least some of) their value by showing off their code and how they participate publically in other repos (if at all).

10
submitted 2 years ago by [email protected] to c/[email protected]
20
Typescript 5.2 beta announcement (devblogs.microsoft.com)
submitted 2 years ago by [email protected] to c/[email protected]

Shows a great example of JS' new using keyword (similar to defer in D, Go, Swift, etc...)

[-] [email protected] 20 points 2 years ago

And yet people will blindly trust AI ~~hallucinated~~ generated results...

[-] [email protected] 30 points 2 years ago

cURL was one of these for a while (according to my limited understanding)

It was made in the 90s and it didn't get commercial support until a few years ago.

9
submitted 2 years ago* (last edited 2 years ago) by [email protected] to c/[email protected]

Comments should provide context, not repeat what the code already says. The Redis codebase has 9 distinct types of comments (Function, Design, Why, Teacher, Checklist, Guide, Trivial, Debt, Backup), each with a specific goal in mind.

12
submitted 2 years ago by [email protected] to c/[email protected]
2
submitted 2 years ago by [email protected] to c/[email protected]
0
submitted 2 years ago by [email protected] to c/[email protected]

Answer: create a new object with the properties of the two original objects using the spread operator.

The order you insert the objects into the new merged object determines which object's properties take priority over the other.

Linked example:

const obj1 = { foo: "bar", x: 42 };
const obj2 = { foo: "baz", y: 13 };

const clonedObj = { ...obj1 };
// { foo: "bar", x: 42 }

const mergedObj = { ...obj1, ...obj2 };
// { foo: "baz", x: 42, y: 13 }

You can find more discussion here: https://stackoverflow.com/questions/171251/how-can-i-merge-properties-of-two-javascript-objects-dynamically

view more: next ›

spartanatreyu

0 post score
0 comment score
joined 2 years ago