Monday, November 9, 2015

[ Coding ] Coding conventions for C++ and Python.

< Update > PHP style guideline

It's annoying that something I look at my code written for quite a long time and couldn't understand why I had once written that mess. I know it sounds stupid, but most of my code alterations are just name changing. Damn...

Just mention some conventions here to memorize them. I'd better follow them strictly and consistently.

Decided to use CERN coding style. I mean, Google Coding Style Guideline is the first result shown by Google, and I guess most of developer are using it. So, I decided to cook my code in a different way...

> Python: it's apparent that PEP8 is the first law to obey. Further reading:https://twiki.cern.ch/twiki/bin/view/BEABP/PythonStyleGuide

> C++:
http://pst.web.cern.ch/PST/HandBookWorkBook/Handbook/Programming/CodingStandard/c++standard.pdf

> PHP: i have recently found that PHP conventions vary among frameworks and projects. God damn it. Frankly, following the Apache's PHP Style Guideline is better than changing the way of coding every single times...
http://svn.apache.org/repos/asf/shindig/attic/php/docs/style-guide.html

> Ruby: proposed to be updated later.  The problem is that I do not frequently use it...


Anw, need an idea for a bb10 app... Thinking about an ebook reader ...



No comments:

Post a Comment