Quantcast
Community Discussion: Blog by doctor insidious | Programming Advice #1Destructoid
Programming Advice #1 - Destructoid




Game database:   #ABCDEFGHIJKLMNOPQRSTUVWXYZ         ALL     Xbox One     PS4     360     PS3     WiiU     Wii     PC     3DS     DS     PS Vita     PSP     iOS     Android




click to hide banner header
About
Hi, my name is Matt, but you can call me doctor insidious, because that is much more awesome.
My top ten games:
10. SBCG4AP
9. Sam and Max
8. Gears 2
7. Tap Tap Revenge
6. We <3 Katamari
5. Castle Crashers
4. Persona 3
3. Braid
2. Crayon Physics
1. Cave Story

I am one of the few people who actually know how to program in this world. And by program I mean know how to use pointers.

#include <stdio.h>

#define COCKS 0

int main (int argc, char **argv)
{
printf("Hi I'm doctor insidious\n"
"This is the most useless program I have ever seen\n");
return COCKS;
}
Player Profile
Follow me:
doctor insidious's sites
Badges
Following (12)  


I am bored. Sitting here in the middle of class, you would expect I'd have something to preoccupy myself with.
I don't. This class is called "Intro to Java", and it's the only programming class I was able to take freshman year. From what you've read in my blog so far, would you consider me a "beginner" programmer? God I hope not, I've worked to fucking hard for that.
Anyway, this brings me to the meat of my blog. I came up with an adage for you aspiring programmers, and I liked it. I decided that I'd come up with more and share them with you, like a weekly/monthly thing. So anyway, here's the first one (I really hope I didn't subconsciously steal this from someone):
"Assume the users wants to do everything and nothing and has no idea how."
This compact statement tells of the importance of three things:
-Memory management
-Program protection
-User interface

He wants to do everything, memory management:
Most newbie programmers don't really consider how important this is. He will allocate a block of memory and say "This is how much input you can enter" (creating a character array). This would be like if the people who made Open Office decided that one can only type up to 1,000 pages, and that was it. Sure not a lot of people want to write a book that long, but there are still people who want to.
case in point...


He wants to do nothing, program protection:
This is pretty obvious. Remember, when you are writing a program, don't forget: Error checking, Error checking, Error checking, Error checking, Error checking. What is error checking? Well, say you write a program that gets a random integer and divides it by an integer taken from input (why? No idea). You could right your program seemingly perfectly, but in the end, what if the user enters the number zero?
you can't divide by zero!


How the hell?... user interface:
Don't let other people tell you otherwise: If you have a great program with terrible user interface, you are only doing have the job. Programs should be easy to start and get into, or at least include a manual. What would it be like if when you started up a video game you had to press the A and B button to move through the menu and press down the left analogue stick to select the menu item. While all of you people would be kinda interested messing around with it, I'd be in another room, KILLING MYSELF.
This is good UI (thank god for emacs):


So I hope all you beginning programmers were interested a little bit. I certainly like the quote.
One last thing, how did the word "noggertits" (see last blog) become popular (kind off not really)?! I'm a go and drink some hard cider.



Is this blog awesome? Vote it up!




Those who have come:



Comments not appearing? Anti-virus apps like Avast or some browser extensions can cause this.
Easy fix: Add   [*].disqus.com   to your software's white list. Tada! Happy comments time again.

Did you know? You can now get daily or weekly email notifications when humans reply to your comments.


Back to Top




All content is yours to recycle through our Creative Commons License permitting non-commercial sharing requiring attribution. Our communities are obsessed with videoGames, movies, anime, and toys.

Living the dream since March 16, 2006

Advertising on destructoid is available: Please contact them to learn more