spartanatreyu

joined 2 years ago
[–] [email protected] 5 points 4 days ago

Polonius

"Well it's about damn time" smokes cigar


Yes, I know it's not out out yet, but we're nearly there

[–] [email protected] 14 points 1 week ago

^ this

Using AI leads to code churn and code churn is bad for the health of the project.

If you can't keep the code comprehensible and maintainable then you end up with a worse off product where either everything breaks all the time, or the time it takes to release each new feature becomes exponentially longer, or all of your programmers become burnt out and no one wants to touch the thing.

You just get to the point where you have to stop and start the project all over again, while the whole time people are screaming for the thing that was promised to them back at the start.

It's exactly the same thing that happens when western managers try to outsource to "cheap" programming labor overseas, it always ends up costing more, taking longer, and ending in disaster

[–] [email protected] 1 points 1 week ago* (last edited 1 week ago) (1 children)

Yeah but each of those examples are only trying to disinform in specific areas that fit with their agenda.

Israel with zionist messages, north korea with scamming and hacking for crypto, etc...

Wheres Russia is trying to disinform and sow discord and discontent everywhere in the Western sphere (as opposed to just one or two topics) because any fighting within the West (regardless of what the fight is about) benefits them.

[–] [email protected] 1 points 1 week ago

Well... Assuming that it's not using bits of typescript that will be deprecated in TS 6 and removed in TS 7 (the native go implementation)

[–] [email protected] 6 points 1 week ago (3 children)

Bruh, Russia is famous for their bot farms

[–] [email protected] 3 points 2 weeks ago

This is why you're meant to comment your code.

Your code tells you "what", your comments tell you "why".

Here's a good review of comments in the redis codebase: https://antirez.com/news/124

[–] [email protected] 5 points 1 month ago

and those who prevent history from being taught, want to lift themselves up at the expense of others

[–] [email protected] 3 points 1 month ago (1 children)

I would advise against using pixels for margin/padding since it'll have issues for users who have different zoom/text sizes than you do.

Stick to rem for margin and padding.

If you're still early days with css, it's worth pointing out that you should use a "css reset" file. It will solve problems for you that you don't even know exist yet.

[–] [email protected] 2 points 2 months ago

The more windows falls down the enshittification spiral, the more likely the EU will get pissed at Microsoft and fund Linux environments where it's needed.

[–] [email protected] 2 points 3 months ago (1 children)

What did Australia do?

I know it has backwards security laws.

[–] [email protected] 9 points 4 months ago* (last edited 4 months ago) (1 children)

I think the more important question here is why are you using the internet without an adblocker?

But to answer the lesser question, stick this in a pinned tab and download what you need: https://devdocs.io/offline

[–] [email protected] 1 points 4 months ago* (last edited 4 months ago)

I wonder if the slowdown in non-ai features this release was influenced in some way by their migration away from AMD modules to ES modules.

Putting myself in their shoes and taking codemods into account, I wouldn't want to make a big feature and have to worry about AMD/ES module concerns. Why do that when instead I could get a bunch of checking and smaller (but non headline) tasks out of the way and get back onto the larger features in 1-2 months after the ES modules are proven to work and I don't have to worry about rolling back changes.

Either that, or sometimes by statistical eventuality we end up with changes (which all take a different time to be completed) just not being released within a small period of time.

 

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 10 months ago* (last edited 10 months 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.

 
1
Typescript 5.2 Released (devblogs.microsoft.com)
 

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.

 

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

 

The mistake most devs make when trying to document their project is that they only make one (maybe two) types of documentation based on a readme template and/or what their mental model of a newcomer needs.

Devs need to be actively taught that:

  1. Good documentation isn't one thing, it's four. To have good documentation, you need all four distinct types of documentation.
  2. What the four types of documentation are (this is discussed in the link)

If you don't have all four types of documentation, you have bad documentation.

view more: next ›