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:
Anonymous2006-06-22 13:00
>>18
Regular answer: No style is wrong. Just be consistent.
My answer: I hope you fucking die. >:(
Name:
Anonymous2006-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.
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:
Anonymous2006-06-22 15:43
>>21
What's the advantage of placing the braces on different lines?
Name:
Anonymous2006-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.
Please, nano can't do anything. It's basically a command line implementation of notepad.
Name:
Anonymous2006-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:
Anonymous2006-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:
Anonymous2006-06-23 10:44 (sage)
real programmers don't use text editors.
Name:
Anonymous2006-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:
Anonymous2006-06-23 14:37
Real programmers use line editors. Preferably ed.
Name:
Anonymous2006-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:
Anonymous2006-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:
Anonymous2006-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:
Anonymous2006-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:
Anonymous2006-06-23 23:36 (sage)
>>37 won't be writing software for anyone else, any time soon.
Name:
Anonymous2006-06-24 8:58 (sage)
>>39
There are worse things than vi, like Eclipse.
Name:
Anonymous2006-06-24 20:10
>>40
I'll agree with that. I was referring to the "one size fits all" attitude.
Normal people don't use vi, because they don't need that kind of power, just like most people don't need Lexis Nexis.
Name:
Anonymous2006-06-25 9:51
>>41
Are you aware this is a programming forum? Programmers need a powerful editor, who cares what Joe Sixpack uses (hint: he uses the copy of MS Word that came "free" with his Dell.)
Name:
Anonymous2006-06-25 10:39 (sage)
>>41
Are you aware that normal people don't program for either living or as a hobby?
But after using Windows for 15 years and memorizing all of the shortcuts, I can do just about anything faster in Windows because *it's what I already know*.
To move the three lines to the end of the document like in >>30, I would just:
Go to line 7 (probably using page up, and the mouse)
Press the home key
Hold shift
Press down three times
Possibly press the end key if I have to
Press control-x
Move to the end of the document (page down or scroll if very long)
Press control-v.
Maybe your way is faster, but my way is what I know, and it works faster for me than using vim.
Name:
Anonymous2006-06-25 16:01 (sage)
>>30
in any non-assed editor, you don't even need to know the line numbers
>>58
That is a horrible salary for a BS in Computer Science. I'm a senior right now, going to grad school, but all my friends who interviewed for jobs have been offered at least $50k.
AHAHAHAHAHAHAHAHAHAHAHAHA (aha... AHAHAHAHAAHAHAHAHAHAHAHAHAHAHAHAAHAHAHAHAHAHAHAHAHAHAHAHAAHAH)! Quit hanging out in on textboards and read a freaking C++ tutorial! "include" is a preprocessor command, you have no function declaration for the function you used and you didn't define a return type for main.
You loose three internets.
Name:
Anonymous2006-12-18 1:05
>>68
OH SHIT, THREE INTERNETS HAVE BEEN SET LOOSE
EVERYONE RUN
Name:
Anonymous2006-12-18 20:39
#include <iostream> // missing "#"
int za_warudo(); //missing declaration
using namespace std // error-producing colon
main()
{
za_warudo(); //there's no reason for a function for such a small code
return 0;
}
void za_warudo() //this should be zaWarudo; underscores ftl
{
cout<<"Wrryyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy"<<endl; /*print? terrible, terrible*/
}
Name:
Anonymous2006-12-19 0:51
using namespace std; is DIRTY! Import only what you need with: using std::ostream;
So yesterday I decided to be a lazy ass and go to Taco Bell instead of cooking something. BIG MISTAKE. Today, I woke up in horror to find that I was in a small pool of liquid feces, the result of eating low quality processed meat. My dog, who was currently sitting on my bed, seemed to love it. He was slowly but surely licking away at my shit-covered sheets, enjoying every bit of it, all the while making a big mess of himself. He then proceeded to hop off my bed and walked back to another room in the house. He left a disgusting trail along the way. I couldn't do anything about it; getting out of bed to pick up my dog would only make an even bigger mess. I had to think of something quick, for I had to go to work in a few hours. I didn't know what to do, so I just stripped all my clothing, left it on my bed, and ran to the bathroom to take a shower. It took quite a while to get the awful stench off my body. When I had finally finished, to my surprise, my dog had come back at least a few more times to feast upon my waste. He was covered in my brown butter from head to paw. No room was left untouched... The entire floor was coated in shit, in addition to many pieces of white furniture. Well, at least they WERE white. I decided to wash away my worries with a drink and went off to work. I'll clean it up later, I said to myself. It'll all work out okay. No one will no about this. Oh, how wrong I was. Apperantly, the scent was so god awful that my neighbors could smell it too, and they called in a sanitation crew who cleaned it all up. By this time, everyone in the neighborhood had heard of this. I was so embarassed. Ah, shit.
Bringing /prog/ back to its people
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy