pullingteeth
Programmer
Hello, I'm working with a self-taught programmer on a project, and her coding style is driving me nuts. I attempted to suggest that we adopt a standard, but she vehemently defended her style, saying it was "personal choice" and "made most sense to her". Here's some of her code snippets; what arguments would you make to her to convince her of the error of her ways? (Or should I just chill out about it?)
Code:
If Location = "1" then
Event = 1
Elseif Location = "2" then
Event = 2
Elseif Location = "3" then
Event = 3
Else
Event = 4
end if
Code:
If Status = "A10" and Location = "S" then 'Receiving Stop File
a = 0
SearchVal1 = myscreen.getstring (14,9,1)
If SearchVal1 = "S" then
Reason1 = Trim(myscreen.getstring(14,14,50))
a = a + 1
End if
B = val(6 - a)
End if