L.I.B.

Cyame's Personal Blog

0%

C/C++ Advanced StudyNote

Project Structure

A C/C++ Project should be like as follows:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21

Graph LR;

A[root] -> B[debug]
A -> C[release]
A -> D[dist]
A -> E[docs]
A -> F[include]
A -> G[lib]
A -> H[src]
A -> I<samples>
A -> J<test>
A -> K(README)
A -> L[Makefile/cmake]
A -> M(LICENSE)
A -> N(CMakeList.txt)
A -> O(.gitignore)
A -> P(.travis.yml)
A -> Q<Docker>
A -> R[scripts]
A -> S[some modules]

Documenting

Interface & Function

  • @brief <discription>: A brief discription of Function.

  • @param <parameter> <discription>: Discription for each parameter(if have, multi-lines when multi-parameters).

  • @return <discription>: Discription for the return value(if have).

Vue LearningNote

Basic

Debug & Tips

Get Started

  • Force Interrupt using Ctrl+C
    Never interrupt your chromedriver installing process. Though it takes time, but once interrupted, you may have to delete all your node_module folder and restart once again.

  • ENOSPC, which means ‘Error No more hard-disk space available’
    Once a project has mean started defaultly, the maximum watches could be really low, so you should have to enhance the limit by reset nodemon‘s maximum watches to possible max by using

    1
    echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p

    as command in the project’s root path.

ESlint

  • Sometimes, ESlint could be annoying. The way to shut it down is to change the option of useEslint in file /config/index.js. But most time, we should initial the grammar check to make sure our codes are under good condition and standard.