LiveInternet
LiveInternet
x
(+ )
community coding
community coding
community_coding
-
(102)
web-
(38)
(22)
(14)
(13)
(11)
(3)
(3)
-
e-mail
-
-
(14)
c
c++
cgi
delphi
html
java
mysql
pascal
perl
php
programming
web
-
(258)
dpal
_
Charly(Black)
Gudy
Haoatarez
Igors_Faraons_Elvi
JULIA_Ch
Jo_Walker_
Lan-Box
Lightpower
Mike_Nerevarin
P_a_s_h_a
Real_Rp
SCREW_DAGGER
STF-245
Sa_Bo_Nim
Same_Clone
Saw_me_drown
Seyfer
Shimmering
Splint
Strong_Gale
VictorT
Video_lady
Wethril_Haldar
aDolphin
av3nger
dimaker
flavour_of_rain
full_screen
kisundrik
kpt_Petia
liricsDota
lpfan
motiv4you
pupunussi
seoblognot
shatun554
smartcoder
_
_
__
_
_
__
-
: 29.12.2004
:
:
: 536
:
Coding Style ( )
, 25 2005 . 03:24
+
Djuffin
.
( )
. ( .)
.
- , .
C++:
0 ?
code:
if (ptr == NULL)
if (ptr == 0)
if (ptr)
if (0 == ptr)
if (NULL == ptr)
.
if (ptr) - , ptr - .
if (0 == ptr), if (NULL == ptr) - , .
NULL, ptr , 0, .
. - .
, ,
.
Djuffin
:
0
0
0
0
0
0
<a href="https://www.liveinternet.ru/community/community_coding/post5439125/">Coding Style (или самая священная война)</a><br/>Казалось бы ну какое значение имеет как вы ставите скобки или именуете переменные. Но существует масс рекомендаций (из самых различных источников) по этому вопросу и прочти все они друг другу противоположены. (Особенно в вопросах имяобраования.) Согласия нет нигде. Гектолитры слюну в виде брызг были вылиты на мониторы из-за того что одни программисты доказывали другим, что их стиль гораздо лучше. Возьмем C++: Ну и какой е из способов проверки указателя на 0 является единственно верным? code: if (ptr == NULL) if (ptr == 0) if (ptr) if (0 == ptr) if (NULL == ptr) И ведь кажд... <a href="https://www.liveinternet.ru/community/community_coding/post5439125/">Читать далее...</a>
« .
—
—
. »
:
[1] [
]
, 25 2005 . 04:00 (
)
- :)
Occam's Razor - if (ptr). " ptr - " - :) - , - ? :) ?
: if (!ptr) if (ptr) ;) :)
Wincy
, 25 2005 . 16:19 (
)
...
Wolverrum
, 26 2005 . 22:35 (
)
if ( !!ptr ) :)
( ).
if ( ptr == NULL ) , , ( )
Djuffin
, 28 2005 . 00:27 (
)
Wolverrum,
. .
, test eax,eax! .
« .
—
—
. »
:
[1] [
]
:
:
: ( )
:
URL
LiveInternet
PDA