Omnimaga

General Discussion => Other Discussions => Miscellaneous => Topic started by: AngelFish on November 07, 2010, 10:04:04 pm

Title: What is your code like?
Post by: AngelFish on November 07, 2010, 10:04:04 pm
My code is like a rusted old boat:

It'll use outdated parts, have half a dozen leaks you won't find for three months, and make you cringe every time you look at it. But, it'll function and if you work with it, it will outlast those newfangled speed boats.
Title: Re: What is your code like?
Post by: yunhua98 on November 07, 2010, 10:04:49 pm
My code is:

Unoptimized
Title: Re: What is your code like?
Post by: nemo on November 07, 2010, 10:08:14 pm
illogical. in java, i made an Int class with 1 instance variable: int Int. i broke at least a dozen coding conventions, because at the moment, it was easier.
Title: Re: What is your code like?
Post by: Hot_Dog on November 07, 2010, 10:11:22 pm
My code is like Windows XP.  It has some features that never get used, and it's not as optimized as a Mac, and yet it's powerful, fast and small as opposed to Vista
Title: Re: What is your code like?
Post by: nemo on November 07, 2010, 10:13:10 pm
and a small addendum:

as illogical as it is, it's very flexible. you can reuse it often.
Title: Re: What is your code like?
Post by: DJ Omnimaga on November 07, 2010, 10:15:30 pm
My code only has rudimentary optimizations. I learned TI-BASIC only from the 83+ guidebook that had a chapter on programming, back when I had limited computer access to access tutorials.

Besides that, if I do a sequel of one of my game, I will re-use a lot of old code and modify it.

Also my code is not well organized. Many people said it was hard to read.
Title: Re: What is your code like?
Post by: yunhua98 on November 07, 2010, 10:16:26 pm
I can't read anybody's code without a lot of effort, because I have no idea whats going on in their minds when they wrote it.  ;)
Title: Re: What is your code like?
Post by: MRide on November 07, 2010, 10:16:57 pm
My code is iffy (;D).  It has a lot of If-then statements where it could be optimized better.
Title: Re: What is your code like?
Post by: Builderboy on November 07, 2010, 10:20:42 pm
My code is spaced out:

I usually use a ton of newlines when writing programs, even when i am on the computer where i have indenting.

My code is different:

I usually use whatever method i can think of to write a program, possibly bypassing normal standards or conventions in the way

My code is hard to read:

Even i have trouble going back and figuring out what variables mx,my,a,ab,ac,ad.... were for XD
Title: Re: What is your code like?
Post by: Deep Toaster on November 07, 2010, 10:22:57 pm
My code is like my namesake computer: It gives me results I don't understand and yet explain nothing. No comments, no debug messages, nothing.
Title: Re: What is your code like?
Post by: yunhua98 on November 07, 2010, 10:24:29 pm
ok, serious description this time:

my code is:
Unoptimized
Messy
Annoying
Sometimes Successful
Needs Help

ya, thats about it.  ;)
Title: Re: What is your code like?
Post by: Darl181 on November 07, 2010, 10:25:31 pm
My code is unorganized with remnants of previous ideas and addings lost in the multitude of other stuff, probably has some comments from when I tried to figure out where the stupid End that's causing the ERR:BLOCK is, subroutines named for acronyms long forgotten (SF is enemy editing...?), and occasionally has some random If A=1:1→A:End or something completely odd like that when I tried to modify the same loop so many times that it got to the point that the loop runs about 30% the speed it should run at.  My code is in such a way that when people try to optimize it people are completely confused at how the thing actually works and what does what.  My code also recycles some old things I thought made sense when I started coding ("don't use a Line( , use a For( loop instead!")
Thankfully, my new code is better in most aspects now, but I look at my old code and wonder...What was I thinking?
Title: Re: What is your code like?
Post by: willrandship on November 07, 2010, 10:25:59 pm
My code is

Never optimized
Readable
Very commented
Planned out (even in the comments! As in, "battle engine goes here)
Always works
unfinished

I'm kinda OCD about my code. It's bug free or it's not finished. I'm not usually very motivated though :P
Title: Re: What is your code like?
Post by: Deep Toaster on November 07, 2010, 10:26:30 pm
Thankfully, my new code is better in most aspects now, but I look at my old code and wonder...What was I thinking?

Heh, that reminds me of my first time using HTML/CSS. I tried to keep everything on a single line x.x Suicide.
Title: Re: What is your code like?
Post by: Juju on November 07, 2010, 10:34:17 pm
My code is

easy to read
indented Allman style (as it is the default in MS Visual Studio)
really optimized (if possible) (makes long unreadable lines)
not commented a lot (unless it's old code or placeholders)
have weird variable names sometimes (Var, Var2, x, y, value, or lots of similarly named variables).
Title: Re: What is your code like?
Post by: ztrumpet on November 07, 2010, 10:35:36 pm
My code is spaced out:
I usually use a ton of newlines when writing programs, even when i am on the computer where i have indenting.
My code is different:
I usually use whatever method i can think of to write a program, possibly bypassing normal standards or conventions in the way
My code is hard to read:
Even i have trouble going back and figuring out what variables mx,my,a,ab,ac,ad.... were for XD
Your code is one of the foundations of my code; so complex that I need to spend a lot of time deciphering it and in the process learning new ways to program.  Thank you. :)

My code is often...
optimized as it is written
never given a second look
working wonderfully, but has the occasional bug that takes hours to find
easy to go back to (for me)
Title: Re: What is your code like?
Post by: Deep Toaster on November 07, 2010, 10:37:33 pm
My code is never gonna:

(http://www.music.mcgill.ca/~benjamin/misterpenguin/uploaded_images/RickAstley-733582.jpg) (http://goo.gl/QMET)
Title: Re: What is your code like?
Post by: willrandship on November 07, 2010, 10:38:24 pm
Heh, I try to write my code to my code writing style. I have to leave myself notes all over the place, or Ill have no idea what I was doing before I quit for two or three weeks/months/years

Not that I've ever had a calc survive for more than 2 years :P
Title: Re: What is your code like?
Post by: Deep Toaster on November 07, 2010, 10:45:58 pm
I'm kinda OCD about my code. It's bug free or it's not finished. I'm not usually very motivated though :P

Same here, except it's worse with me, especially with comp languages. If anyone looks through my code, they'd notice immediately that structure is exactly the same, down to the smallest whitespace :P

Something about TI-BASIC forced me to make everything the same, super-optimized way.
Title: Re: What is your code like?
Post by: calc84maniac on November 07, 2010, 11:06:13 pm
My code is
Spoiler For Spoiler:
THE GAME
Title: Re: What is your code like?
Post by: meishe91 on November 07, 2010, 11:54:49 pm
My code is:

As optimized as possible as written or at least just written so it works.
Occasionally there is the bug here and there that is a pain to fix.
Optimized even greater when gone over again, if possible.
Commentless.
Title: Re: What is your code like?
Post by: AngelFish on November 08, 2010, 12:10:00 am
Addendum:

My code is kind of like me, scatterbrained and in several places at once. Bug hunting is like an African safari inside my calc.
Title: Re: What is your code like?
Post by: Builderboy on November 08, 2010, 12:11:52 am
Your code is one of the foundations of my code; so complex that I need to spend a lot of time deciphering it and in the process learning new ways to program.  Thank you. :)

Awww it is inspiring to know how inspiring i could be to some fellow programmer  :)
Title: Re: What is your code like?
Post by: Netham45 on November 08, 2010, 12:28:52 am
My code gets the job done, often in the quickest way, but it's confusing as hell to read.

Comments are something I lack in entirety.
Title: Re: What is your code like?
Post by: shmibs on November 08, 2010, 01:23:41 am
Quote from: me in the tilemapper thread [url=http://ourl.ca/7765/138246;topicseen#new
/\i do that type of thing all the time(get a hunch as to how something could work, write it out as quickly as possible, and, if it doesn't work[which is usually], fiddle with it blindly until it does). after this process, i usually fall asleep(it tends to occur when i'm really tired), and then read over it in the morning, try to understand it, and re-write it from scratch.

my code has no comments whatsoever(unless i add them at the very end for other people's viewing pleasure), and contains many odd habits formed during my BASIC programming(i.e. putting everything on one line because i'm trying to squeeze as much code onto the tiny screen at a time as is possible). my development either proceeds as is written in the quote above or during the day when i'm slightly sane and plan things out beforehand. if the former is true, chances are i'll have to do it over again to make it run at a decent speed, and, if the latter is true, chances are it wont work at all  ;D
Title: Re: What is your code like?
Post by: DJ Omnimaga on November 08, 2010, 03:16:46 am
Oh lol I remember when I put as many things in one line as possible. Later, I started getting tired of losing everything because I accidentally hit CLEAR so what I do, now, is just put enough code in one line so it remains compact. Example:

I will not do the following:
Code: [Select]
If A=2
Then
1->A
Text(1,1,"Hello world!",T,"TEST",U
Else
0->A
End
I'll not do the following either:
Code: [Select]
If A=2:Then:1->A:Text(1,1,"Hello world!",T,"TEST",U:Else:0->A:End
Instead I'll do
Code: [Select]
If A=2:Then
1->A
Text(1,1,"Hello world!",T,"TEST",U
Else:0->A:End

Still compact, but much less harm caused if you accidentally press CLEAR.

I absolutely hate putting everything in one line, because it takes 3 times longer to scroll through extremly large programs.
Title: Re: What is your code like?
Post by: Happybobjr on November 08, 2010, 07:36:16 am
my code is: Intuitive.

I make up my own collision checking rutines cuz i don't bother looking them up ;)
Title: Re: What is your code like?
Post by: TIfanx1999 on November 08, 2010, 08:32:30 am
My code is
Spoiler For Spoiler:
THE GAME
QFT!

My code is:
Optimized to the best of my ability
Creative(at times)
Readable

=)
Title: Re: What is your code like?
Post by: SirCmpwn on November 08, 2010, 08:43:38 am
Organized, optimized, efficient.
I don't mean to brag, but I will organize my code very logically, and will comment above every subroutine with the inputs and what they do.  If my game has some sort of organized list, I will comment somewhere about how the list is structured.  I have commented about which variables do what.  I also hard-wired my brain to spit out optimized Axe code, so I don't have to go back and optimize it later.
My C# and Java code is of a similar quality.
Title: Re: What is your code like?
Post by: Xeda112358 on November 08, 2010, 08:49:27 am
In BASIC:
My code is almost decipherable by me
Is always optimized
"spaced" out in development
No comments

In Assembly:
Only I can read it and know what it says
Takes a few times to properly optimize
"Spaced" in development
No comments
Confusing to follow, even when translated
Code: [Select]
3250EFCD7829DB89AE32F4AA
B455I4EAT465BABIES2391416
99972D188AC44EDBC113A6C9

*not an actual code
Title: Re: What is your code like?
Post by: Munchor on November 08, 2010, 09:26:39 am
My code is never gonna:

(http://www.music.mcgill.ca/~benjamin/misterpenguin/uploaded_images/RickAstley-733582.jpg) (http://goo.gl/QMET)

It's h!!!!! I WIN!!

Hahahah nice pic