BreakPoint

cancel
Showing results for 
Search instead for 
Did you mean: 

Rube Goldberg Code


@crossrulz wrote:
 😄 Though, that doesn't help the person who has to read that code.

I feel more sorry for whoever had to write it. 🙂

 

0 Kudos
Message 2451 of 2,635
(4,024 Views)

@altenbach wrote:

@crossrulz wrote:
 😄 Though, that doesn't help the person who has to read that code.

I feel more sorry for whoever had to write it. 🙂

 


Why? It was their choice to do it! You can pity them for not being able to do better, but anyone having to try to understand it or maintain it is the real victim here. 😀

Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
0 Kudos
Message 2452 of 2,635
(4,006 Views)

@rolfk wrote:

@altenbach wrote:

@crossrulz wrote:
 😄 Though, that doesn't help the person who has to read that code.

I feel more sorry for whoever had to write it. 🙂

 


Why? It was their choice to do it! You can pity them for not being able to do better, but anyone having to try to understand it or maintain it is the real victim here. 😀


My grandfather was used to splitting wood by hand with an axe.  But as he got older he realized he didn't have the strength any more and wanted to buy a chain saw.  So he went to the store, picked one out and tried it at home.  He didn't like it and tried returning it for a refund.  The employee at the store was confused because he said the chain saw was just as slow as doing it by hand with an axe.  So the employee started the chain saw and my grandpa said "What's that sound?"

 

Spoiler
Okay it wasn't my grandpa and it wasn't my joke, but the point is he didn't know there was a better way, and he probably should have done more research like most Rube Goldberg posts.
Message 2453 of 2,635
(3,985 Views)

@Hooovahh wrote:

@rolfk wrote:

@altenbach wrote:

@crossrulz wrote:
 😄 Though, that doesn't help the person who has to read that code.

I feel more sorry for whoever had to write it. 🙂

 


Why? It was their choice to do it! You can pity them for not being able to do better, but anyone having to try to understand it or maintain it is the real victim here. 😀


My grandfather was used to splitting wood by hand with an axe.  But as he got older he realized he didn't have the strength any more and wanted to buy a chain saw. 


Of course, if he didn't used to do this by hand, he wouldn't have the strength to do it by hand much sooner.

 

A bad mentality for a programmer though. Being lazy (at the right time) is a virtue for a programmer.

0 Kudos
Message 2454 of 2,635
(3,983 Views)

@rolfk wrote:
Why? It was their choice to do it! You can pity them for not being able to do better, but anyone having to try to understand it or maintain it is the real victim here. 

Maybe we can blame a truly evil teacher/tutor. 😄 There isn't enough backstory to really tell....

 

(Getting trapped in the swamp is a good learning experience as long as you make it out later. This is his/her chance to get on the fast-track to become a better programmer, but so far they refuse to attach code. O well...)

0 Kudos
Message 2455 of 2,635
(3,946 Views)

Data value references to the wazoo! (seen here)

 

altenbach_0-1668023168717.png

 

 

And a vestigial FOR loop to top it off. 😄

 

Anyone care to explain the possible thought process leading to all that?

Message 2456 of 2,635
(3,831 Views)

@altenbach wrote:

Data value references to the wazoo! (seen here)

 

altenbach_0-1668023168717.png

 

 

And a vestigial FOR loop to top it off. 😄

 

Anyone care to explain the possible thought process leading to all that?


I've never taken a course in psychology, nor opened a psych book; but when I see stuff like that (and I see it way too often), my best wild guess is: borderline schizophrenic.

"If you weren't supposed to push it, it wouldn't be a button."
0 Kudos
Message 2457 of 2,635
(3,820 Views)

@altenbach wrote:

Data value references to the wazoo! (seen here)

 

...

Anyone care to explain the possible thought process leading to all that?


Thought process guesses:

- I learned that DVRs are good, so lets use them. And I need a for loop to do stuff on the array.

- I want to be memory efficient, so lets do it in-line.

Certified LabVIEW Architect
0 Kudos
Message 2458 of 2,635
(3,779 Views)

@thols wrote:

@altenbach wrote:

Data value references to the wazoo! (seen here)

 

...

Anyone care to explain the possible thought process leading to all that?


Thought process guesses:

- I learned that DVRs are good, so lets use them. And I need a for loop to do stuff on the array.

- I want to be memory efficient, so lets do it in-line.


how about simply
debug function accidentally left in code from someone trying to learn about DVRs

CLD; LabVIEW since 8.0, Currently have LabVIEW 2015 SP1, 2018SP1 & 2020 installed
0 Kudos
Message 2459 of 2,635
(3,754 Views)

@altenbach wrote:

Anyone care to explain the possible thought process leading to all that?


Arrays should be handled by references. All code is better with references. I've learned that in that C++ course i took in -95.

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
Message 2460 of 2,635
(3,730 Views)