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

Horrors in ##C

Name: Anonymous 2010-07-28 15:34

Troll or complete moron?  You be the judge!

<sshorm> anyone around?
<sshorm> i'm looking for some help on a game i'm developing
<twkm> vague is as vague does.
<Love4Boobies> sshorm: What's the pay? ;)
<sshorm> pretty low to be honest
<sshorm> i'll show you my breasts tho
<sshorm> i'm writing a Battle Ship game to help me learn C
<sshorm> and it was going along really well
<sshorm> i spent a lot of time on it, and it's not very complex
<sshorm> but i'm running in to some logic problems
<sshorm> http://pastebin.com/V3jWjXtg
<twkm> does it help to know it doesn't compile?
<mauke> <conio.h>? you're fired
<Love4Boobies> If it's a learning project maybe you should do it try to do it alone.
<gh7d395pi69wd> 28,000 line testcase?
[11:57:51] <Love4Boobies> There are a bunch of switches each with one case... wtf.
<twkm> (c99 but implicit int for main)
<mauke> where's the c99?
<Love4Boobies> Looke into IF.
<twkm> mauke: line 18822.
<sshorm> what?
<Oddity> Do you have a question about C?
<sshorm> the switches were the only was i knew to do that logic
<sshorm> i thought it worked well and was simple
<sshorm> doesn't the compiler optimize all that anywayys?
<sshorm> so it shouldn't really matter
<mauke> twkm: heh
<mauke> sshorm: if you wrote all of that by hand, shoot yourself
<Jafet> I approve; more people should do this to pastebin.com.
<sshorm> mauke: i didn't type all of it out
<Oddity> phew
<sshorm> but i copy/pasted and edited the variables
<Oddity> ohno
<sshorm> didn't take too long
<twkm> *phear*
<Jafet> Hey, perhaps someday he'll learn to write a program to generate the code for him!
<sshorm> Jafet: yeah, that's what my professor said
<sshorm> but he told me he really liked the code
<Jafet> Great minds... oh, forget it
<sshorm> Jafet: how do i write a program to write my code for me?
<Jafet> I don't know. Write a program to tell you how.
<Oddity> sshorm: Do you have a C question?
<Oddity> Do you have any intelligent question at all?
<sshorm> Oddity: i asked a couple
<sshorm> what about my code?
<sshorm> Oddity: stop instulting me because i'm better than you at programming
<Oddity> Oh, about the compiler optimizing your 28,000 lines of switch statements.  Well, it might, but that doesn't mean this is good programming practice.  Do you think anyone would want to maintain this thing?
<sshorm> how many of you have written a 28000 line program?
<sshorm> i don't expect anyone to maintain it
<Oddity> That's good.
<sshorm> as long as i straighten out the logic issues, it should be perfect
<Oddity> You haven't told us what the logic issues are yet, or why ##C is the appropriate channel for those issues.
<sshorm> Oddity: maybe because it's in C?
<sshorm> if you have a problem with me, tell me
<Oddity> What are the logic issues?
<sshorm> don't insult me because i'm a better programmer than you
<Oddity> You won't have to worry about that.
<twkm> pigdude: sizing has little or nothing to do with c.
<sshorm> Oddity: good
<sshorm> Jafet: help?
<pigdude> twkm: got it, thanks
<sshorm> twkm: ?
<sshorm> it's sometimes saying that the wrong space was hit
<sshorm> in the game
<sshorm> i can't figure out why
<twkm> the logic is flawed.  consider using a debugger.
<bps> perhaps there is an error in one of your 23,000 lines of code
<Oddity> Probably because your program is 27000 lines longer than it should be.
<sshorm> my professor told me that length is a good part of the grade
<Jafet> sshorm: thankfully, you're beyond that stage.
<sshorm> he doesn't want us making it really short
<Oddity> Holy shit.
<bps> you are right. better pad your code out a few ten thousand lines more for maximum score
<sshorm> i don't see how you have room to criticize me when my college professor with a PHd says he likes my coding style
<Oddity> bps: Just like in the real world, right?
<drusepth> sshorm: you should really put { on new lines
<drusepth> it helps the compiler compile it faster or something
<psychoschlumpf> sshorm: so i'd say the PhD guy is an idiot
<sshorm> psychoschlumpf: shut up, you don't even have a degree
<bps> i have a phd in writing bad code and your code is great
<sshorm> bps: i'm sure you do
<sshorm> drusepth: what do you mean?
<sshorm> drusepth: oooo, good idea
<IceDane> sshorm: 1. Open your code in your favorite editor
<sshorm> that'll boost my lines of code
<IceDane> 2. ctrl + a
<IceDane> 3. backspace
<IceDane> 4. ctrl + s
<IceDane> 5. rewrite
<sshorm> Oddity: did you see what the logic error was?
<sshorm> IceDane: haha you almost got me
<sshorm> i stopped because ctrl + s is save

Name: Anonymous 2010-07-30 6:52

>>26
Haha! You can't? It was easy to visualise even as an 11 year old

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