this post was submitted on 10 Aug 2024
391 points (85.7% liked)

Programmer Humor

32591 readers
1719 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 3 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 148 points 3 months ago (2 children)

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

[–] DahGangalang@infosec.pub 36 points 3 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 3 months ago (1 children)

No that's the lingo the professionals use these days

[–] Vilian@lemmy.ca 10 points 3 months ago (1 children)

I can confirm, I'm called sub at work

[–] communism@lemmy.ml 11 points 3 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 3 months ago

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

[–] NeatNit@discuss.tchncs.de 104 points 3 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 3 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 3 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 19 points 3 months ago* (last edited 3 months ago)

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

[–] unmagical@lemmy.ml 12 points 3 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 3 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 3 months ago* (last edited 3 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 59 points 3 months ago* (last edited 3 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 3 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 3 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 3 months ago (3 children)

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

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

Six since it has A at both ends.

load more comments (3 replies)
[–] chiliedogg@lemmy.world 9 points 3 months ago (6 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 3 months ago (7 children)

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

load more comments (7 replies)
load more comments (5 replies)
load more comments (1 replies)
[–] FiskFisk33@startrek.website 33 points 3 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 3 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 3 months ago* (last edited 3 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 3 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 3 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 3 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 3 months ago

My USB KVM switch uses them

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

"they are the same picture" -my wife

[–] rumschlumpel@feddit.org 16 points 3 months ago (4 children)
load more comments (4 replies)
[–] shield_gengar@sh.itjust.works 16 points 3 months ago (5 children)

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

load more comments (5 replies)
[–] KomfortablesKissen@discuss.tchncs.de 15 points 3 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 3 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 3 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 3 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 9 points 3 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)
[–] accideath@lemmy.world 11 points 3 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)
[–] MonkderVierte@lemmy.ml 11 points 3 months ago

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

[–] wheeldawg@sh.itjust.works 9 points 3 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.

[–] RangerJosie@sffa.community 8 points 3 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 3 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)
[–] ndupont@lemmy.world 7 points 3 months ago (2 children)

My WH1080 weather station has a USB-A connector on the device side, I assume for the convenience of the slimmer profile.

That's the only natural occurrence of that cable I've ever seen.

The other one was a custom board printed in 2001 at the electronics class, where I was some kind of precursor by powering it with a USB cable rather than a bulky lab power supply. As I did salvage the connector it was a A-A abomination but they had that cable at the supermarket for some reason ¯_(ツ)_/¯

If you go buy one of those laser engravers off of eBay, for some reason their data in ports are USB-A, and they come with USB A to A cables. My understanding is you can both plug it into a PC and run it kind of like a printer, click Print and the machine jumps to life, or plug in a USB key with tool path profiles on it to use standalone. Why not have a USB-B port for device mode and a USB-A port for host mode is beyond me, I don't live in Shenzhen.

load more comments (1 replies)
load more comments
view more: next ›