|Keep It Simple, Stupid|
Verbose Tk Codeby LanX (Sage)
|on Feb 28, 2021 at 18:22 UTC||Need Help??|
LanX has asked for the wisdom of the Perl Monks concerning the following question:
I was meditating about designing DSLs and especially how to robustly implement with like in JS to a have clearer and less verbose code.
So I thought to use Tk as a use case and found this 20 year old https://www.perl.com/media/_pub_1999_10_perltk_index/sld001.htm demo.
The code is extremely verbose and I'm asking myself if this is really state of the art.
For instance the code from https://www.perl.com/media/_pub_1999_10_perltk_index/sld010.htm
Is it really necessary to always repeat ...
If needed I'd rather implement a helper like:
But before reinventing the wheel I'd like to discuss my doubts. =)