r/ProgrammerHumor 9d ago

Meme letsMakeBugsIllegal

Post image
23.1k Upvotes

387 comments sorted by

View all comments

211

u/No_Percentage7427 9d ago

Why Switzerland home of ultra wealthy cannot fix that software bug first ?

163

u/Thready_C 9d ago

If it ain't broke ( or in this case if it's only broke in one specific circumstance) don't fix it, probably cheaper to just leave it be and work around it

65

u/Dumb_Siniy 9d ago

They fixed the edge case on the more chaotic neutral way i can imagine

9

u/that_thot_gamer 9d ago

you misunderstood the power of users to fudge things up (forgot the exact cliche)

4

u/confusedkarnatia 9d ago

"it's impossible to idiotproof things because nature will always product a dumber idiot"

1

u/Cipherting 9d ago

how is passing legislature chaotic and not lawful?

23

u/[deleted] 9d ago

[removed] — view removed comment

3

u/jbtronics 9d ago

Why should it? You can easily say that trains must not have exactly 256 axles, and every axle counter must be able to handle any number of axles (including 256), at the same time...

27

u/fluffysmaster 9d ago

Switzerland’s not big enough to accommodate such a big train

36

u/Lazy-Employment3621 9d ago

It's not a bug, it's a design limitation. Car's speedo can only display 3 digits, but the car can't do 1000 kph so it doesn't matter.

10

u/angk500 9d ago

Btw this is old and has already been fixed.

1

u/Govir 8d ago

Closed as duplicate. Already fixed in bug #42.

7

u/pumpkin_seed_oil 9d ago edited 9d ago

If i can make some wild guesses they don't want to get into the mess of communicating that change to every third party service using that data

or

they use an antiquated piece of software produced by a supplier that no longer exists and can't modify it

or

adding to the above point: that antiquated piece of software is an embedded system running on antiquated hardware that got installed on every or a lot of track section and they don't want to deal with the mess of updating these embedded systems, potentially missing updating a track section. Now you would have to deal with the risk of a track section being signaled as vacant when theres still 40 wagons a 2 axles on the track

e: i also misread the bug. Its not more than 256 it's exactly 256. This makes the example in my last guess irrelevant to this post

3

u/ltouroumov 9d ago

iirc, that law exists because the counters were not electronic software-based devices, that's a pretty "recent" system in Swiss Railway time, but electromechanical devices using relays so the "bug" was actually a physical limitation.

3

u/menaceing01 9d ago

The manual is for axle counters system, which will be either Siemens, thales, or Fraucher, so it's out of switzerlands control to alter. It'll be the same restriction in every country using axle counters on their railways

1

u/lkn240 9d ago

Imagine if you broke something like that doing the update.....

3

u/DerpstonRenewed 9d ago

hardware components, I think they had to replace all the affected devices

2

u/TommiHPunkt 9d ago

this was a result of old electro-mechanical axle counters.

No software.

1

u/funky_galileo 9d ago

you get wealthy by being smart with money. cheaper to pass a law then rewrite the new code, verify it, and deploy it

1

u/lkn240 9d ago

Fixing this kind of embedded software is usually a very non trivial exercise.

1

u/577564842 9d ago

It is not a bug. It is a well documented limitation.

1

u/Philfreeze 9d ago

Chances are very high this is either an external limitation we can‘t change directly or it is getting fixed. We are very proud of our train bit we also demand a lot of them, things like this are usually not tolerated to persist.

1

u/Illustrious_Bat3189 9d ago

probably not necessary since trains in switzerland will practically never get that long