10-27-2022 11:34 PM
@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. 🙂
10-28-2022 02:51 AM
@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. 😀
10-28-2022 07:53 AM
@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?"
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
10-28-2022 08:02 AM
@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.
10-28-2022 11:56 AM
@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...)
11-09-2022 01:46 PM - edited 11-09-2022 01:47 PM
Data value references to the wazoo! (seen here)
And a vestigial FOR loop to top it off. 😄
Anyone care to explain the possible thought process leading to all that?
11-09-2022 01:57 PM
@altenbach wrote:
Data value references to the wazoo! (seen here)
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.
11-10-2022 12:22 AM
@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.
11-10-2022 07:29 AM
@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
11-10-2022 09:30 AM
@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.