My playground (maybe of use for bugreport and test writers)

Post those lines of code you feel like sharing or find what you require for your project here; or simply use them as tutorials.
Post Reply
CuteAlien
Admin
Posts: 9643
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

My playground (maybe of use for bugreport and test writers)

Post by CuteAlien »

With 5 system and several Irrlicht versions on each of them I started to get a serious mess with my test-applications and short code-snippets for Irrlicht. I probably shouldn't admit - but so far I just copied them around all the time when I needed one in another place (yes, I always knew it was horrible, but never took time for it *sigh*). So starting now to put them all online. Also useful so I don't have to use a paste-service all the time anymore and constanly posting those codes into the Irrlicht forum, but can just link to the repository now.

No idea if there is anything useful for anyone (it's 99% tests), but anyway it's here: http://code.google.com/p/irr-playground-micha/

Will get more stuff in the future (I still try to figure out what some of my codes where for, hehe).
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Cube_
Posts: 1010
Joined: Mon Oct 24, 2011 10:03 pm
Location: 0x45 61 72 74 68 2c 20 69 6e 20 74 68 65 20 73 6f 6c 20 73 79 73 74 65 6d

Re: My playground

Post by Cube_ »

Oh? Well, I will now attempt to make a logical statement...
You are a good programmer and you made those tests, thus your tests must be good and therefore I will download them (or more specifically I am making fun of "logic" by using a well known logical fallacy, can you spot it?)
"this is not the bottleneck you are looking for"
CuteAlien
Admin
Posts: 9643
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: My playground

Post by CuteAlien »

Well... I guess the main use is if you have to write own tests. So if you don't write tests yourself this is probably pretty useless to you (but I promise you that you will start writing them at some point in your career unless you plan to go crazy ^_^). If you write tests then some of those codes can give you a quick-start. For example there's a bunch of templates with typical boilerplate-code for typical tests. Or if you wonder about what exactly mouse-events do or how mouse coordinates work on different systems then starting with mouse_test.cpp might already give you all the infos you will need. Similar if you hunt any gui-troubles with certain elements - there are already many codes for testing them in different situations which typically will cause troubles. Or if you want to help improving our shadow volumes there's a useful example to start with. Or maybe someone needs a configurable 3rd-person cam.

No idea what else I'll put on there (still got some stuff on my hd). Generally I tried to use telling file-names for each snippet. And also each file has a short comment on top about what it does.

But also currently considering using another service than code.google.com - it seemed nice at first, but by now I noticed their source-browsers is hardcoded to using ugly 8-spaces-tabs *sigh*. That's enough to make me want to leave...so maybe I'll check-out some other services next week-end.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Cube_
Posts: 1010
Joined: Mon Oct 24, 2011 10:03 pm
Location: 0x45 61 72 74 68 2c 20 69 6e 20 74 68 65 20 73 6f 6c 20 73 79 73 74 65 6d

Re: My playground (maybe of use for bugreport and test write

Post by Cube_ »

ah but in that case this will prove very useful as I write a lot of tests (ugh, unit testing isn't my definition of fun, neither is implementation testing)

On 8 space tabs? That is imo punishable by death, I can't stand it. Tabs shall always be 4 spaces. (I always set my IDE to convert tabs to four spaces, that way it's uniform on all implementations)
"this is not the bottleneck you are looking for"
hendu
Posts: 2600
Joined: Sat Dec 18, 2010 12:53 pm

Re: My playground (maybe of use for bugreport and test write

Post by hendu »

Tabs are tabs as god intended (ya heretics!). :P
Cube_
Posts: 1010
Joined: Mon Oct 24, 2011 10:03 pm
Location: 0x45 61 72 74 68 2c 20 69 6e 20 74 68 65 20 73 6f 6c 20 73 79 73 74 65 6d

Re: My playground (maybe of use for bugreport and test write

Post by Cube_ »

And god made the tab and defined that it shall be the length of four spaces, and this was good.
"this is not the bottleneck you are looking for"
Post Reply