GetDunne Wiki

Notes from the desk of Shane Dunne, software development consultant

User Tools

Site Tools


modernizing_the_vanillajuce_code_base

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
modernizing_the_vanillajuce_code_base [2017/09/01 14:22]
shane [Outdated C syntax and library functions]
modernizing_the_vanillajuce_code_base [2017/09/01 19:49] (current)
shane [Newer C++ features and constructs]
Line 1: Line 1:
-==== Coding Practices ==== 
-  * [[Modernizing the VanillaJuce code base]] -- purging outdated practices in C++ code 
  
 ====== Modernizing the VanillaJuce code base ====== ====== Modernizing the VanillaJuce code base ======
Line 37: Line 35:
  
 ===== Pointers and references ===== ===== Pointers and references =====
-  * [[avoid new/delete]] +  * [[Avoid new/delete, prefer references to pointers, use member variables for sub-Components]]
-  * [[pass references where possible]] +
-  * [[use member variables for subcomponents rather than pointers]]+
  
 ===== Newer C++ features and constructs ===== ===== Newer C++ features and constructs =====
 +The following two items remain open at this point, pending further guidance from more experienced JUCE developers. I reviewed all my ''for'' loops, and didn't see a case where using C++11 range-based constructs would yield improvement, and I'm not certain yet how inline member-variable initialization actually applies to my code (unless Jules was referring to the kinds of changes I already made to my GUI classes).
 +Comments welcome on the JUCE Forum!
   * [[Range-based for loops]]   * [[Range-based for loops]]
   * [[inline member variable initialization]]   * [[inline member variable initialization]]
  
  
modernizing_the_vanillajuce_code_base.1504275761.txt.gz · Last modified: 2017/09/01 14:22 by shane