@@ -20,23 +20,23 @@ General design principles
2020
2121MiniCPS follows an object-oriented design pattern. It is using ``python2.x ``
2222for compatibility reasons with ``mininet ``. We are trying to lower the number
23- of external dependencies, and eventually will move to ``python3.x ``.
23+ of external dependencies, and eventually move to ``python3.x ``.
2424
25- * design drivers :
25+ * Design points :
2626
2727 * separation of concerns (eg: public API vs private APi)
2828 * modularity (eg: different protocols and state backends)
2929 * testability (eg: unit tests and TDD)
3030 * performance (eg: real-time simulation)
3131
32- * security drivers :
32+ * Security points :
3333
3434 * avoid unsafe programming languages
3535 * user input is untrusted and has to be validated (eg: prepared statements)
3636 * safe vs unsafe code separation
3737 * automated static analysis
3838
39- * core components:
39+ * Core components:
4040
4141 * ``minicps `` module (should be in the ``PYTHONPATH ``)
4242 * ``examples `` use cases (can be anywhere in the filesystem)
@@ -88,17 +88,18 @@ Code conventions
8888
8989The project it is based on PEP8 (code) and PEP257 (docstring).
9090
91- * naming scheme:
91+ * Naming scheme:
9292
93- * private : prepend ``_ `` eg: ``_method_name `` or ``_attribute_name ``
94- * classes : ``ClassName `` or ``CLASSName ``, ``method_name `` and ``instance_name ``
95- * others : ``function_name ``, ``local_variable_name ``, ``GLOBAL_VARIABLE_NAME ``
96- * filenames : ``foldername ``, ``module.py ``, ``another_module.py ``
93+ * Private data : prepend ``_ `` eg: ``_method_name `` or ``_attribute_name ``
94+ * Classes : ``ClassName `` or ``CLASSName ``, ``method_name `` and ``instance_name ``
95+ * Others : ``function_name ``, ``local_variable_name ``, ``GLOBAL_VARIABLE_NAME ``
96+ * Filenames : ``foldername ``, ``module.py ``, ``another_module.py ``
9797 and ``module_tests.py ``
98- * test: ``test_ClassName `` ``test_function_name ``
99- * make: ``target-name `` ``VARIABLE_NAME ``
100- * makers: ``TODO ``, ``FIXME ``, ``XXX ``, ``NOTE ``
101- * doc: ``doc.rst ``, ``another-doc.rst `` \a nd ``SPHINX_DOC_NAME SOMETHING( `` for
98+ * Test: ``test_ClassName `` ``test_function_name ``
99+ * Makefile: ``target-name `` ``VARIABLE_NAME ``
100+ * Makers: ``TODO ``, ``FIXME ``, ``XXX ``, ``NOTE `` ``VIM MARKER {{{
101+ ... }}} ``
102+ * Docs: ``doc.rst ``, ``another-doc.rst `` \a nd ``SPHINX_DOC_NAME SOMETHING( `` for
102103 Sphinx's ``literalinclude ``
103104
104105
0 commit comments