spartanatreyu

joined 2 years ago
[–] spartanatreyu 2 points 4 days 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 4 days ago* (last edited 4 days 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 1 week 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 weeks ago

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

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

How would you even know?

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

[–] spartanatreyu 28 points 2 weeks ago (15 children)

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

[–] spartanatreyu 1 points 2 weeks 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)

[–] spartanatreyu 3 points 2 weeks ago (3 children)

Bruh, Russia is famous for their bot farms

[–] spartanatreyu 2 points 3 weeks ago

We got momentary gusts of 135km/h

Only me and one other person I know on the coast didn't lose power. Phones came back on Saturday afternoon, and internet came back this morning.

Today was the first day I've been out since Thursday, there's a lot of damage.

Trees have had thick branches pulled and twisted off. A house just up the road had it's roof peeled off. A building down the road the other way had it's roof pushed down and in. A building the next block over has a shattered window. There's a whirlybird on the footpath outside and I'm not sure where from. A tree grazed my bedroom window which bent the window frame out, braking branches along the way (but the window survived).

Can't get into work today due to floods.

At least now I can cross "experience a cyclone" off my bucket list.

Also I learnt where birds go during bad storms. The answer is inside hedge bushes along the ground.

13
submitted 9 months ago by spartanatreyu to c/webdev
 

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 spartanatreyu to c/webdev
 

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.

 
32
Typescript 5.2 Released (devblogs.microsoft.com)
submitted 2 years ago by spartanatreyu to c/webdev
20
Typescript 5.2 beta announcement (devblogs.microsoft.com)
submitted 2 years ago by spartanatreyu to c/webdev
 

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

36
submitted 2 years ago* (last edited 2 years ago) by spartanatreyu to c/programming
 

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.

view more: next ›