On the dangers of automated refactoring
Peter W A Wood
peterwawood at gmail.com
Wed Apr 14 05:24:46 EDT 2021
Thanks Andre
I enjoyed putting the library together though at the time unit testing and LiveCode just don’t go together. Personally I find developing with tests gives me peace of mind about my code.
As for refactoring, normally defined as the process of improving code without changing it’s behaviour, having a set of tests make it so much more productive.
LiveCode provides a really great platform for unit testing. The language makes it so much more simple to write unit tests of GUIs than any other language that I know. Even my small testing library could drive a GUI script.
I don’t spend much time with LiveCode these days. I always wanted to explore the multimedia capabilities of LiveCode which seem to surfing off into the ether. I never really put the time into getting on top of the multimedia aspects of LiveCode and, in all probability, lack the creativity to build anything of note.
PS Red Lang is going slowly. I haven’t been involved for a while. It’s mainly legacy Rebol, JavaScript, a little Lua and more JavaScript work for me these days.
> On 13 Apr 2021, at 19:10, Andre Garzia via use-livecode <use-livecode at lists.runrev.com> wrote:
>
> Peter,
>
> This is neat!
>
> I also have a small test library, but mine is way less complete than yours. I never released it because it was quite incomplete.
>
> Maybe writing a tutorial or doing a small screencast showing it working might help people understand why it is important. I bet many here never used a unit testing library.
>
> PS: How’s Red Lang going? :D
>
>> On 13 Apr 2021, at 12:02, Peter W A Wood via use-livecode <use-livecode at lists.runrev.com> wrote:
>>
>> Hi Andre
>>
>>> On 13 Apr 2021, at 18:05, Andre Garzia via use-livecode <use-livecode at lists.runrev.com> wrote:
>>>
>>> We don’t even have unit testing libraries so that we can make sure our code works as expected.
>>
>> I published a simple unit testing library on GitHub but it din’t get any traction - https://github.com/PeterWAWood/LiveCode-MiniTest <https://github.com/PeterWAWood/LiveCode-MiniTest>
>>
>> Peter
>>
>> _______________________________________________
>> use-livecode mailing list
>> use-livecode at lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
>
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
More information about the use-livecode
mailing list