I’ve written a username generator for my application this morning. Here is it’s source code. As you can see, I just call cat/grep on my OSs dictionaries.
It works. Perfectly. But I have no idea why. The question come when you see
pickNoun functions. They make an
exec call and then… What? They don’t return anything and if you see the next lines, I never define any callbacks. There is not a single line of code that says “hey, just return stdout” or whatever. But the code works and returns the proper values at all times.
I’m not complaining of course, it just blows my mind and I feel uncomfortable not understanding the process