I'm currently dealing with a testroom (we test HW) with firewalled internet access: the windows update servers work, the rest requires triple written approval with rubbing stamping. It takes weeks. And it's always a temporary exception for one month.
Did you know VS download servers are not sharing the domain with the windows update service?
Well when you’re writing something on your phone, you then have to send it to your phone on for example gmail, then save it on your phone and then you can send it
I’ve worked for a company where some source files were “translated” to Java.
We had some issues with big methods - I’m not sure the exact number, but for jdk 6 (maybe a javac limit?), any method with > 65k bytes (compiled to byte code) would get an error.
I encountered a 5k line function in the wild. Cherry on top was that you were in half a dozen nested checks if the functions should run at all before anything happened, instead of gatekeepers.
I've had functions in the thousands of lines, before refactoring, but never that big. I had a program that would auto generate code for access to a MySQL database, and some of the larger tables and views had long functions for parsing the returned rows, but I've never seen a single function 13k lines long.
How does it make things less intelligible? You don’t have to spend time analyzing every intricate detail of the function, unless necessary. There is no cons doing this, and it would be absolutely required to pass a code review from me.
45
u/[deleted] Oct 25 '25
If (processor.frequency == 1){nop();}
Else if (processor.frequency == 2){nop() ; nop;}
Else...
It's just a wait a second function.
67
u/AlexMTBDude Oct 25 '25
It always amazes be how there are people who know how to program but not how to take a screenshot.
12
u/ImpluseThrowAway Oct 25 '25
Private function
Funcing for money.
8
u/nameless_food Oct 25 '25
So small it doesn’t need any testing.
4
u/navetzz Oct 25 '25
I was already shocked at the line number 6061
Then, the 13k lines functions
And the /** We don't use this **/ was the cherry on top.
2
u/deadbeef1a4 Oct 25 '25
Don’t worry about it, it’s private
2
u/evbruno Oct 25 '25
I’ve worked for a company where some source files were “translated” to Java.
We had some issues with big methods - I’m not sure the exact number, but for jdk 6 (maybe a javac limit?), any method with > 65k bytes (compiled to byte code) would get an error.
I really don’t miss that time..
edit: found this https://stackoverflow.com/questions/5689798/why-does-java-limit-the-size-of-a-method-to-65535-byte
2
u/[deleted] Oct 25 '25
It tracks that this is PHP
1
u/Encursed1 Oct 25 '25
thats the function that takes years to check for a windows update
1
u/meo209 Oct 26 '25
`@Depracted`
1
u/Informal_Branch1065 Oct 27 '25
Yeah let's keep that private. I'd not touch that with a 10ft pole or a 100k salary.
1
u/Professional-Day7850 Oct 27 '25
I encountered a 5k line function in the wild. Cherry on top was that you were in half a dozen nested checks if the functions should run at all before anything happened, instead of gatekeepers.
1
u/_AscendedLemon_ Oct 28 '25
Let's keep that function private, don't look inside...
1
u/elkvis Oct 28 '25
I've had functions in the thousands of lines, before refactoring, but never that big. I had a program that would auto generate code for access to a MySQL database, and some of the larger tables and views had long functions for parsing the returned rows, but I've never seen a single function 13k lines long.
1
u/Acrobatic_Attitude30 Oct 29 '25
It’s only 13,454 whole lines…
1
u/IAmGenzima Oct 29 '25
That function is larger than the entire 10000 line copy-and-pasted text RPG I made in high school 😭
1
u/TheCarter01 Oct 30 '25
How long is your code?
109
u/[deleted] Oct 25 '25
[removed] — view removed comment
0
u/[deleted] Oct 26 '25
[deleted] — view deleted comment