<?xml version="1.0" encoding="windows-1252"?>
<node id="152181" title="Should I write your code ?" created="2002-03-16 07:39:24" updated="2005-08-11 04:17:59">
<type id="120">
perlmeditation</type>
<author id="3568">
ChOas</author>
<data>
<field name="doctext">
Hey guys, I have a question, which I now really have to ask you...&lt;BR&gt;
This has been bothering me for a long time, 
but since [id://151957|this] node &lt;BR&gt;
I feel compelled to get your opinion.&lt;BR&gt;
&lt;BR&gt;
In my current day to day job I do Network security/management, &lt;BR&gt;
and since there are not many coders at the company I work&lt;BR&gt; for, I help people out who are struggling with their code.&lt;BR&gt;
&lt;BR&gt;
Time and time again I am stumped by the following problem:&lt;BR&gt;
WHEN do I stop helping ? when is it enough, when do I get
the &lt;BR&gt;feeling I`m taking over their code ? &lt;BR&gt;
&lt;BR&gt;
Like in the link mentioned above, I have given advice to people&lt;BR&gt;
that did not reflect my own coding style; Just pointing
them &lt;BR&gt;
in the right direction (as mentioned in that artice,where I
advised&lt;BR&gt; the person to add code to show why the rename was failing)&lt;BR&gt; 
While I KNOW they take a whole wrong aproach.&lt;BR&gt;
&lt;BR&gt;
Yes, I admit, sometimes I DO take over, and I code it in 
my own style,&lt;BR&gt;
 pointing out what I`m doing (and smiling back at the blank staring faces),&lt;BR&gt;
but is this right ?,  wouldn`t it be better to help people a bit further, &lt;BR&gt;
let them make their mistakes, and help at the next problem that is &lt;BR&gt;
encountered, or do it right straight away, and KNOW that the only&lt;BR&gt;
thing they will do next time is copy my code, and continue on their&lt;BR&gt;
merry little way, not knowing what they`re actually doing, and why &lt;BR&gt;
they would have done it wrong.&lt;BR&gt;
&lt;BR&gt;
Don't get me wrong here, I really try to explain the problem &lt;BR&gt;
with their code, and the reason why I would do it differently.&lt;BR&gt;
But these people aren`t coders, they`re application managers, &lt;BR&gt;
writing little tools to make life a little easier on themselves.&lt;BR&gt;
&lt;BR&gt;
Question is: When do you decide that the person is off by a little,&lt;BR&gt; 
and try to give him a hint (retaining the faulty code in his program,&lt;BR&gt;
that you DO see, but not addressess the problem) and when do you &lt;BR&gt;
rewrite the code ?&lt;BR&gt;
&lt;BR&gt;
In the thread I mentioned there were other people giving a NEW solution,&lt;BR&gt; 
but non used the "rename or print 'yadayadayada'" method.&lt;BR&gt; 
Whereas [caillte] first mentions the new problem: Uppercase letters in the path. &lt;BR&gt;
I think this is the best method: showing the user the problem&lt;BR&gt;&lt;BR&gt;
BECAUSE of the "or print" the poster (in my opinion) should have enough &lt;BR&gt;
information to solve the problem him/her self (in this case he/she didn`t/couldn`t).&lt;BR&gt;
But still just adding something simple would help him/her in the future:&lt;BR&gt;&lt;BR&gt;
Trying to rename a file, and failing to do so (for any reason), should result &lt;BR&gt;
in an error message, and should not be quietly dismissed.&lt;BR&gt;
&lt;BR&gt;
I know I keep referring to that exact node, but I hope you guys can &lt;BR&gt;
see the real problem I have:&lt;BR&gt; 
&lt;BR&gt;
Should I give you hints, or should I write your code ?&lt;BR&gt;
&lt;BR&gt;
&lt;BR&gt;
One last thing, I can`t keep myself from saying this :)&lt;BR&gt;
&lt;BR&gt;
If what [tachyon] replied to my post was meant for me (which I think), &lt;BR&gt;
and not as an indication to the first poster, he was completely right, &lt;BR&gt;
it was very wrong code, but (except from the "or print" and skipping &lt;BR&gt;
the . &amp;&amp; ..) It wasn`t my code.&lt;BR&gt;
&lt;BR&gt;
GreetZ!,&lt;BR&gt;&lt;UL&gt;ChOas&lt;/UL&gt;
&lt;BR&gt;
&lt;FONT SIZE="1"&gt;print "profeth still\n" if /bird|devil/;&lt;/FONT&gt;</field>
</data>
</node>
