News for hackers. Stuff that matters.
Re:Home Depot GitHub token exposed for a year, granted acces... by craftkiller on Friday December 12, 2025 @02:25PM (#46247746)
If you go to the home depot page for torque wrenches and click the filter for drive size, you get this list:

  1/2 in
  1/4 in
  1 in
  3/8 in
  3/4 in
  Specialty
Here is the same list in decimal to make the insanity plainly obvious:

  0.5
  0.25
  1
  0.375
  0.75
What sadistic lunatic made that sort order?! It's not based on size and it's not alphabetic.
Re:Home Depot GitHub token exposed for a year, granted acces... by tomjakubowski on Friday December 12, 2025 @02:29PM (#46247775)
I had to check what the gold standard McMaster-Carr does: their torque wrench drive size widget is sorted 1/4", 3/8", 1/2", 3/4", 1", 1 1/2". Glorious. https://www.mcmaster.com/products/torque-wrenches/
Re:Home Depot GitHub token exposed for a year, granted acces... by jjice on Friday December 12, 2025 @03:29PM (#46248482)
I'd expect nothing less from them. The right thing to do here is to implement a sorting key for different categories here. Since McMaster-Carr seems to be going to a category when you search, they seem to have better control over the available filters.

I've found that on a site like Amazon or Walmart that'll let you do a more freeform sort, the filter options becomes absolutely god awful.

Well done by McMaster-Carr. I assume they control their inventory a bit more than a marketplace like Home Depot, Walmart, or Amazon, so that's also an advantage.

Re:Home Depot GitHub token exposed for a year, granted acces... by pacoWebConsult on Friday December 12, 2025 @03:47PM (#46248714)
The schemas for Amazon and Walmart's product information are absolutely bonkers and constantly missing features that they demand be provided.

Here's the XML Schema Definition for "Product" on Amazon [1]

This is joined on each of the linked category schemas included at the type, of which each has unique properties that ultimately drive the metadata on a particular listing for the SKU. Its wrought with inconsistency, duplicated fields, and oftentimes not up-to-date with required information.

Ultimately, this product catalog information gets provided to Amazon, Walmart, Target, and any other large 3rd party marketplace site as a feed file from a vendor to drive what product they can then list pricing and inventory against (through similar feeds).

You are right that the control McMaster-Carr has on their catalog is the strategic and technological advantage.

[1]: https://images-na.ssl-images-amazon.com/images/G/01/rainier/...

Re:Home Depot GitHub token exposed for a year, granted acces... by wholinator2 on Friday December 12, 2025 @03:56PM (#46248834)
Very interesting how nearly half the list is (assumedly) every single chemical listed under California Prop 65. Do they really need to specify exactly which chemical it is? I've seen thousands of prop 65 warnings in my life but I've literally never seen it tell me what chemical its warning me about. I just commented to a friends a couple weeks ago i wished they'd tell me what so i could look it up myself!
Re:Home Depot GitHub token exposed for a year, granted acces... by rockostrich on Friday December 12, 2025 @03:54PM (#46248825)
McMaster-Carr's website is actually pretty impressive given how unassuming it is. It does a ton of pre-loading on hover and caching to make it feel like you're just navigating a static site. I didn't even realize that the page had a loading state until I enabled throttling from my network tab and immediately clicked on a link as soon as I hovered over it.
Re:Home Depot GitHub token exposed for a year, granted acces... by dboreham on Friday December 12, 2025 @04:38PM (#46249301)
Even more impressive is that it's something like 20 years old, and was basically the way it is now 20 years ago.
Re:Home Depot GitHub token exposed for a year, granted acces... by niij on Saturday December 13, 2025 @09:36AM (#46254801)
Re:Home Depot GitHub token exposed for a year, granted acces... by progbits on Friday December 12, 2025 @03:46PM (#46248703)
Mouser et al also do it right for mixed unit lists, eg. component dimensions are shown in their specified units but sorted as: 11mm, 12mm, 0.5in, 13mm, ...
Re:Home Depot GitHub token exposed for a year, granted acces... by hinkley on Friday December 12, 2025 @03:56PM (#46248839)
Is it weird that I kinda want to work there?
Re:Home Depot GitHub token exposed for a year, granted acces... by accidc on Friday December 12, 2025 @05:13PM (#46249643)
No. You are likely and automatically extrapolating the attention to detail seen in the outcome into believing that it is a reflection of the attention , thought and method of their internal workings.

Which is a good indicator, but you can’t be sure of. Additionally you may imagine liking it but not enjoy it in life, even if true.

Re:Home Depot GitHub token exposed for a year, granted acces... by bluedino on Friday December 12, 2025 @03:39PM (#46248607)
Now look up impact wrenches.

  1/2 in
  1 in
  1/4 in
  3/8 in
  3/4 in
  7/16 in
Re:Home Depot GitHub token exposed for a year, granted acces... by rpcope1 on Friday December 12, 2025 @04:39PM (#46249307)
> 7/16 in

I had a major WTF moment there, until I realized that's probably for a hex driver (and thus something totally different than what I think of when someone says "impact wrench").

Re:Home Depot GitHub token exposed for a year, granted acces... by SoftTalker on Friday December 12, 2025 @02:45PM (#46247964)
It's probably a default ordering or an ordering by an unshown database ID value. It's a small enough set that it doesn't really matter for practical purposes, but I guess it does betray a lack of attention to detail.
Re:Home Depot GitHub token exposed for a year, granted acces... by wiredfool on Friday December 12, 2025 @03:01PM (#46248147)
It’s simple alphabetic.
Re:Home Depot GitHub token exposed for a year, granted acces... by neogodless on Friday December 12, 2025 @03:08PM (#46248242)
Is "slash" (/) before or after "space" ( ) ... or both... before and after it?

Is 8 before or after 4 in the alphabet?

Re:Home Depot GitHub token exposed for a year, granted acces... by VTimofeenko on Friday December 12, 2025 @03:15PM (#46248318)
Before. _E_ight vs _F_our.
Re:Home Depot GitHub token exposed for a year, granted acces... by superturkey650 on Friday December 12, 2025 @03:20PM (#46248369)
But _T_wo is also before _F_our
Re:Home Depot GitHub token exposed for a year, granted acces... by VTimofeenko on Friday December 12, 2025 @03:37PM (#46248585)
The sorting briefly switches to reverse order there, so no contradiction.
Re:Home Depot GitHub token exposed for a year, granted acces... by bena on Friday December 12, 2025 @03:23PM (#46248408)
No, there's no reasonable ordering going on.

If it were ordered by ordinal values, "/" is 47 and " " is 32, so "1 in" would come before "1/2 in".

It's not alphabetized by letter word. Because while "Eight" comes before "Four", "Specialty" would come before "Three".

No matter which way you attempt to order it, something is out of order.

Softtalker probably got it right. This is some default or id sort.

Re:Home Depot GitHub token exposed for a year, granted acces... by antonvs on Friday December 12, 2025 @03:40PM (#46248630)
3/8 doesn’t come before 3/4 alphabetically.
Re:Home Depot GitHub token exposed for a year, granted acces... by nunez on Friday December 12, 2025 @08:19PM (#46251041)
This is sorted mostly alphabetically with an allowance for people being bad with fractions. That's my guess.
Re:Home Depot GitHub token exposed for a year, granted acces... by gtowey on Friday December 12, 2025 @09:50PM (#46251559)
SELECT ... ORDER BY RAND()