spartanatreyu

joined 2 years ago
[–] spartanatreyu 2 points 1 month ago

Flip-flopping in and of itself isn't bad.

What it is - is a symptom.

A symptom of being an absolute dumbass. Now that is what's bad.

[–] spartanatreyu 0 points 1 month ago* (last edited 1 month ago) (2 children)

You can be right wing in FOSS networks.

There's two things you can't do (at least if you want to keep a community healthy):

  1. Break the rules of the network (which are usually things like: don't spam, don't scam, "Wheaton's Law", etc...).
  2. Be so unpleasant to be around that others don't want to be around you.

There are cases of those who dehumanise others (e.g. racists, anti-trans, literal nazis, etc...) who get banned because they're doing the two things you can't do. But in those cases they're not banned because they're right wing, they're banned because those actions break communities, so the community has to ban them to continue existing.

[–] spartanatreyu 3 points 1 month ago (1 children)

display port cables are cheaper than usb-c cables that support display port

[–] spartanatreyu 2 points 2 months ago

Two things:

  1. Learning git reflog will save you from needing to worry about the sudden dread that comes from using reset hard in git.

  2. Using an proper git client will save you needing to use reset hard in the first place. I highly recommend the confusingly named: Fork. It's free the same way that sublime text and winzip are: about once a month it asks for you to buy it but you can click on the "I'm still just trying it out" to keep using it for free.

[–] spartanatreyu 3 points 2 months ago* (last edited 2 months ago) (1 children)

Colemak DH.

Got proficient with Dvorak two decades ago but it didn't really give any tangible benefits over qwerty. It's nice in theory but doesn't really pan out in practice.

Since I already knew how to touchtype in qwerty, colemak-dh was really easy to learn (as far as new layouts go).

To prevent myself from looking down at my hands while learning, I made this legend, printed it out and hung it just under my display: https://codepen.io/spartanatreyu/pen/XWBeyRd

Just as with any layout, if you don't do explicit training you will hit a natural performance plateau.

I did some colemak dh training here: https://gnusenpai.net/colemakclub/

If you've never done type training before, you need to do more than 10 mins a day on a dedicated training app to see any results. I did 15 mins a night while I had dinner cooking. After 3 months I was back to my normal typing speed post-training qwerty typing speed.

Also, if you have the opportunity to get a split keyboard, you can do this neat thing where you can put the brackets along the inner columns of the keyboards, you can see me doing that here: https://configure.zsa.io/moonlander/layouts/Mvngb/latest/1

[–] spartanatreyu 5 points 2 months ago

Polonius

"Well it's about damn time" smokes cigar


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

[–] spartanatreyu 1 points 2 months ago

Gay panic is still a legal defence in many parts of the world

[–] spartanatreyu 1 points 2 months ago (1 children)

How would you even know?

[–] spartanatreyu 14 points 2 months 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

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

You’re kind of missing the point.

I'm making fun of them by pointing out how they're wrong

It’s an easily falsifiable statement.

Yes

It’s an incendiary statement designed to foment division.

Yes

Everyone knows there are more than 2 genders.

Actually no, not everyone knows. You'd be surprised how people are ignorant to these matters (by choice, or repressive environment)

[–] spartanatreyu 1 points 2 months ago* (last edited 2 months 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.

 

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: ‹ prev next ›