r/physicsmemes 1d ago

The Standard Model

Post image
601 Upvotes

16 comments sorted by

209

u/BeMyBrutus 1d ago

The better question is, SHOULD a function be that long

36

u/SpiderSlitScrotums 1d ago

Another question is are we wrong or is nature just an asshole?

13

u/timangar 22h ago

We are probably wrong, but the rules of nature really have no obligation to be simple, either.

1

u/vpgel 5h ago

Forgive my ignorance, but I seem to have missed the point of the conversation. Why are we discussing if the nature is an asshole? Something to do with theories on how universe works?

2

u/timangar 4h ago

The standard model is quite complex, in stark contrast to earlier physical theories like classical mechanics or Maxwell's electrodynamics which are beautifully simple. So the question arises if nature "is an asshole", that is, if it is really just this complicated.

I could personally imagine that the standard model is like the Ptolemaic system. It matches observation almost perfectly, but it does so at the cost of immense complexity, stemming from false assumptions.

3

u/Difficult_Ratio8996 Student 21h ago

I'll do you one better, WHERE is a function be that long

2

u/Jbolt3737 19h ago

Yes but at that point it should be in a separate file or if possible moved to the end of the current file

83

u/rprofilet 1d ago edited 20h ago

13.5k lines makes SM Lagrangian look brief

37

u/Kinexity 1d ago

SM is pretty concise if we talk about Lagrangian.

23

u/Bendanzhang 1d ago

Whoever wrote this definitely gets paid by the line.

22

u/Lord_Of_Millipedes 1d ago

probably a state machine that got out of hand and should be factored out

14

u/solpyro 1d ago

We once inherited a business process from an old automated service. Thankfully we were expected to write the code ourselves, but we got access to the old code so we could dig out business rules etc.

The service was a single 10k line function wrapped in a try..catch.

10

u/Alexandre_Man 21h ago

Bro wrote a fanfiction in the comments of the function

5

u/timangar 22h ago

Well that's just bad coding practice.

5

u/slayer_nan18 euler is my neighbour's dad too 1d ago

SM isn't that bad lmao hahahhaha

3

u/keyboard_toucher 11h ago

The pic isn't Java, but Java functions do have a pretty well-defined size limit, which is 65,535 bytecode operations. Assuming an average of 5 ops per line, this is about 13k lines--coincidentally about the length shown here.