MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/badcode/comments/pulgc5/why/
r/badcode • u/Arcont001 • Sep 24 '21
40 comments sorted by
222
Move, move, move!
54 u/SAmaruVMR Sep 24 '21 I like to move it, move it 21 u/netcent_ Sep 24 '21 You like to 16 u/PranshuKhandal Sep 24 '21 move it, move it 8 u/FederalSpecialist415 Sep 25 '21 We like to 4 u/torocat1028 Sep 25 '21 move it 3 u/ludennis Sep 25 '21 Move it 3 u/Alainx277 Sep 24 '21 Hunt down the state machine 2 u/SZ4L4Y Sep 25 '21 Nah. It's optimizing for speed.
54
I like to move it, move it
21 u/netcent_ Sep 24 '21 You like to 16 u/PranshuKhandal Sep 24 '21 move it, move it 8 u/FederalSpecialist415 Sep 25 '21 We like to 4 u/torocat1028 Sep 25 '21 move it 3 u/ludennis Sep 25 '21 Move it
21
You like to
16 u/PranshuKhandal Sep 24 '21 move it, move it 8 u/FederalSpecialist415 Sep 25 '21 We like to 4 u/torocat1028 Sep 25 '21 move it 3 u/ludennis Sep 25 '21 Move it
16
move it, move it
8 u/FederalSpecialist415 Sep 25 '21 We like to 4 u/torocat1028 Sep 25 '21 move it 3 u/ludennis Sep 25 '21 Move it
8
We like to
4 u/torocat1028 Sep 25 '21 move it 3 u/ludennis Sep 25 '21 Move it
4
move it
3 u/ludennis Sep 25 '21 Move it
3
Move it
Hunt down the state machine
2 u/SZ4L4Y Sep 25 '21 Nah. It's optimizing for speed.
2
Nah. It's optimizing for speed.
132
Well obviously both move and movemove was already taken.
24 u/PranshuKhandal Sep 24 '21 move2: [cries in the corner] 4 u/actually-dehrk Sep 29 '21 move² 3 u/TigreDeLosLlanos Sep 25 '21 They didn't work because those weren't bossy enough so the code decided to chill.
24
move2: [cries in the corner]
4 u/actually-dehrk Sep 29 '21 move²
move²
They didn't work because those weren't bossy enough so the code decided to chill.
The function moves the move of the move. Eg, its rescheduling the meeting to decide when to move.
40
Image Transcription: Code
/** * Move * * @return StateMachine * * @throws Exception\NoSuchPropertyException * @throws Exception\StateException * @throws Exception\TransitionException */ public function movemovemove() {
I'm a human volunteer content transcriber for Reddit and you could be too! If you'd like more information on what we do and why we do it, click here!
23 u/anonymous_2187 Sep 24 '21 Good Human
23
Good Human
38
in cooler languages they could have named the function move³
move³
20 u/[deleted] Sep 24 '21 I think this is php, and there I can. Just tried it out. 9 u/[deleted] Sep 24 '21 i've moved php above javascript in my mental language rankings 1 u/Goplaydiabotical Sep 27 '21 In coolest languages you can writemove⍣3which says do the function move 3 times in APL
20
I think this is php, and there I can. Just tried it out.
9 u/[deleted] Sep 24 '21 i've moved php above javascript in my mental language rankings
9
i've moved php above javascript in my mental language rankings
1
In coolest languages you can writemove⍣3which says do the function move 3 times in APL
move⍣3
Because 3 times a charm.
7
You can't convince me the author of this code doesn't have a toddler, because this is clearly the lyrics to a kids song
6
Probably because whoever wrote this saw that there's already 2 functions called move and movemove thought that's how things work out there.
move
movemove
he likes to move it?
Very different from methods Move() and MoveMove()
*whywhywhy?
1 u/genericindividual69 Sep 25 '21 Delilah
Delilah
Military software
So it's faster
When you don’t want to use move3:
3 moves forward , no moves back.
Just to be sure it's not static
Reminds me of that one scene...
Mr. krabs! Mr. Krabs! Mr. Krabs!
Cause you would then implement all other functions in similar fashion. For example, stopstopstop(), turnturnturn(), backupbackupbackup(), etc
is that StateMachine from external library? i was searching for it instead of implementing myself
gettothechoppa
34
[removed] — view removed comment
2 u/genericindividual69 Sep 25 '21 Delilah
222
u/SZ4L4Y Sep 24 '21
Move, move, move!
132
u/ShodoDeka Sep 24 '21
Well obviously both move and movemove was already taken.
54
u/DragonFireCK Sep 24 '21
The function moves the move of the move. Eg, its rescheduling the meeting to decide when to move.
40
u/seeroflights Sep 24 '21
Image Transcription: Code
I'm a human volunteer content transcriber for Reddit and you could be too! If you'd like more information on what we do and why we do it, click here!
38
u/[deleted] Sep 24 '21
in cooler languages they could have named the function
move³8
u/dryu12 Sep 24 '21
Because 3 times a charm.
7
u/polyworfism Sep 24 '21
You can't convince me the author of this code doesn't have a toddler, because this is clearly the lyrics to a kids song
6
u/[deleted] Sep 24 '21
Probably because whoever wrote this saw that there's already 2 functions called
moveandmovemovethought that's how things work out there.4
u/PEXowns Sep 24 '21
he likes to move it?
4
u/[deleted] Sep 25 '21
Very different from methods Move() and MoveMove()
3
u/incidental_dev_ Sep 24 '21
*whywhywhy?
3
u/freddythunder Sep 24 '21
Military software
3
u/yard2010 Sep 24 '21
So it's faster
2
u/[deleted] Sep 24 '21
When you don’t want to use move3:
2
u/wjaspers Sep 24 '21
3 moves forward , no moves back.
2
u/il-est-la Sep 24 '21
Just to be sure it's not static
1
u/Few_Importance_7615 Sep 24 '21
Reminds me of that one scene...
Mr. krabs! Mr. Krabs! Mr. Krabs!
1
u/ludennis Sep 25 '21
Cause you would then implement all other functions in similar fashion. For example, stopstopstop(), turnturnturn(), backupbackupbackup(), etc
1
u/voaux Sep 25 '21
is that StateMachine from external library? i was searching for it instead of implementing myself
1
u/pentaduck Oct 06 '21
gettothechoppa
34
u/[deleted] Sep 24 '21
[removed] — view removed comment