TracerBullet
Before I leave this thread for good, let me remind you what you've said so that you can re-decide for yourself who has taken what personally.
1) "Are boss, current loop
may perhaps be more prone to bugs if changed incorrectly - what you wrote
is generally more perferable."in
Post numbered 23
[TB] And so what? This is not code review, you are not a GL. In its current state, that code does not (seems to) have any bug and we dont have need to pretty up a short term project. Whether the alternative is best way is arguable.
2) "Could you explain what exactly is wrong with the original code
apart from how you prefer it. I can see that it 'looks' better but it doesnt cause any bug." in
Post numbered 20
[TB] yes, so did you reply wheres the bug?
3) i ask a simple question on why its a bug, you take it personally.
I understood what you said but i dont see it as a bug and its not related to josh's issue. If there is a usecase where it fails, we will be glad to know. You cant expect me to read a book on design patterns. in
post numbered 26
Kindly Pay particular attention to the words and the quotation marks used you and now highlighted by me for your viewing pleasure.
[TB]
But You start saying how much experience you have and that you dont even use this tool - neither of which is relevant. All i ask is to understand how its a bug? So whos getting personal?
Now as far as the error goes, Josh1 reported it as a problem in
post numbered 8 and to me, it instantly seemed like something that I could resolve by merely reading through the code and that is what I attempted to do. For rest of the problems, I will need data and a working installation to step-debug through the code.
[TB]
Yes, thanks for helping. Its very hard to fix an unclear bug without debugging. Even harder to look at new code written by someone else ( me / him) without detailed documentation / comments.
But What you suggested was not relevant for his issue and that is what i pointed out. I am not trying to one up anyone here.
[/B]
For some reason, you missed that Josh1's post so I again pointed it out to you to which you started speculating of newer suggested code being "more prone to bugs"
[TB]
I didnt miss his post, and i didnt say his new code is more prone to bugs - read again.[/B]
Even after I denied that it had anything to with my preferences, you've continued on the same pitch and therefore I've termed that as resistance (merely for sake of resisting) and I repeat that.
So, yes, I apologize to you in particular and to everyone for having attempted to help here.
[TB] No need for drama - forget about preferences, since you continue to empahize about the loop thing - just describe how its a bug - maybe i missed something. [/B]
You can continue with your path of keep blaming users for having wrong settings.ini.... You already have the justification that you are not a "great programmer" so you can continue nursing the bugs in the code and keep denying the bug's existence.
[TB]
Hahaha, where did i say that ( blaming users) - read my posts again. Again i assert that what you pointed out is not a bug - you have not once explained clearly how its a bug .
Great is relative - i say kernel programmers, game developers are great. i say scientists who develop the actual algos that us lowly programmers use are great.
Instead of continuing a useless discussion, we can help josh on his problem. But hopefully, its already solved.
[/B]
PS: I've glanced thru
the stack exchange page you had sent and there is one very big difference between the example on that page and on the RTDMan's code. The terminating condition in his imaginary example seems to have been derived from the processing of input whereas ours is derived from the end of Input.
Thankfully, he too shows and mentions the breaking while loop from middle as bad code. His arguments such as having to change function name at two places are pedantic given the modern era programming editors and refactoring tools at our disposal.
[TB]
Good/Bad - But how does that cause a bug. Bad code is arguable as they said, for trival code these things dont matter. Modern tools not withstanding, people will make mistakes either way.
[/B]