Jump to content


Photo
- - - - -

vi.lib password protected VIs


  • Please log in to reply
14 replies to this topic

#1 neil

neil

    Extremely Active

  • Members
  • PipPipPipPip
  • 432 posts
  • Location:Surrey, UK
  • Version:LabVIEW 2012
  • Since:2004

Posted 17 July 2012 - 12:56 PM

ok, so I am curious by nature. I like to learn things. One of my favourite methods is looking at what people smarter than me have done.

This is the primary reason why I like to look inside the VIs inside vi.lib. Nothing sinister, I just want to be a better programmer. What better place than to learn from the gurus, right?

I say this from looking at quite a few: WOW! quite a lot of those VIs, written by some fairly big-name LV stars, are a bit shocking! They just scream rush job. No wonder you guys password protect them...

This is not mean to start a flame war, but seriously, you guys need to spend some of those billions in profit you make and employ a few more programmers so you can tidy up the existing stuff.
CLA, CPI and CTM (Certified Tea Maker)

#2 hooovahh

hooovahh

    The 500 club

  • Members
  • PipPipPipPipPip
  • 809 posts
  • Version:LabVIEW 2011
  • Since:2004

Posted 17 July 2012 - 01:04 PM

I think this is an unfair comment, and is likely to cause a flame war regardless of the intent.

I would like to state the obvious, which is that the code was never intended to be seen by a customer, and as a result NI would likely rather spend the time developing features which cause greater sales, and has more customer satisfaction (ie bug fixes). Cleaning up a VI that no one will ever see (...kinda) does not add to the value of LabVIEW. I would certainly not do some of the things NI does in some of their passworded vi.lib VIs, but we are not in the same business, we just use the same tool.

"Maybe Hoovah is really Crelf's alter-ego, which he uses to irk people?" - Gary Rubin

"Seemingly minor changes....can mean the difference between a working app and a quivering heap of unresponsive code." - David Boyd


#3 ShaunR

ShaunR

    LabVIEW Archetype

  • Members
  • PipPipPipPipPipPip
  • 2,267 posts
  • Version:LabVIEW 2009
  • Since:1994

Posted 17 July 2012 - 01:14 PM

ok, so I am curious by nature. I like to learn things. One of my favourite methods is looking at what people smarter than me have done.
<snip>
This is not mean to start a flame war, but seriously, you guys need to spend some of those billions in profit you make and employ a few more programmers so you can tidy up the existing stuff.

Well. I wouldn't worry too much. Now that the script kiddies have been waving their metaphorical wieners at NI as regards password protection of diagrams. I don't think that you will be seeing many more.
A positive attitude may not solve all your problems, but it will annoy enough people to make it worth the effort. (Herm Albright 1876-1944).

Founder and general mischief maker on www.labview-tools.com.
SQlite aficionado and websocket zealot.
If it 'aint in LabVIEW, then you 'aint got a clue!

#4 neil

neil

    Extremely Active

  • Members
  • PipPipPipPip
  • 432 posts
  • Location:Surrey, UK
  • Version:LabVIEW 2012
  • Since:2004

Posted 17 July 2012 - 01:20 PM

I think this is an unfair comment, and is likely to cause a flame war regardless of the intent.

I would like to state the obvious, which is that the code was never intended to be seen by a customer, and as a result NI would likely rather spend the time developing features which cause greater sales, and has more customer satisfaction (ie bug fixes). Cleaning up a VI that no one will ever see (...kinda) does not add to the value of LabVIEW. I would certainly not do some of the things NI does in some of their passworded vi.lib VIs, but we are not in the same business, we just use the same tool.


hooovahh, I really don't want to start a flame war, but here is my rebuttal to you: the code I have seen is poorly coded: any bugs in this code will take MUCH longer to be fixed due to the difficult nature of debugging such code. If it was coded properly this time would be better spent introducing new features.

Are you 100% happy with the performance of the LabVIEW IDE? If these kinds of things were opened up then it is possible that "outsiders" could contribute and make everything better.

I call it eating your own dogfood. It is massively hypocritical of NI to say "code things this way" and then they go and break the rules themselves in their own code. A lot of the code I have seen would never pass the CLD exam due to so many style violations.
CLA, CPI and CTM (Certified Tea Maker)

#5 hooovahh

hooovahh

    The 500 club

  • Members
  • PipPipPipPipPip
  • 809 posts
  • Version:LabVIEW 2011
  • Since:2004

Posted 17 July 2012 - 01:59 PM

the script kiddies have been waving their metaphorical wieners at NI...

I like this, I may make it my new signature

Are you 100% happy with the performance of the LabVIEW IDE? If these kinds of things were opened up then it is possible that "outsiders" could contribute and make everything better.

I call it eating your own dogfood. It is massively hypocritical of NI to say "code things this way" and then they go and break the rules themselves in their own code. A lot of the code I have seen would never pass the CLD exam due to so many style violations.

I think we can all agree that LabVIEW could be better and in the past few releases I've been happy with the progression of features, and stability. I just think that NI has done a pretty good job of managing where their time is best spent. Sure I complain when I see new features and functions that I'll never use being developed and refined, but overall I understand why they put effort into the things they do. If I had a choice of NI working on cleaning up some VIs, or to implement the top 10 idea exchange features, I think the majority would choose the idea exchange.

I do understand your comment about CLD worthy code. I would like to add that this is not limited to the passworded VIs. I've seen VI.lib stuff that is open that is not up to snuff with their best practices. I used to see a lot of example VIs poorly done as well but I'm having difficulty finding them now, so I suspect they went back and did clean up their examples to be more CLD in quality.

"Maybe Hoovah is really Crelf's alter-ego, which he uses to irk people?" - Gary Rubin

"Seemingly minor changes....can mean the difference between a working app and a quivering heap of unresponsive code." - David Boyd


#6 Justin Goeres

Justin Goeres

    The 500 club

  • JKI
  • 681 posts
  • Version:LabVIEW 2012
  • Since:1997

Posted 17 July 2012 - 02:19 PM

*
POPULAR

I call it eating your own dogfood. It is massively hypocritical of NI to say "code things this way" and then they go and break the rules themselves in their own code. A lot of the code I have seen would never pass the CLD exam due to so many style violations.

Congratulations. You have discovered that a commercial software product has private code in it that wasn't written by an architect, while simultaneously reminding us all that you have the ability to view password-protected block diagrams. Have a cookie.

Everyone else, this is essentially a troll thread. Consider that when/if replying.

#7 neil

neil

    Extremely Active

  • Members
  • PipPipPipPip
  • 432 posts
  • Location:Surrey, UK
  • Version:LabVIEW 2012
  • Since:2004

Posted 17 July 2012 - 02:24 PM

I like this, I may make it my new signature


I think we can all agree that LabVIEW could be better and in the past few releases I've been happy with the progression of features, and stability. I just think that NI has done a pretty good job of managing where their time is best spent. Sure I complain when I see new features and functions that I'll never use being developed and refined, but overall I understand why they put effort into the things they do. If I had a choice of NI working on cleaning up some VIs, or to implement the top 10 idea exchange features, I think the majority would choose the idea exchange.

I do understand your comment about CLD worthy code. I would like to add that this is not limited to the passworded VIs. I've seen VI.lib stuff that is open that is not up to snuff with their best practices. I use to see alot of example VIs poorly done as well but I'm having difficulty finding them now, so I suspect they went back and did clean up their examples to be more CLD in quality.


Sure, a lot of the examples are clearly just old code (pre Event-Structure in a lot of cases, and we all know that is never the prettiest code), and that is a big job to refactor them all.

My problem is that NI should use the practices internally that they teach externally. In the real world, it is, in my opinion, quite bad behaviour to put in shoddy/rushed code just to get more features in, and that is what it feels like is being done. If this happens on a project (and yes, we have all been at the wrong end of the time-pressure stick) it is a sign that something else is wrong. Someone is overworked, resources are being allocated incorrectly etc. It does not feel like professional software development.

Congratulations. You have discovered that a commercial software product has private code in it that wasn't written by an architect, while simultaneously reminding us all that you have the ability to view password-protected block diagrams. Have a cookie.

Everyone else, this is essentially a troll thread. Consider that when/if replying.


You are kidding right?
CLA, CPI and CTM (Certified Tea Maker)

#8 lordexod

lordexod

    Very Active

  • Members
  • PipPipPip
  • 64 posts
  • Location:Poland
  • Version:LabVIEW 2012
  • Since:2007

Posted 17 July 2012 - 05:24 PM

I've seen all diagrams (vi, vit, llb, lvlibp) in all modules and toolkits, It is easier to do over again.
LabVIEW Reverse Engineer

#9 Aristos Queue

Aristos Queue

    LV R&D: I write C++/# so you don't have to.

  • Premium Member
  • 2,640 posts
  • Location:Austin, TX
  • Version:LabVIEW 2011
  • Since:2000

Posted 18 July 2012 - 04:38 AM

you guys need to spend some of those billions in profit

That was billion, singular, in revenue, not profit.

#10 neil

neil

    Extremely Active

  • Members
  • PipPipPipPip
  • 432 posts
  • Location:Surrey, UK
  • Version:LabVIEW 2012
  • Since:2004

Posted 18 July 2012 - 08:17 PM

That was billion, singular, in revenue, not profit.


ok, but to (mis) quote Jerry Seinfeld "National Instruments, we are doing very well". I would hate to think that internally you RnD guys are so time pressured that you would produce bad code. Some of the code I have seen could not have been peer reviewed!

I am not trying to troll, get anybody worked up, or to wave any weiners around. Just trying to have a sensible discussion about something I noticed that I thought did not really seem "right".

sigh... what has the internet turned into these days....
CLA, CPI and CTM (Certified Tea Maker)

#11 hooovahh

hooovahh

    The 500 club

  • Members
  • PipPipPipPipPip
  • 809 posts
  • Version:LabVIEW 2011
  • Since:2004

Posted 18 July 2012 - 08:23 PM

sigh... what has the internet turned into these days....

Posted Image

"Maybe Hoovah is really Crelf's alter-ego, which he uses to irk people?" - Gary Rubin

"Seemingly minor changes....can mean the difference between a working app and a quivering heap of unresponsive code." - David Boyd


#12 neil

neil

    Extremely Active

  • Members
  • PipPipPipPip
  • 432 posts
  • Location:Surrey, UK
  • Version:LabVIEW 2012
  • Since:2004

Posted 18 July 2012 - 09:02 PM

Posted Image


:lol:
CLA, CPI and CTM (Certified Tea Maker)

#13 MikaelH

MikaelH

    The 500 club

  • Premium Member
  • 576 posts
  • Location:Sydney
  • Version:LabVIEW 2012
  • Since:1996

Posted 18 July 2012 - 10:21 PM

Many VIs are still very nicely written, but could be better optimized.
E.g. This VI was probably written before the for loop got the Conditional Terminal.
MultipleRoots.png

Posted Image


#14 Phillip Brooks

Phillip Brooks

    The 500 club

  • Members
  • PipPipPipPipPip
  • 758 posts
  • Location:Boston, MA
  • Version:LabVIEW 8.6
  • Since:1999

Posted 19 July 2012 - 11:39 AM

Maybe what we need is some sort of community patch that we can install to fix these things... :P

Now is the right time to use %^<%Y-%m-%dT%H:%M:%S%3uZ>T


#15 hooovahh

hooovahh

    The 500 club

  • Members
  • PipPipPipPipPip
  • 809 posts
  • Version:LabVIEW 2011
  • Since:2004

Posted 19 July 2012 - 12:11 PM

Maybe what we need is some sort of community patch that we can install to fix these things... :P

That'd be quite an undertaking, and as mentioned in that thread people are going to want to customize what things are modified in the patch and what things aren't.

In a slightly unrelated topic, thank you for putting the "Now is the right time to use" in your signature. On more than one occasion I couldn't remember what the scan from string wanted, and I knew I just had to find a post you made to find it.

"Maybe Hoovah is really Crelf's alter-ego, which he uses to irk people?" - Gary Rubin

"Seemingly minor changes....can mean the difference between a working app and a quivering heap of unresponsive code." - David Boyd