Discussion Forum: General: Message 1469757
 Previous Message   Next Message 
 Author: SylvainLS View Messages Posted By SylvainLS
 Posted: May 16, 2024 03:16
 Subject: Re: I was wondering...
 Viewed: 46 times
 Topic: General
Cancel Message
Cancel
Reply to Message
Reply
BrickLink
ID Card

SylvainLS (46)

Location:  France, Nouvelle-Aquitaine
Member Since Contact Type Status
Apr 25, 2014 Contact Member Seller
Buying Privileges - OKSelling Privileges - OK
Store Closed Store: BuyerOnly
BrickLink Discussions Moderator (?)
In General, Akir writes:
  ...how is it possible that this site apparently has (at least?) two different
sorting algorithms in place? When I sort my wish list inventory by item name
I get "Brick 1x12" before "Brick 1x8", in my store inventory
(and in orders and set inventories) it recognizes the numbers correctly and sorts
1x8 before 1x12. Is there method in this madness?

That’s a symptom of spaghetti code (or, more accurately, big ball of mud): you
need the same function but, either it needs to be slightly different or you’re
just not very good at recognizing duplicates, and you copy (or rewrite) the code.
So when one copy changes, the other doesn’t.
Reconciling the different bits (refactoring) is not so easy and you risk breaking
one copy which actually did something slightly differently and that can’t be
simply replaced by a call to the other.
Hence the “we are not touching that (at the moment)” attitude.

Message is in Reply To:

View Thread I was wondering... - Akir (123)
...how is it possible that this site apparently has (at least?) two different sorting algorithms in place? When I sort my wish list inventory by item name I get "Brick [...]
(21 days ago, May 16, 2024, to General)

Message Has 1 Reply:

View Thread Re: I was wondering... - Akir (123)
[...] Guessed as much, thanks for the confirmation! I suppose it's a wise choice, there's lots of more urgent matters...
(21 days ago, May 16, 2024, to General)

3 Messages in this Thread:

 Msg 1 - Akir (123) 21 days ago May 16, 2024 to General
 Msg 2 « - SylvainLS (46) 21 days ago May 16, 2024 to General
 Msg 3 - Akir (123) 21 days ago May 16, 2024 to General

 Previous Message   Next Message 

Entire thread on one page
This message and all its replies on one page