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

C++

Name: Anonymous 2006-06-19 10:09

E?

Name: Anonymous 2006-06-19 14:06

F?

Name: Anonymous 2006-06-19 14:14

G?

Name: Anonymous 2006-06-19 14:15

H!

Name: Anonymous 2006-06-19 14:18

no, D. Morons!

Name: Anonymous 2006-06-19 14:54

I

I don't want to make any waves...

Name: Anonymous 2006-06-19 16:31

D++?

Name: Anonymous 2006-06-19 18:05

while(true) { cout << "OH SHI-" << endl; }

Name: Anonymous 2006-06-19 21:53

Psh,
#include <cstdio>
int main(){for(;;)std::puts("OH SHI-");}

Name: Anonymous 2006-06-19 23:34 (sage)

lol:
cout<<"oh shi-"<<endl;
goto lol;

Name: Anonymous 2006-06-20 3:37 (sage)

>>10
OMG!!! You used goto!!! I heard in university it's an heresy!!!

Name: Anonymous 2006-06-20 5:04

>>11
while (true)
{
  cout << "O SHI-\n"
}

Name: Anonymous 2006-06-20 9:33

include <iostream>

using namespace std;

main()
{
 za_warudo();
 return 0;
}

void za_warudo()
{
 printf("Wrryyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy");
}

Name: Anonymous 2006-06-20 14:47

>>13
#pragma kawaii

Name: Anonymous 2006-06-22 0:52

>>13
at least show us the function

Name: Anonymous 2006-06-22 4:08

>>15
Click the "(Post truncated.)" link

Name: Anonymous 2006-06-22 12:35

>>15
noob.
GTFO

Name: Anonymous 2006-06-22 12:55

Hey, I don't like typing out code like that.  I don't like to put the top side of the curly brace on its own line.  I like to put it after the function declaration like so:

main() {
    za_warudo();
    return 0;
}

Is this wrong, and should I be ashamed?

Name: Anonymous 2006-06-22 13:00

>>18
Regular answer: No style is wrong. Just be consistent.

My answer: I hope you fucking die. >:(

Name: Anonymous 2006-06-22 14:45

Thoughtful answer: Some styles are wrong for non-subjective reasons. For example: braces on a new line look fucking ugly (subjective, although if you don't agree I hope you fucking die), and they waste visual space (which is an objective observation). Braces in the same line are thus better.

My answer: >>18 is the right style.

Name: Anonymous 2006-06-22 15:27

>>20
they waste visual space

Sorry, I like a little extra whitespace in my code. Thanks. The "omg i can code stuff compact-like" often gets really horrific  (especially with my experiences with other same-line-bracers - ew).

Name: Anonymous 2006-06-22 15:43

>>21
What's the advantage of placing the braces on different lines?

Name: Anonymous 2006-06-22 17:10

>>21
I usually separate chunks that deal with different aspects of code with blank lines, and I do that a lot. But braces in a single line is fugly.

Name: DoubleAW 2006-06-22 19:06

>>22

Because then you can delete a line without deleting the end brace.

Name: Anonymous 2006-06-22 20:26

Shift+End, Left, Delete, Lol

Name: DoubleAW 2006-06-23 0:00

People get lazy. :P

Name: Anonymous 2006-06-23 3:24

>>25
>>26

:<linenumber>s/^.*}$/}/g

I COMMAND YOU TO LOVE THE VI !!!!!

Name: Anonymous 2006-06-23 6:42

vi is da shit, i love nano <3

Name: Anonymous 2006-06-23 7:04

Please, nano can't do anything. It's basically a command line implementation of notepad.

Name: Anonymous 2006-06-23 7:23

>>28
Only people who do not know what the vi is capable of say that they love nano.

How was it? Move the lines 7 to 9 to the end of the document?
:7,9m$

Tell me how you do it with nano!

Name: Anonymous 2006-06-23 8:06

For some people, a command-line implementation of notepad is enough. How often do most people need to do >>30, and is the time learning many details like that worth it?

Name: Anonymous 2006-06-23 10:44 (sage)

real programmers don't use text editors.

Name: Anonymous 2006-06-23 13:38

>>32
Sure, you run to your Server, to log in graphically so you can write a small shell-script.
The server is in another building? gogogo!

You don't write Client-Server-based programs or just use Windows-Servers?
Ynd YOU call yourself a programmer?!

Name: Anonymous 2006-06-23 14:37

Real programmers use line editors.  Preferably ed.

Name: Anonymous 2006-06-23 16:00

>>30
Working with line numbers is anal because you don't know or care for them, and you have to either waste visual space displaying them, or move the goddamned cursor to see what line do you want.

Name: Anonymous 2006-06-23 16:12 (sage)

>>35
Working with line numbers is anal because you don't know or care for them

You don't debug much, do you.

Name: Anonymous 2006-06-23 16:28

>>31
I do this a lot, noob. Just because you're a noob and don't understand Vi doesn't mean it's useless. Just stay with Visual Basic and let the pros do the good stuff.

Name: Anonymous 2006-06-23 16:32 (sage)

>>33
>>32 here, i mostly use echo and cat.
and i'm not a real programmer. if i were, i wouldn't be posting here.

Name: Anonymous 2006-06-23 23:36 (sage)

>>37 won't be writing software for anyone else, any time soon.

Name: Anonymous 2006-06-24 8:58 (sage)

>>39
There are worse things than vi, like Eclipse.

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