LabVIEW Craft
  • Blog
  • About
  • Contact
  • Tools
  • Resources

Hello World

6/30/2016

1 Comment

 
Jon McBee
Typically the first program you write when you are learning a programming language is, "Hello World!".  Due to the popularity of my prior post on optimizing the traveling salesman problem with genetic algorithms I decided to write a general parallelized Genetic Algorithm Framework for LabVIEW, naturally the first thing I taught it to do was to say, "Hello World!".
Picture

Read More
1 Comment

Dependency  Inversion Principle

11/20/2015

9 Comments

 
Jon McBee
The Dependency Inversion Principle (DIP) is a principle of object-oriented design that will change the way you think about writing software.  It is one of the 5 SOLID principles Robert Martin discusses in his book, I highly recommend checking this book out if you have never read it.  I gave a presentation on the DIP with Stephen Loftus-Mercer at NI Week 2015, and just gave a slightly different presentation on the DIP at the Software Craftsmanship Workshop at NI Days Boston 2015.  Below is a recording of the Software Craftsmanship Workshop presentation, along with my slides.
Picture
Depend upon abstract entities, not concrete entities

Read More
9 Comments

Fun with the Actor Framework: Low Coupled Messaging

8/12/2015

13 Comments

 
Jon McBee
As writers of software we strive to craft code with high cohesion and loose coupling.  This can be tough to do with the Actor Framework as the default method of sending messages between actors effectively couples them together.  Depending on your application this coupling may not matter, but I will show you one way to manage it if it does.
Picture
The above image illustrates a small section of the flow of control for an application used to calculate properties of a black hole.  There is a high level module used to calculate the tidal force that objects experience while near a black hole's event horizon.  This tidal force calculation requires the black hole's mass as an input, which is calculated by a lower level module.  The high level tidal force module needs the black hole's mass in order to perform its calculation, and it depends on the low level mass module to supply it.  

Read More
13 Comments

    RSS Feed

    Tags

    All
    Abstract Messaging
    Actor Framework
    Agile
    AI
    Asynchronous Programming
    Best Practices
    C#
    Complexity
    Continuations
    Control Values By Index
    Craftsmanship
    Dependency Inversion
    Dependency Viewer
    Futures/Promises
    Genetic Algorithm
    Liskov Substitution
    Malleable VIs
    Mediator Pattern
    .NET
    Object Oriented
    Object-Oriented
    Packed Project Library
    Parallelism
    Polymorphism
    Pub/Sub
    RawCap
    Root Loop
    Scrum
    Task Parallel Library
    TCP/IP
    TDD
    Test Engineering
    UML
    Unit Test
    VI Scripting
    VI Server
    WireShark

    Archives

    April 2019
    July 2018
    October 2017
    March 2017
    February 2017
    January 2017
    December 2016
    July 2016
    June 2016
    May 2016
    April 2016
    March 2016
    February 2016
    January 2016
    December 2015
    November 2015
    October 2015
    August 2015
    February 2015
    January 2015

    LabVIEW Blogs

    Eyes on VIs
    LabVIEW Hacker
    VI Shots
    LabVIEW Artisan
    Software Engineering for LabVIEW
    ​Wiresmith Techology
Picture
Powered by the Panda Ant

  • Blog
  • About
  • Contact
  • Tools
  • Resources