|
Thermopyle posted:What kind of heathen doesn't have green comments? What kind of poo poo class requires physical printouts of code for homework submission? Classes in the early 90s, perhaps
|
# ? Jul 26, 2013 04:18 |
|
|
# ? Jun 1, 2024 04:24 |
|
QuarkJets posted:What kind of poo poo class requires physical printouts of code for homework submission? Classes in the early 90s, perhaps My intro to OOP class was like this. I had to print out 30+ pages of code for each assignment. Prof's reasoning? "So the TA can make comments in the margins" ... Right. That happened maybe five times total outside of them writing my grade on the paper, which was useless because our grades were online anyways. Why couldn't the TA just add comments to our code with a text editor and return it to us that way? Or give us a document back telling us which lines the mistakes were on? But no, we had to waste our loving money printing out code and not using the online submission system that every other loving course used. This is the same prof who would dock marks on exams in second and third year courses for missing semicolons and handwritten code not being perfectly indented in the tiny space given to us on the exam sheet.
|
# ? Jul 26, 2013 04:44 |
|
QuarkJets posted:What kind of poo poo class requires physical printouts of code for homework submission? Classes in the early 90s, perhaps Every pure computer science class in my undergrad did this. I wish I was kidding.
|
# ? Jul 26, 2013 04:46 |
|
Volte posted:I failed this assignment, other people got 100% even if their code didn't compile or make sense. Did your code work? I'm having a hard time reading the blurry code. I do like these marker's comments though: TA posted:1) Not a good design TA posted:* Programming style is not good. TA posted:You have made the question more complicated for yourself and also for me to mark!
|
# ? Jul 26, 2013 05:17 |
|
I had to print out code listings in my intro courses (then again, it was the 90s). In spite of that being a course requirement, the graders occasionally liked to make passive aggressive remarks about wasting paper. The best was when you'd end up with one closing curly brace on the last page and nothing else. They'd usually fill up the empty space with a drawing of a very angry tree.
|
# ? Jul 26, 2013 05:33 |
|
pokeyman posted:Did your code work? I'm having a hard time reading the blurry code. I do like these marker's comments though:
|
# ? Jul 26, 2013 05:36 |
|
QuarkJets posted:What kind of poo poo class requires physical printouts of code for homework submission? Classes in the early 90s, perhaps My intro computer graphics class, just last semester, for one. Handing in the source to a raytracer on paper is certainly something. I think originally it was so we could peer grade but that sort of fell apart after the first assignment.
|
# ? Jul 26, 2013 08:41 |
|
Thermopyle posted:What kind of heathen doesn't have green comments?
|
# ? Jul 26, 2013 10:29 |
|
Volte posted:Yes, it worked fine, and was far more robust than the official solution which was basically "chop off various parts of the string and put them into a big switch statement". I totally agree with the grader about the style though. Good god, C style comments? Totally random indentation?
|
# ? Jul 26, 2013 11:33 |
|
hieronymus posted:I totally agree with the grader about the style though. Good god, C style comments? Totally random indentation? Don;t troll.
|
# ? Jul 26, 2013 13:12 |
|
The part Volte left out is that after he showed his professor, the whole class had that assignment regraded and the prof got him an internship
|
# ? Jul 26, 2013 13:13 |
|
And that TA was how!!
|
# ? Jul 26, 2013 13:59 |
|
Otto Skorzeny posted:The part Volte left out is that after he showed his professor, the whole class had that assignment regraded and the prof got him an internship And the professor was Albert Einstein!
|
# ? Jul 26, 2013 14:33 |
|
fritz posted:What if we might want to increment x by something else later, you guys have hard-coded in that value. You just overload int::operator ++(int) to a different value obviously.
|
# ? Jul 26, 2013 16:34 |
|
PrBacterio posted:I just checked, and I have comments set to a slight (darker on dark backgrounds, lighter on light backgrounds) shade of grey in all four of the syntax hightlighting/colour schemes I use. Yes, I was sarcastically pointing out that requiring green was dumb (especially on a print out).
|
# ? Jul 26, 2013 16:39 |
|
When you don't know how to teach/manage or measure performance, just pick some random things you *can* measure and use that.
|
# ? Jul 26, 2013 18:09 |
|
Volte, with that break/continue usage and exit(1) I have to conclude that you have no sense of control flow.
|
# ? Jul 26, 2013 18:53 |
|
I think I still probably have some of the first code I've ever written on an old hard drive. I need to dig it up and post it at some point. I remember looking at it a couple of months after I'd written it and realizing how horrible and buggy and leaky it was. I can only imagine what I'd think of it now (over a decade later).
|
# ? Jul 26, 2013 20:57 |
|
That Turkey Story posted:I think I still probably have some of the first code I've ever written on an old hard drive. I need to dig it up and post it at some point. I remember looking at it a couple of months after I'd written it and realizing how horrible and buggy and leaky it was. I can only imagine what I'd think of it now (over a decade later). I'd love to be able to find my first big(ish) project that didn't involve retyping code from magazines. I wrote an ASCII text windowing system in QBasic, and I thought I was hot poo poo for it. Unfortunately, all that code is probably on some decaying floppies buried in a landfill somewhere.
|
# ? Jul 26, 2013 21:47 |
|
Thermopyle posted:I'd love to be able to find my first big(ish) project that didn't involve retyping code from magazines. I wrote an ASCII text windowing system in QBasic, and I thought I was hot poo poo for it. My project was an ocarina simulator that recognized the Ocarina of Time songs and a bunch of stuff from other Zelda games before it (you could switch between an ocarina sound and instruments I pulled from the other zelda games, i.e. all of the ballad of the windfish instruments, if you know Zelda. It was a little midi keyboard interface done with the number and letter keys arranged like a piano. The project was all manual win32 gui poo poo, DirectSound and DirectMusic (back when DirectMusic was actually a thing). I didn't really "get" RAII nor COM so I was not releasing interfaces, etc. and the way I verified whether songs matched was really convoluted. I have all of my old hard drives and I used to copy them over entirely to new hard drives/back them up to CDs on occasion, so I definitely have the code somewhere.
|
# ? Jul 26, 2013 22:30 |
|
shrughes posted:Volte, with that break/continue usage and exit(1) I have to conclude that you have no sense of control flow. Otto Skorzeny posted:The part Volte left out is that after he showed his professor, the whole class had that assignment regraded and the prof got him an internship
|
# ? Jul 27, 2013 03:09 |
|
Thermopyle posted:I'd love to be able to find my first big(ish) project that didn't involve retyping code from magazines. I wrote an ASCII text windowing system in QBasic, and I thought I was hot poo poo for it. Later I got a Pentium II and had to increase to 100k square roots or something. I realised that I needed to make it run at a consistent rate on any speed of computer, so I 'cleverly' wrote a test which ran on startup, did a whole MILLION square roots and measured how long it took - I'd figured that out by then. So close! It used that information to decide how many square roots to run during gameplay. Amazingly the game worked well enough and was fun to play, so in a way I've never really done better on a personal project.
|
# ? Jul 27, 2013 09:58 |
|
In the original Space Invaders, the game gets faster as you kill more enemies for exactly that reason - there's no timing involved, the game just runs as fast as possible, and as you kill enemies there is less to render on the screen so the frame rate goes up. On modern machines, of course, you have to mess about with the clock or something, otherwise the game ends with your death as the enemies reach the ground instantly.
|
# ? Jul 27, 2013 14:32 |
|
That Turkey Story posted:I think I still probably have some of the first code I've ever written on an old hard drive. I need to dig it up and post it at some point. I remember looking at it a couple of months after I'd written it and realizing how horrible and buggy and leaky it was. I can only imagine what I'd think of it now (over a decade later). Hard drive? My first code was on a zx spectrum's tape drive somewhere. Kids these days
|
# ? Jul 27, 2013 14:44 |
|
Volte posted:What, the exit(1) is only for when an impossible thing happens and it aborts the program. It would be more appropriate to assert(3) or abort(3) there. Rothon fucked around with this message at 17:53 on Jul 27, 2013 |
# ? Jul 27, 2013 17:49 |
|
Rothon posted:It would be more appropriate to assert(3) or abort(3) there.
|
# ? Jul 27, 2013 18:25 |
|
'impossible thing happens' is the perfect time to fail an assert(3) or abort(3). You want a messy, loud exit and a core dump so you can see how the program got into an impossible state. You do not want to execute any further code: no destructors, atexit handlers, etc. It is unsafe to continue the program. Sorry to add to your collection of red text.
|
# ? Jul 27, 2013 18:53 |
|
Why the gently caress would anyone care enough to buy a title over something like this. Guess you're Angry About Programming™.
|
# ? Jul 27, 2013 19:23 |
|
What a waste of $10 or w/e.
|
# ? Jul 27, 2013 19:25 |
|
Nice homophobia too, whatever douche did that.
|
# ? Jul 27, 2013 19:29 |
|
That's a spicy meatball
|
# ? Jul 27, 2013 19:31 |
|
RoadCrewWorker posted:Nice homophobia too, whatever douche did that. Hint: ctz posted:Sorry to add to your collection of red text.
|
# ? Jul 27, 2013 19:31 |
|
It wasn't that guy, it was someone from #cobol
|
# ? Jul 27, 2013 19:32 |
|
Buttbot did it.
|
# ? Jul 27, 2013 19:33 |
|
|
# ? Jul 27, 2013 19:44 |
|
I was referring to the corrections in this thread being like additions to the red text from his tutor
|
# ? Jul 27, 2013 20:14 |
|
I'm real confused what somebody did. Did somebody buy a title or avatar? Wasn't me. The only avatars I've bought were tef's and floWenoL's and mine.
|
# ? Jul 27, 2013 20:51 |
|
ctz posted:I was referring to the corrections in this thread being like additions to the red text from his tutor Yeah I realized that, I figured you were making a reference while also making a funny!!!
|
# ? Jul 28, 2013 04:13 |
|
Dicky B posted:I do this when defining lookup tables in C and I know it's pointless and annoying to maintain for anybody who doesn't have some kind of editor plugin but I can't help myself I suppose there are worse habits. I demand you tell me which ide/plugin can do this.
|
# ? Jul 28, 2013 10:34 |
|
|
# ? Jun 1, 2024 04:24 |
|
bucketmouse posted:I demand you tell me which ide/plugin can do this.
|
# ? Jul 28, 2013 12:38 |