This section covers guidelines for C/C++ code for the MySQL server. The guidelines do not necessarily apply for other projects such as MySQL Connector/J or MaxDB.
Indentation and Spacing
Use spaces for space. Do not use tabs (t). See the editor configuration tips at the end of this section for instructions on configuring a vim or emacs editor to use spaces instead of tabs.
(You may but don't have to split Class_name::method_name into two lines.) When arguments do not fit on one line,consider renaming them.
For identifiers formed from multiple words, separate each component with underscore rather than capitalization. Thus, use my_var instead of myVar or MyVar.
Comment your code when you do something that someone else may think is not “trivial”.
Additional sections can be used: WARNING, NOTES, TODO, SEE ALSO, ERRORS, REFERENCED BY.
General Development Guidelines
We use BitKeeper. for source management.
In C++, use bool, unless the variable is used in C code(for example the variable is passed to a C function).
The reason is that the above makes it much harder for the one reading the caller function code to know what is happening and what kind of code the compiler is generating for the call.
Suggested mode in emacs:
Basic vim setup:
Another vim setup:
Here are some of the DBUG tags we now use:
MySQL Related Interview Questions
|PHP Interview Questions||MySQL Interview Questions|
|PHP+MySQL Interview Questions||Drupal Interview Questions|
|MYSQL DBA Interview Questions||PHP5 Interview Questions|
|WordPress Interview Questions||Joomla Interview Questions|
|CakePHP Interview Questions||CodeIgniter Interview Questions|
|PHP7 Interview Questions|
A Guided Tour Of The Mysql Source Code
Important Algorithms And Structures
How Mysql Performs Different Selects
How Mysql Transforms Subqueries
Mysql Client/server Protocol
Prepared Statements And Stored Routines
Myisam Storage Engine
Innodb Storage Engine
Writing A Custom Storage Engine
All rights reserved © 2018 Wisdom IT Services India Pvt. Ltd
Wisdomjobs.com is one of the best job search sites in India.