Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

How to Improve C/C++

Name: Anonymous 2016-10-29 3:47

Just let p++ to be *p++. Its value never used other than with dereferencing. You won't see q = p++ in practice.

Name: Anonymous 2016-10-31 18:09

>>40
/prog/ was never good.

Name: Anonymous 2016-10-31 18:18

>>15

You can use lambda or class for that.

Name: Anonymous 2016-10-31 19:49

>>39
Will I also get fired for using ++*p or (*p)++?

Name: Anonymous 2016-10-31 19:55

>>43
Ask your team lead.

Name: Anonymous 2016-10-31 20:03

>>32

ZOMG!

Name: Anonymous 2016-10-31 20:56

>>38

The *p++ is major language idiom used so frequently that everyone knows its meaning. On the other hand code using something like ++--*p++-- will be hard to understand.

Name: Anonymous 2016-10-31 22:42

>>37
Sorry, I meant secure code industry, the people whose life is dedicated to writing secure code.

Name: Anonymous 2016-11-01 12:00

>>46
This is not valid code.
Again, will I also get fired for using *p--, ++*p or (*p)++? I see these almost everywhere.

Name: Anonymous 2016-11-01 16:41

>>48
It is better to replace (*p)++ with *p = *p+1

Name: Anonymous 2016-11-01 16:45

>>48
will I also get fired for
You will get fired for annoying your colleagues and managers, who will be forced to sack you, after getting enough complains from your peers or even your subordinates. IT people love writing anonymous denunciations.

Name: Cudder !cXCudderUE 2016-11-02 0:45

>>48
Depends what kind of people you work with. If they're a bunch of retards who barely claim to know C, probably yes (and you'd be better off going somewhere else anyway.) If they're on the level of Linus Torvalds, Fabrice Bellard, and Brian Kernighan, almost certainly not.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List