Author Topic: What is your code like?  (Read 9882 times)

0 Members and 1 Guest are viewing this topic.

Offline AngelFish

  • Is this my custom title?
  • Administrator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3242
  • Rating: +270/-27
  • I'm a Fishbot
    • View Profile
What is your code like?
« 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.
∂²Ψ    -(2m(V(x)-E)Ψ
---  = -------------
∂x²        ℏ²Ψ

Offline yunhua98

  • You won't this read sentence right.
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2718
  • Rating: +214/-12
  • Go take a dive in the River Lethe.
    • View Profile
Re: What is your code like?
« Reply #1 on: November 07, 2010, 10:04:49 pm »
My code is:

Unoptimized

Spoiler For =====My Projects=====:
Minor setback due to code messing up.  On hold for Contest.
<hr>
On hold for Contest.


Spoiler For ===Staff Memberships===:






Have you seen any good news-worthy programs/events?  If so, PM me with an article to be included in the next issue of CGPN!
The Game is only a demo, the code that allows one to win hasn't been done.
To paraphrase Oedipus, Hamlet, Lear, and all those guys, "I wish I had known this some time ago."
Signature Last Updated: 12/26/11
<hr>

Offline nemo

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1203
  • Rating: +95/-11
    • View Profile
Re: What is your code like?
« Reply #2 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.


Offline Hot_Dog

  • CoT Emeritus
  • LV12 Extreme Poster (Next: 5000)
  • *
  • Posts: 3006
  • Rating: +445/-10
    • View Profile
Re: What is your code like?
« Reply #3 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

Offline nemo

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1203
  • Rating: +95/-11
    • View Profile
Re: What is your code like?
« Reply #4 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.


Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: What is your code like?
« Reply #5 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.

Offline yunhua98

  • You won't this read sentence right.
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2718
  • Rating: +214/-12
  • Go take a dive in the River Lethe.
    • View Profile
Re: What is your code like?
« Reply #6 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.  ;)

Spoiler For =====My Projects=====:
Minor setback due to code messing up.  On hold for Contest.
<hr>
On hold for Contest.


Spoiler For ===Staff Memberships===:






Have you seen any good news-worthy programs/events?  If so, PM me with an article to be included in the next issue of CGPN!
The Game is only a demo, the code that allows one to win hasn't been done.
To paraphrase Oedipus, Hamlet, Lear, and all those guys, "I wish I had known this some time ago."
Signature Last Updated: 12/26/11
<hr>

Offline MRide

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 711
  • Rating: +14/-0
  • You can't see this.
    • View Profile
Re: What is your code like?
« Reply #7 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.

Offline Builderboy

  • Physics Guru
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Re: What is your code like?
« Reply #8 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

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: What is your code like?
« Reply #9 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.




Offline yunhua98

  • You won't this read sentence right.
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2718
  • Rating: +214/-12
  • Go take a dive in the River Lethe.
    • View Profile
Re: What is your code like?
« Reply #10 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.  ;)

Spoiler For =====My Projects=====:
Minor setback due to code messing up.  On hold for Contest.
<hr>
On hold for Contest.


Spoiler For ===Staff Memberships===:






Have you seen any good news-worthy programs/events?  If so, PM me with an article to be included in the next issue of CGPN!
The Game is only a demo, the code that allows one to win hasn't been done.
To paraphrase Oedipus, Hamlet, Lear, and all those guys, "I wish I had known this some time ago."
Signature Last Updated: 12/26/11
<hr>

Offline Darl181

  • «Yo buddy, you still alive?»
  • CoT Emeritus
  • LV12 Extreme Poster (Next: 5000)
  • *
  • Posts: 3408
  • Rating: +305/-13
  • VGhlIEdhbWU=
    • View Profile
    • darl181.webuda.com
Re: What is your code like?
« Reply #11 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?
Vy'o'us pleorsdti thl'e gjaemue

Offline willrandship

  • Omnimagus of the Multi-Base.
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2953
  • Rating: +98/-13
  • Insert sugar to begin programming subroutine.
    • View Profile
Re: What is your code like?
« Reply #12 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
« Last Edit: November 07, 2010, 10:28:02 pm by willrandship »

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: What is your code like?
« Reply #13 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.




Offline Juju

  • Incredibly sexy mare
  • Coder Of Tomorrow
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 5730
  • Rating: +500/-19
  • Weird programmer
    • View Profile
    • juju2143's shed
Re: What is your code like?
« Reply #14 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).

Remember the day the walrus started to fly...

I finally cleared my sig after 4 years you're happy now?
THEGAME
This signature is ridiculously large you've been warned.

The cute mare that used to be in my avatar is Yuki Kagayaki, you can follow her on Facebook and Tumblr.