Long Source Codes

BlitzPlus Forums/BlitzPlus Beginners Area/Long Source Codes

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

It depends on what you mean by 'inefficient'. Badly written code will probably slow down the runtime execution of your program, but without seeing your code, it's impossible to say if it will or won't be an issue. Even if it does slow down runtime execution, will it do so to a degree that anyone using your program will ever notice? Most modern programming techniques favor code which is less efficient than it could be, but is much easier to manage, for example.

Bear in mind that the Blitz languages do some optimizations which 'collapse' complex code involving constant values or results, down to a simpler form. The code 'a = 2 + 2' would be collapsed to 'a = 4'. The code 'If 2 = 2 Then a = b' would be collapsed to 'a = b' as the result of the If expression would always be true.