dan

joined 2 years ago
[–] dan@upvote.au 3 points 2 weeks ago

(no taxes on charities).

What type of taxes are you talking about?

[–] dan@upvote.au 0 points 2 weeks ago* (last edited 2 weeks ago)

That's what the name means :D
CR2032 is 20mm in diameter and 3.2mm thick.

Some smart home devices use the CR2450 rather than the CR2032.

[–] dan@upvote.au 7 points 2 weeks ago

See if you can find an older Sony Walkman with an SD card slot.

[–] dan@upvote.au 7 points 2 weeks ago (2 children)

That's the price in Japan - it'd likely be higher in the USA, plus the motherboard itself would also cost more due to tariffs.

[–] dan@upvote.au 57 points 2 weeks ago (5 children)

If just the board costs $124, then Nintendo charging $175 for replacement seems totally reasonable. $51 for labour isn't bad.

[–] dan@upvote.au 1 points 2 weeks ago

When you sign for something, they're supposed to verify your signature against the signature on your ID, credit/debit card, etc. Companies have gotten lazy about this, though. For example, the last time a store asked to see the signature on the back of my credit card was maybe 10 years ago?

[–] dan@upvote.au 1 points 2 weeks ago (2 children)

Plenty of companies don't actually check signatures these days.

[–] dan@upvote.au 2 points 2 weeks ago

TypeScript doesn't need the "function" keyword for a method in an object or on a class though.

const foo = {
  bar(): string {
   ... 
  } 
}

which I assume is doable because the syntax is unambiguous.

In PHP's case, the method syntax should also be unambiguous.

[–] dan@upvote.au 9 points 2 weeks ago

There's 29 Microcenters in the USA! One just opened near me.

[–] dan@upvote.au 2 points 2 weeks ago

The first programming language I used was Visual Basic (both VBA in Excel, and VB3 then VB6). I think it used redim to resize arrays.

[–] dan@upvote.au 1 points 2 weeks ago* (last edited 2 weeks ago) (2 children)

TypeScript doesn't need the "function" keyword for a method in an object or on a class though.

const foo = {
  bar(): string {
   ... 
  } 
}

which I assume is doable because the syntax is unambiguous.

PHP's object orientation is similar to languages like Java and C#, which is what I was comparing to.

[–] dan@upvote.au 4 points 2 weeks ago (1 children)

It enforces scalar types (string, int, etc) at runtime if you enable strict mode. There's also static analysis tools like PHPStan and Psalm that will flag issues at build time.

view more: ‹ prev next ›