Thomas changed the topic of #kspmodding to: Welcome to #kspmodding - the channel for discussing, and learning about, modding Kerbal Space Program. Code of Conduct: https://git.io/vSQh6 | Always provide logs (do !support for help). | *** PSA: https://kerbalspaceprogram.com/api/index.html | <Red5> Guy was asked for a log file, he gave this link: http://pastebin.com/wfVarZPf
xEvilReeperx has joined #kspmodding
<xShadowx>
https://pastebin.com/9dvRs5sw does doing constructors like this annoy anyone? coworker just bitched when he saw this (2nd extending the first rather than copying 1st code)
xEvilReeperx has quit [Quit: Web client closed]
stratochief has joined #kspmodding
<taniwha>
tell your cow-orker what-for
<taniwha>
it's a very /good/ feature
<taniwha>
for one, it makes it very clear that the second is extending the first. for another, it makes the second /correctly/ extend the first
BasharMilesTeg has quit [Ping timeout: 201 seconds]
<xShadowx>
hmm #if DEBUG vs [System.Diagnostics.Conditional("DEBUG")]
<Thomas>
First wont include the function if not building in debug mode, second will prevent the CLR from running the code in it IIRC
<Thomas>
So first can break stuff that depends on the thing you wrote, second doesnt
<xShadowx>
2nd, is equiv of comment out all code within whatever method is tagged with that isnt it?
<Thomas>
Yeah
<xShadowx>
kinda wish i could put something per line, the former case requires #if, code, #end if, to wrap it, which seems like effort / uglier when just having 1 line called
stratochief is now known as stratochief|away
<xShadowx>
latter case is nice for that, but still keeps the call in the code
<Qboid>
xShadowx meant to say: but now you waste cpu on an if
<Qboid>
xShadowx meant to say: Dunkirk: now sure wehere hatches is in this, friend just linked me when i asked "stfu nub and watch tuts like i did <link>" haha
<xShadowx>
uh o.O
<Thomas>
xShadowx: You dont, the compiler will see that you are checking a constant field, and just throw the rest away
<Thomas>
yes, I am fixing that
<xShadowx>
that........
<xShadowx>
is how many years old?
<Thomas>
Thats is a part of every good compiler
<Thomas>
C/C++ compilers have done that for almost forever
<xShadowx>
no i mean that message qboid fished up is like years ago
<Thomas>
Ah
<Thomas>
Yeah, I have two messups
<Thomas>
a) I sort messages the wrong way b) I have two identical .dlls in the plugin folder of qboid
<xShadowx>
ahah
<xShadowx>
i did b with ksp so many times ;x
<Thomas>
moo
<Thomas>
s/moo/foo
<Qboid>
Thomas meant to say: foo
egg has quit [Read error: Connection reset by peer]
egg has joined #kspmodding
Ezriilc has joined #kspmodding
BasharMilesTeg_ has quit [Read error: Connection reset by peer]
BasharMilesTeg has joined #kspmodding
Pap has quit [Read error: Connection reset by peer]