Personal Insights
Happy Halloween
Dear Community, Halloween is coming. That inspired me to write a little fun blog with some seriousness. I hope you enjoy it. And please participate in the challenge. Even there is nothing to win except fun 🙂
Lights off
It should be a bit dark for the right atmosphere for Halloween. A few days ago I read the right blog from Sascha Waechter. At this point many thanks to him. The blog is about the “Darkest Dark Theme for Eclipse”. Unfortunately, I cannot use it with my Eclipse yet, but at least I switched to the default theme “Dark”.
Wow, what an effect. The source code can be read much better in my opinion. Try it. Since I found it really useful and handy, I also changed my Microsoft Office (Outlook, Word and more) to the theme “Dark Gray”. Very pleasant. Now I have to change Google Chrome to a corresponding theme, too. And to solve the problem with installing Darkest Dark Theme.
Zombies
Ok, we have the right ambience. What is typical for Halloween? Witches, sweets, zombies? Brave people can take a look at the T163X database table. How many zombies are hanging around there?
Scare with ABAP
How can you “scare” an ABAP developer? Maybe with an unnecessarily complicated or even nonsensical source code? Some will run away screaming, others will take the challenge. What are the rules? Write a little source code in ABAP that’s hard to understand. Yes, from now on, not only C can be difficult to understand 🙂
I made a little example with string functions. Not scary enough? Well, make your own proposal and have fun. Perhaps something with Method Chaining or regular expressions?
DATA(text) = |{ translate( val = shift_left( val = condense( val = replace( val = replace( val = '00x0#!?&1#!? #!?&2#!?' sub = '&1' with = reverse( val = 'yppah' ) ) sub = '&2' with = reverse( val = 'neewollah' ) )
del = '#!?' from = '#!?' to = ' ' ) places = 4 ) from = 'h' to = 'H' ) } |.
WRITE text.
Best regards and thanks for reading
Michael
I'm cheating.  I'm pulling this fun code from a generated program from BRF+. Pretty much any generated code is horrible to read. I'm debugging today.
Happy Halloween to those who celebrate it!
Some parts of the generated code look like encrypted 😉
Any regular expression scares me again when I see one... 🙂
Like an argot.
There was once an ABAP obfuscation riddle with very scary ABAP code 😉
https://blogs.sap.com/2015/04/10/abap-obfuscation-riddle/
Can't remember who solved it first 🙂
Haha, we should have more fun blogs like that one. By the way: Congratulations. You probably scared Horst Keller 😉
You can obfuscate even more with macros.
Humans are scared when they see something different, even not dangerous, and if they adapt their way of thinking (if they are educated to do so), the fear vanishes (now it's easy to see what your expression will produce):
You may remember that I have been punished with SAPscript forms from time to time 🙂 With my "SAPscript forms breakdown helper" the SAPscript statements are indented for a better and faster understanding. Indentation is one of the keys ... along with colors.
Aha. Write once, read never code.
Happy Halloween!
Seems like a perfect day to pay a visit to ABAP Haunted House right here on SCN. 🙂
I found something this week that really scared me:
Don't press "+" symbol ... or you open the gate to another dimension ...