zverj ([info]zverj) rakstīja [info]koderi kopienā,
Interesants ir: Static or global variables of class type are forbidden: they cause hard-to-find bugs due to indeterminate order of construction and destruction.

"Make all data members private, and provide access to them through accessor functions as needed. Typically a variable would be called foo_ and the accessor function foo(). You may also want a mutator function set_foo()." Tas jau nu ir paranoisks bullšits. Kretinē Qt stila s.text() is s.setText('123');

We do not allow default function parameters. Tāds pats sviests

We do not use C++ exceptions. Nu varbūt arī pareizi.

Use prefix form (++i) of the increment and decrement operators with iterators and other template objects. Dažas lietas tā arī nemirst.

Nu un tālāk man apnika lasīt. Ja godīgi, tad cilvēkam (-iem) ir radies kāds priekšstats kā kvalitatīvi jāprogrammē un neko jaunu/citādu tas nepieļauj. Kaut kas līdzīgs pašiem ir, bet tas nenozīmē, ka kādā momentā tos likumus nemainīsim.


(Lasīt komentārus)

Nopūsties:

No:
Lietotājvārds:
Parole:
Ievadi te 'qws' (liidzeklis pret spambotiem):
Temats:
Tematā HTML ir aizliegts
  
Ziņa:

Gandrīz jau aizmirsu pateikt – šis lietotājs ir ieslēdzis IP adrešu noglabāšanu. Operatore Nr. 65.
Neesi iežurnalējies. Iežurnalēties?