04-02-2020 09:55 AM
@johntrich1971 wrote:
@crossrulz wrote:
wiebe@CARYA wrote:Perhaps they where the first to explore LabVIEW 25 years ago? And never updated their skills or code? "Pioneer" doesn't imply quality (by it's definition), so it could be accurate 😁.
There is some truth there. I have worked with a few CLDs who still program as if they were using LabVIEW 4.0. One even refused to use an Event Structure. Every one claimed they were the best programmer in the world (just ask them). Then I get their code and just throw it out the window.
I've known some like that myself.
You should have heard that from me first... because I am the best!
04-03-2020 09:20 AM
This morning I went looking where I shouldn't have gone looking. Found nothing but sadness:
If you're gonna hard code (nothing against it), why not do it legibly? And why not use a search 1D array?
And what is up with this?
Sad thing is, I only went looking, because a function that was supported according to the documentation, just... wasn't.
04-03-2020 10:56 AM - edited 04-03-2020 10:58 AM
@PeterFoerster wrote:
If you're gonna hard code (nothing against it), why not do it legibly? And why not use a search 1D array?
Ouch!
Yes, a single 1D string array constant and search array*. Wire the (-1?) output directly tho the case structure and include the "#" as part of the format instead of pre-pending it later. 😄
*Actually, a map constant would be even better! 😄
04-07-2020 06:58 AM
@crossrulz wrote:
wiebe@CARYA wrote:Perhaps they where the first to explore LabVIEW 25 years ago? And never updated their skills or code? "Pioneer" doesn't imply quality (by it's definition), so it could be accurate 😁.
There is some truth there. I have worked with a few CLDs who still program as if they were using LabVIEW 4.0.
One quote from Fab goes something like "You say you have 5 years of LabVIEW experience, but really you just have 1 year repeated 5 times."
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
04-09-2020 01:02 PM
04-09-2020 04:08 PM
@altenbach wrote:
We talked about Aztec architecture elsewhere. Here's another example to clean up a string:
That post inspires a new LabVIEW Proverb that is not quite ready for prime-time but goes something like...
Those that fail to study history read the help for LabVIEW are doomed to repeat rewrite it.
Ben
04-10-2020 03:25 AM
@altenbach wrote:
We talked about Aztec architecture elsewhere. Here's another example to clean up a string:
This and the previous example are typical of many old style instrument drivers that originate from early LabVIEW times. Partly because many of the more powerful functions like the RegEx and similar simply weren't there.
Although the Match Pattern was present and was IMHO greatly underused, most likely because of its not trivial RegEx like syntax. So when seeing such code it could be that it is simply just an archeological find rather than an incapable programmer. 😀
And yes the OCD in me is very inclined to just change that code to a cleaner, modern representation but I just finished an assignment with a customer where that wasn't appreciated to much as any code change anywhere had to be first logged as a Jira ticket, reviewed and assigned to a Scrum Sprint and eventually then be implemented and committed. Such a process really makes you think more than twice about changing code that isn't yet failing in a proofable way. 😁
04-10-2020 03:58 AM
@rolfk wrote:And yes the OCD in me is very inclined to just change that code to a cleaner, modern representation but I just finished an assignment with a customer where that wasn't appreciated to much as any code change anywhere had to be first logged as a Jira ticket, reviewed and assigned to a Scrum Sprint and eventually then be implemented and committed. Such a process really makes you think more than twice about changing code that isn't yet failing in a proofable way. 😁
What about other things (cough... processes... cough...) that aren't yet failing in a provable way? 🙂
Although I imagine the process is mandated by some restrictions based on safety, industrial regulation, etc etc...
04-12-2020 02:08 PM
Ah Jira and Scrum meetings. We were always throwing our scrum cards out to "estimate" the time that something would take, and I was always protesting that not enough information was being given before I was to vote. It ended up with me usually being the highest time estimate.
RegEx is a whole "programming" language, requiring quite a bit of learning in itself. I have used it, in a basic sense, but never mastered it to do some of the "kewl" stuff (I work with some younger, kewler" engineer) that I have seen done.
04-13-2020 07:35 AM