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

0 Members and 1 Guest are viewing this topic.

Offline ztrumpet

  • The Rarely Active One
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5712
  • Rating: +364/-4
  • If you see this, send me a PM. Just for fun.
    • View Profile
Re: What is your code like?
« Reply #15 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)

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 #16 on: November 07, 2010, 10:37:33 pm »
My code is never gonna:

« Last Edit: November 07, 2010, 10:37:49 pm by Deep Thought »




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 #17 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
« Last Edit: November 07, 2010, 10:38:47 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 #18 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.
« Last Edit: November 07, 2010, 10:46:24 pm by Deep Thought »




Offline calc84maniac

  • eZ80 Guru
  • Coder Of Tomorrow
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2912
  • Rating: +471/-17
    • View Profile
    • TI-Boy CE
Re: What is your code like?
« Reply #19 on: November 07, 2010, 11:06:13 pm »
My code is
Spoiler For Spoiler:
THE GAME
"Most people ask, 'What does a thing do?' Hackers ask, 'What can I make it do?'" - Pablos Holman

Offline meishe91

  • Super Ninja
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2946
  • Rating: +115/-11
    • View Profile
    • DeviantArt
Re: What is your code like?
« Reply #20 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.
Spoiler For Spoiler:



For the 51st time, that is not my card! (Magic Joke)

Offline AngelFish

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

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 #22 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  :)

Offline Netham45

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2103
  • Rating: +213/-4
  • *explodes*
    • View Profile
Re: What is your code like?
« Reply #23 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.
Omnimaga Admin

Offline shmibs

  • しらす丼
  • Administrator
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2132
  • Rating: +281/-3
  • try to be ok, ok?
    • View Profile
    • shmibbles.me
Re: What is your code like?
« Reply #24 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

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55942
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: What is your code like?
« Reply #25 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.
« Last Edit: November 08, 2010, 03:17:19 am by DJ Omnimaga »
Now active at https://discord.gg/cuZcfcF (CodeWalrus server)

Offline Happybobjr

  • James Oldiges
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2325
  • Rating: +128/-20
  • Howdy :)
    • View Profile
Re: What is your code like?
« Reply #26 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 ;)
School: East Central High School
 
Axe: 1.0.0
TI-84 +SE  ||| OS: 2.53 MP (patched) ||| Version: "M"
TI-Nspire    |||  Lent out, and never returned
____________________________________________________________

Offline TIfanx1999

  • ಠ_ಠ ( ͡° ͜ʖ ͡°)
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 6173
  • Rating: +191/-9
    • View Profile
Re: What is your code like?
« Reply #27 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

=)

SirCmpwn

  • Guest
Re: What is your code like?
« Reply #28 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.

Offline Xeda112358

  • they/them
  • Moderator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4704
  • Rating: +719/-6
  • Calc-u-lator, do doo doo do do do.
    • View Profile
Re: What is your code like?
« Reply #29 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