Is it just me or does testing take up a large portion of programming time?

Started by JBR, February 28, 2021, 23:40:52

Previous topic - Next topic

Scaremonger


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.

RemiD

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.

Baggey

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 and NVIDIA Quadro K620 . DID Technology stop! Or have we been assimulated!

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

col

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.
https://github.com/davecamp

"When you observe the world through social media, you lose your faith in it."

Derron

Quote from: col on April 04, 2021, 13:51:02
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 :)


bye
Ron