this post was submitted on 10 Aug 2024
397 points (85.9% liked)

Programmer Humor

32371 readers
515 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 

cross-posted from: https://lemmy.cringecollective.io/post/75583

why isn't it ok? why????

Meme "the number of people who think this is an abomination" over a photo of a USB-A to USB-A cable, "but think this is perfectly acceptable" over a photo of a USB-C to USB-C cable, "makes me sick."

top 50 comments
sorted by: hot top controversial new old
[–] ekky@sopuli.xyz 152 points 2 months ago (10 children)

Huh, I'm not sure they are comparable.

Didn't USB A and USB B use a master-slave relationship in which the male would (generally) always be the slave, whereas USB C uses agreement and discussion to decide the master and slave roles regardless of connector gender.

Please do correct me if I'm wrong. Also, do we say "agent" now instead of "slave", or what is the new term?

[–] lengau@midwest.social 147 points 2 months ago (2 children)

I believe the common terms now are "domme" and "sub"

[–] DahGangalang@infosec.pub 36 points 2 months ago (1 children)

I can't tell if this is real life or sarcasm....

Did I really miss the memo on this one?

[–] communism@lemmy.ml 30 points 2 months ago (1 children)

No that's the lingo the professionals use these days

[–] Vilian@lemmy.ca 9 points 2 months ago (1 children)

I can confirm, I'm called sub at work

[–] communism@lemmy.ml 10 points 2 months ago (1 children)

Ah yeah, I've heard that offices are rolling out a new role of office cumdump. Glad to hear from someone already in the role

load more comments (1 replies)
[–] chickenf622@sh.itjust.works 13 points 2 months ago

I'm going to refer to myself as USB-B from now on

[–] NeatNit@discuss.tchncs.de 104 points 2 months ago (6 children)

I think the biggest problem I see with A to A is: who's delivering power, and who's receiving it? Maybe if you use it only with the device it came with then it'll be fine, but if anyone tries to just hook up that cable to two random computers, it might actually cause a short circuit and fry something.

Whereas Type-C was explicitly made to handle such situations.

Or a shorter reason: Type-C cable is allowed by the spec while Type-A is not.

load more comments (6 replies)
[–] SnotFlickerman@lemmy.blahaj.zone 30 points 2 months ago (2 children)

master/slave could be primary/secondary, primary/subordinate or principle/agent, so you're correct on that replacement.

I personally am a big fan of "Mantrap" becoming an "Access Control Vestibule" mostly because it's fun to say.

[–] moonlight@fedia.io 27 points 2 months ago

I like controller/peripheral, which is the most descriptive in my opinion. That's what's commonly used for SPI.

load more comments (1 replies)
[–] DacoTaco@lemmy.world 21 points 2 months ago* (last edited 2 months ago)

In the usb world its "host" and "device", not "master" and "slave".
But yes you are right

[–] unmagical@lemmy.ml 12 points 2 months ago

Both ends of a USB cable are generally male (unless you're talking about an extender). Generally the type B end (in mini, micro, or full configuration) would be the client though I have seen a couple of clients use Mini or Micro A.

[–] fartsparkles@sh.itjust.works 8 points 2 months ago

Yeah we’ve been going by primary-secondary where I am for the just 6 to 7 years now but I don’t think a universally agreed replacement for the terms exists yet.

load more comments (4 replies)
[–] hperrin@lemmy.world 79 points 2 months ago* (last edited 2 months ago) (1 children)

USB-A male to USB-A male is not in any USB standard (not entirely true, but compliant cables are very rare and don’t connect voltage), and if you plug it into a device it’s not meant for, the behavior is entirely unspecified. It will probably do nothing. But it might fry your USB controller that is not expecting to receive voltage.

USB-C to USB-C is in the spec, and if you plug in two host devices, they won’t hurt each other. You can actually charge a host device over USB-C, unlike USB-A.

That’s why it isn’t ok. It’s not the same thing, it’s not in the standard, and it can even be dangerous (to the device).

load more comments (1 replies)
[–] computergeek125@lemmy.world 60 points 2 months ago* (last edited 2 months ago)

A to B made more sense in a world where devices cannot serve as both roles via negotiation. My android phone when I got it utilized a data transfer method of plugging my iPhone charge port into my Android charge port, then the Android initiated the connection as a host device.

The true crime is not that the cable is bidirectional, the true crime is that there is little to no proper distinction and error checking between USB, Thunderbolt, and DisplayPort modes and are simply carried on the same connector. I have no issues with the port supporting tunneled connections - that is in fact how docking stations work - just the minimal labeling we get in modern devices.

I'd be fine with a type-A to type-A cable if both devices had a reasonable chance at operating as both the initiator and target - but that type of behavior starts with USB-OTG and continues in type-C.

[–] RoyaltyInTraining@lemmy.world 36 points 2 months ago (1 children)

The USB spec requires one master and one slave device, which is usually decided by which type of connector each side has. USB OTG can bypass that restriction, but I've only ever seen it done with micro USB or type C.

[–] ObsidianZed@lemmy.world 9 points 2 months ago

I actually have one of the USB A cables above from an old android tablet that had 2 full USB A ports on the side.

One was always a slave/device port while the other actually had a physical switch to change from Host to Device.

That used to be my mobile media tablet. I could cast wirelessly or steam directly from the mini HDMI port. Such an awesome device for how cheap it was.

[–] brianary@startrek.website 36 points 2 months ago (3 children)

USB-A requires three attempts to connect, C only one.

[–] theherk@lemmy.world 18 points 2 months ago (3 children)

Six since it has A at both ends.

load more comments (3 replies)
[–] chiliedogg@lemmy.world 9 points 2 months ago (3 children)

I absolutely have some Type C cables that only work one way because there's no enforced standards and the manufacturer will wire them however is cheap, throw on another company's logo, and sell it to Amazom.

[–] NeatNit@discuss.tchncs.de 13 points 2 months ago (7 children)

Don't buy electronics through amazon. This is precisely why.

load more comments (7 replies)
[–] PeriodicallyPedantic@lemmy.ca 8 points 2 months ago (3 children)

I have never seen this.

There is absolutely a certification process, but playing legal whack-a-mole with fly-by-night counterfeiters is difficult.
This is why buying reputable brands from reputable sellers is important.

But even then, I remember years ago I read an article about major retailers selling counterfeit brand name SD cards that didn't meet the labeled performance specifications and had very poor QC. Turns out that gray market sellers were buying batches of the real product that failed QC and just reselling them as though they were fine, and they ended up making their way back into the distribution network.
In the end the conclusion was that we're all kind of fucked until retailers start being way more strict about their supply chains, which they are disincentivized to do, because the current system gives them plausible deniability on things like child labor.

load more comments (3 replies)
load more comments (1 replies)
load more comments (1 replies)
[–] FiskFisk33@startrek.website 33 points 2 months ago

I guess the usb spec makes you sick then.

With the the first one you can fry your gear, while stuff that takes the second one does auto negotiation.

[–] browse@lemmy.specksick.com 29 points 2 months ago

I realy don't want a cable i plug both ends in wrong and have to turn them a couple of times

[–] gandalf_der_12te@lemmy.blahaj.zone 25 points 2 months ago* (last edited 2 months ago) (5 children)

Well, if you have asymmetric cables, there's always one clearly-defined host and the other one is the slave.

it works like sex: with usb-c, both devices more or less kinda have ti "negotiate" who's dom and who's sub. that takes extra negotiation effort and makes the protocol more complicated. and therefore more expensive imo.

load more comments (5 replies)
[–] sundray@lemmus.org 20 points 2 months ago (4 children)

In the long, long ago, we used to use USB-A to A cables to transfer customers' Mac OS X user profiles when they would buy a new Mac. Also worked with Target Disk Mode, way back when.

load more comments (4 replies)
[–] ZeldaFreak@lemmy.world 20 points 2 months ago (5 children)

I've never seen a USB-A to A cable in the wild, except recently, where I finally unpacked my SATA/IDE USB adapter from Ugreen.

[–] xwolpertinger@lemmy.world 10 points 2 months ago

They used to be moderately common in the before times, like 2.5 inch IDE HDD times.

For added horror those often where Y cables, too.

[–] smeeps@lemmy.mtate.me.uk 9 points 2 months ago

My USB KVM switch uses them

load more comments (3 replies)
[–] cybersandwich@lemmy.world 17 points 2 months ago

"they are the same picture" -my wife

[–] shield_gengar@sh.itjust.works 17 points 2 months ago (5 children)

What's a common thing that would require the use of USB A on both ends?

[–] Bleki@lemmy.ml 7 points 2 months ago

The only place i ever saw it was on those cooling padas for laptops

load more comments (4 replies)
[–] rumschlumpel@feddit.org 16 points 2 months ago (4 children)
load more comments (4 replies)
[–] KomfortablesKissen@discuss.tchncs.de 15 points 2 months ago (2 children)

What if I put a C-to-A Adapter on both ends? Is that okay?

[–] itslilith@lemmy.blahaj.zone 8 points 2 months ago (4 children)

C to A adapters are sick and illegal

I still have some

load more comments (4 replies)
load more comments (1 replies)
[–] MinekPo1@lemmygrad.ml 14 points 2 months ago (1 children)

actually they would be correct :

USB began as a protocol where one side (USB-A) takes the leading role and the other (USB-B) the following role . this was mandated by hardware with differently shaped plugs and ports . this made sense for the time as USB was ment to connect computers to peripherals .

however some devices don't fit this binary that well : one might want to connect their phone to their computer to pull data off it , but they also might want to connect a keyboard to it , with the small form factor not allowing for both a USB-A and USB-B port. the solution was USB On-The-Go : USB Mini-A/B/AB and USB Micro-A/B/AB connectors have an additional pin which allows both modes of operations

with USB-C , aside from adding more pins and making the connector rotationally symmetric , a very similar yet differently named feature was included , since USB-C - USB-C connections were planed for

so yeah USB-A to USB-A connections are explicitly not allowed , for a similar reason as you only see CEE 7 (fine , or the objectively worse NEMA) plugs on both ends of a cable only in joke made cables . USB-C has additional hardware to support both sides using USB-C which USB-A , neither in the original or 3.0 revision , has .

[–] tetris11@lemmy.ml 8 points 2 months ago (3 children)

With USB-C isn't there still a slave-master dynamic that is now negotiated via software rather than hardware?

[–] sparkle@lemm.ee 12 points 2 months ago (2 children)

a slave-master dynamic

please don't use that term, every time i see it i immediately verge on orgasming. you've already made me ruin 2 undergarments today. i have a serious bdsm kink and this is not funny.

load more comments (2 replies)
load more comments (2 replies)
[–] MonkderVierte@lemmy.ml 11 points 2 months ago

It's about the winding and not about the USB version, right?

[–] accideath@lemmy.world 11 points 2 months ago (3 children)

I have an external 3.5“ HDD enclosure that has a USB-A port to connect the usb cable to. I have no idea who thought that was a good idea. The difference in price to a B connector can’t be that significant…

load more comments (3 replies)
[–] RangerJosie@sffa.community 9 points 2 months ago (4 children)

I am a stupid end user. But I've never found an instance where I needed male to male cords.

[–] virku@lemmy.world 13 points 2 months ago

In general? Off the top of my head I remember these male to male cables.

  • Ethernet cables
  • telephone cables when they were a thing
  • audio cables of different varieties
  • optical cables
  • coaxial cables when they were a thing
load more comments (3 replies)
[–] wheeldawg@sh.itjust.works 9 points 2 months ago

I'm not sure what the point is here. C is symmetrical and has absolutely no downsides, so yes, it's objectively better.

load more comments
view more: next ›