PDA

View Full Version : my first time



Mario F.
06-04-2006, 10:58 AM
Start learning about arrays, and pointers, and const, and suddenly C++ stops looking so sexy.

laserlight
06-04-2006, 11:11 AM
So learn about std::vector, iterators and generic algorithms? :)

Prelude
06-04-2006, 11:38 AM
>Start learning about arrays, and pointers, and const, and suddenly C++ stops looking so sexy.
Are you out of your mind? Arrays, pointers and const are big reasons why C++ is sexy. :)

Mario F.
06-04-2006, 12:07 PM
hmm... probably because it hurts the first time. But I guess you mean because they look cool :)

Good thing though is I'm moving on. Finished these chapters on pointers, arrays and c-style strings. I guess I'm a programmer now ;)

Prelude
06-04-2006, 02:08 PM
>But I guess you mean because they look cool
Not really, I mean that they give you a surprising amount of low level power for a supposedly high level language.

>I guess I'm a programmer now
:p

whiteflags
06-04-2006, 02:25 PM
Real programmers probably work, write books, and post on newsgroups or anonymous boards. English wins as the world's most painful subject, however. (http://www.youtube.com/watch?v=0MNjOqKta78)

Dante Shamest
06-04-2006, 02:33 PM
The sexiest code ever.


char* s ;
printf( "%s", s );

silk.odyssey
06-05-2006, 08:54 PM
So learn about std::vector, iterators and generic algorithms?


That's when C++ stops looking sexy. LOL. All we are we want is C with classes :D

joeprogrammer
06-06-2006, 09:30 AM
++i -= (i-- += --i) + (i++ - ++i) - i; // <-- this is cool C++

indigo0086
06-06-2006, 10:38 AM
I just love the curves on those references.

And that vector can't be real...I can't wait to push onto the back of it.

whiteflags
06-06-2006, 10:41 AM
Actually Doesn't Cobol Win As It Is Typed In All Caps As It Is Cruise Control For Cool??

laserlight
06-06-2006, 10:51 PM
--_ -= (_-- -= --_) - (_-- - --_) - _; // <-- this is even cooler C++/Morse code

CornedBee
06-07-2006, 03:46 AM
Except that both "cool" C++ pieces yield undefined results.

laserlight
06-07-2006, 03:51 AM
Except that both "cool" C++ pieces yield undefined results.
Nah, we'll just rewrite the Standard. hmm... or maybe _ is an object of some class type where all the overloaded operators are no-ops.

nvoigt
06-07-2006, 04:27 AM
Arrays, pointers and const are big reasons why C++ is sexy


const alone makes it the sexiest language alive.

Writing C# code at the moment I would soooo kill for a single preprocessor macro. It's unbelivable that a programming language has no way to automate code generation. Ever typed code out for 73 Accessor/Properties encapsulating 73 private variables ? Did I mention I need a preprocessor ? Badly ? Like RIGHT NOW ?

Mario F.
06-07-2006, 04:31 AM
--_ -= (_-- - --_) - (_-- - --_) - _; // That will fix it.

I have to agree though. It's much sexier than typing _ += 3

laserlight
06-07-2006, 04:47 AM
That will fix it.
I think it is too convoluted to be fixed :)

Prelude
06-07-2006, 06:39 AM
>Did I mention I need a preprocessor ? Badly ? Like RIGHT NOW ?
You silly kniggit, what's stopping you from writing a preprocessor? The nice thing about being a programmer is that if you don't like something, you can change it. :)

Mario F.
06-07-2006, 07:24 AM
const alone makes it the sexiest language alive.

I missed this one. It is so true it hurts.

pianorain
06-07-2006, 07:47 AM
Ever typed code out for 73 Accessor/Properties encapsulating 73 private variables ? Did I mention I need a preprocessor ? Badly ? Like RIGHT NOW ?No, I let refactoring do that for me. Please tell me you're using 2005.

Mario F.
06-07-2006, 08:50 AM
Is this another team, the one refactoring? Are they violent? Do you wear protection?

All important issues when discussing sexy C++

pianorain
06-07-2006, 09:09 AM
I don't discuss sexy C++. I just do it.

Unfortunately, refactoring has nothing to do with C++. Refactoring is an option handled by the VS.Net 2005 IDE.

Mario F.
06-07-2006, 09:54 AM
Some corporate development environments employ refactoring teams. Was just curious, since it's not unusual for threatening emails to go back and forth between the two groups of coders.