Jacques Nomssi
Jacques Nomssi
To make my point clear: I promote the use of CHECK in a functional method. In this use case, it should not be the first Statement of the method.
I see this In the context of methods, outside LOOPs as in "Replace Nested Conditional with Guard Clauses" (cf. Refactoring (c) 1999 by Martin Fowler: _conditional expressions have different intentions:...
CHECK outside of LOOP is mostly used as the first statement in a method. This is an established pattern to enforce the method contract. The extended syntax check will not...
https://answers.sap.com/questions/12672544/how-to-rewrite-into-for-loop.html?childToView=12674127#answer-12674127
In https://blogs.sap.com/2017/11/30/5-use-cases-of-group-by-for-internal-tables/ I once wrote: •A statement does something: statements work on data; they are imperative and applied in sequence. •An expression returns a value: pure functions (without side effect)...
I do not like parens on their own line, then [parens tend to feel lonely](http://community.schemewiki.org/?scheme-style)
Apart from SAP, everyone must prefix or use the Y / Z name space. So without the prefixes, the examples look less real word to me.
I miss a mention of [GROUP BY for internal tables](https://blogs.sap.com/2017/11/30/5-use-cases-of-group-by-for-internal-tables/) in the tables section. Grouping with ASCENDING/DESCENDING triggers kernel-based sorts and reveals intent better (i.e. _easier to grok_) than the...
I am writing a numerical tower where the structure for complex numbers is TYPES: BEGIN OF complex, type TYPE number_type. INCLUDE TYPE number AS real_part. TYPES: imag_part TYPE number, END...
FINAL in ABAP means the variable value can be changed only at the single write position. But it can be changed more than once, e.g. in a LOOP. https://blogs.sap.com/2022/10/25/finally-a-declaration-of-immutable-variables-with-final-in-abap/ The...