Jump to content




your way of coding?


  • You cannot reply to this topic
27 replies to this topic

#21 robhol

  • Members
  • 182 posts

Posted 11 April 2013 - 03:29 AM

View PostShnupbups100, on 10 April 2013 - 03:37 PM, said:

I used AdBlock+ to destroy any trace of your comment. So ha.

That's funny, that's actually exactly what I did to your atrocious, flashing red avatar. *cough* :)

#22 Jappards

  • Validating
  • 116 posts
  • LocationHolland

Posted 11 April 2013 - 04:21 AM

nice, we should make some recommendations for others to help them with coding.
one recommendation is definitely, building your scripts out of chunks.

#23 Spongy141

  • Members
  • 526 posts
  • Location'Merica

Posted 11 April 2013 - 11:57 AM

View Postrobhol, on 11 April 2013 - 03:29 AM, said:

View PostShnupbups100, on 10 April 2013 - 03:37 PM, said:

I used AdBlock+ to destroy any trace of your comment. So ha.

That's funny, that's actually exactly what I did to your atrocious, flashing red avatar. *cough* :)
No need to get hostile, and the topic is "your way of coding" not "rate the a users avatar", and they have a similar topic for that if you didn't know.

#24 Mailmanq!

  • Members
  • 123 posts
  • LocationI am omnipresent... DUH

Posted 13 April 2013 - 10:48 AM

With small things, I just type the code out. With medium sized things I have functions that are all run at the bottom of the program with very descriptive names to help with debugging. And with big projects I have multiple files and use dofile to load them and call their functions with a priority level define at the top of the file I am loading.

#25 majesty2450

  • Members
  • 10 posts
  • LocationUSA - Connecticut

Posted 13 April 2013 - 11:29 AM

I usually try to make classes and define those class's functions at the top of the code. At the bottom I write the code that runs, calling and creating objects when necessary. Always try to put comments, but I get lazy... I also always indent and space to keep the code clean. With large programs I create multiple files for the classes and have a main. I use notepad++ on windows to program the code and have it open along with minecraft for debugging.

#26 KillaVanilla

  • Members
  • 303 posts

Posted 14 April 2013 - 11:35 AM

I mostly write APIs now, so I naturally use a lot of functions. I also have a window open to a minecraft session for quick testing, and a window open to the folder corresponding to the computer I'm using for testing. I use Notepad++ to write the code itself. I (usually) separate my variables by type and use (constants, tables, assorted values, etc.) and I type a lot of comments. I occasionally use the "main function" approach, but not too often (and when I do, the function is usually called "int_main()" and returns 0).

How big (in terms of line count) are most of your multi-file projects? I don't have any projects (besides OSes and server/client programs) that require multiple files.

#27 1lann

  • Members
  • 516 posts
  • LocationSeattle

Posted 14 April 2013 - 03:19 PM

My way of coding is to do whatever I feel like doing. I normally think in sections though.

#28 M4sh3dP0t4t03

  • Members
  • 255 posts
  • LocationGermany

Posted 14 April 2013 - 11:34 PM

My way of coding is putting on music loud and write everything i need in functions, so the actual code that isnt functions is only a few lines.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users