4D finally did away with the Modified({fieldname}) command.
I’ve replaced it in our code base with
Old({fieldname})#fieldname
4D recommends using the Form Event and On Data Change event.
4D finally did away with the Modified({fieldname}) command.
I’ve replaced it in our code base with
Old({fieldname})#fieldname
4D recommends using the Form Event and On Data Change event.
Posted in Misc | Tagged 4D | Leave a Comment »
Can’t tell you how frustrating it is to find the context of a variable stripped away by a meaningless re-assgiment (login required).
From Clean Code: A Handbook of Agile Software Craftsmanship:
The name of a variable, function, or class, should answer all the big questions. It
should tell you why it exists, what it does, and how it is used
// doing this totally strips away any meaningful context $my_temp_variable = $employee_salaries[$an_employee_name]; $gross_salary = $bonus_factor * $my_temp_variable; // hopefully the language constructs allow full variable interaction $gross_salary = $bonus_factor * $employee_salaries["Fred"]
Posted in Clean Code | Tagged clean code, temp variables | Leave a Comment »