Title – August, 2015 – Core Concepts



Title – August, 2015 – Core Concepts

1 0


PresentationTemplate

Presentation template in revealjs with ORNL logos

On Github ricleal / PresentationTemplate

Title

August, 2015

Ricardo M. Ferraz Leal

ferrazlealrm@ornl.gov

This presentation is prepared based on...

The Importance of...

  • Avoid ....
  • roll-in 1
  • roll-in 2
  • roll-in 3

Benefits of Using EV

  • Keeping secrets out of settings allows you to store every settings file in version control without hesitation. All of your Python code really should be stored in version control, including your settings
  • Instead of each developer maintaining an easily-outdated, copy-and-pasted version of the local_settings.py.example file for their own development purposes, everyone shares the same version-controlled settings/local.py
  • System administrators can rapidly deploy the project without having to modify files containing Python code
  • Most platforms-as-a-service recommend the use of environment variables for configuration and have built-in features for setting and managing them

grow

shrink

fade-out

visible only once

blue only once

highlight-red

highlight-green

highlight-blue

Core Concepts

KISS

Keep It Simple, Stupid

Fat Models, Helper Modules, Thin Views, Stupid Templates

  • Put more logic into anything but views and templates
  • Template tags and filters should contain the minimum logic possible

Start With Django by Default

  • If we run into obstacles, we explore all possibilities before replacing core Django components

Pretty Code

                        
                            function linkify( selector ) { if( supports3DTransforms ) { var nodes = document.querySelectorAll( selector ); for( var i = 0, len = nodes.length; i
                            < len; i++ ) { var node=n odes[i]; if( !node.className ) { node.className +=' roll' ; } } } } 
                    

Code syntax highlighting courtesy of highlight.js.

.headleft header.left:after { content: url(img/SNS_color_2.png); } .headleft header.bottom:after { content: url(img/footer.png); } Title August, 2015 Ricardo M. Ferraz Leal ferrazlealrm@ornl.gov