November 27, 2021, 22:42:23

Author Topic: Is it just me or does testing take up a large portion of programming time?  (Read 717 times)

Offline JBR

  • Full Member
  • ***
  • Posts: 147

Offline Scaremonger

  • Full Member
  • ***
  • Posts: 234
    • ITSpeedway - Ramblings of a geek!

Testing / Debugging often takes longer than coding, but so does designing graphics, audio and sometimes the GUI interface depending on the library and language.

Play-testing or break-testing can also be time consuming if you don't have some way to automate it (or a little brother keen to play that new game).

If you find yourself compiling your whole app/game after each change to check it works; consider writing a unit test for that function and checking it does what it should in isolation. It can often save you hours of debugging time later too.

Offline RemiD

  • Hero Member
  • *****
  • Posts: 1296
my advices :
-make separate examples of procedures / systems / graphics effects that you can reuse.
-code your logic with words (english) before coding with the programming language.
-sometimes it is better to write a code a little more lengthy, to split a procedure in steps, in order to debug it more easily (a more lengthy code does not necessarily means worse perfomance...)

with time you will better understand how to code the logic, and not need to compile / test as much.
DualCore AMD E-450, 1646 MHz - 6 Go DDR3 1333 SDRAM - AMD Radeon HD 6320 Graphics (384 Mo) - Windows 7 Home Premium - DirectX 11.0

Offline Baggey

  • Sr. Member
  • ****
  • Posts: 293
Testing takes a longtime  :o

Currently single stepping through z80 emulated code in Blitzmax. Sometimes you don't see an error occur untill a few hundred executes in!
sometimes you tweak an instruction and all looks good! you load another game that was working and now it dosent  :-X

Im writting a Zx Spectrum emulator "SpecBlitz" and i spend more time single stepping it checking that bits, Bytes and Flags get altered as i go single stepping :o

I need to get a life really but there's nothing todo at the Mo!

Good job my wife's a Book worm as i spend hour's coding.

Kind Regards Baggey
Running a PC that just Aint fast enough!? i7 Quad core 16GB ram 1TB SSD. DID Technology stop or have we been assimulated!

ZX Spectrum 48k, C64, ORIC Atmos 48K, Enterprise 128K, The SID chip. ZX NEXT!?

Jesus was only famous because of his DAD.    Resistance Is Futile! Your code will be assimulated!

Offline col

  • Hero Member
  • *****
  • Posts: 608
At work we apply the 80-20 rule. My boss doesn't mind 80% of development time is spent in the last 20% of development.

Offline Derron

  • Hero Member
  • *****
  • Posts: 3735
At work we apply the 80-20 rule. My boss doesn't mind 80% of development time is spent in the last 20% of development.

boss-pareto-optimum :)



SimplePortal 2.3.6 © 2008-2014, SimplePortal