4 ms·
When programming, I name all my functions after myself ;)
by ape4 8y ago
When programming, I name all my functions after myself ;)
- NicoJuicy 8y agoThis reminds me of someone who named all of his variables after vegetables... I wouldn't want to inherit that product
- ape4 8y agoUnless its a salad app. `toss(lettuce, tomatoes)`
- dvh 8y agoActually I use this in one particular case: in Android there is an event callback "onActivityResult" and it's first parameter is integer. In all demos online you see officially looking name like SDCARD_WRITE_PERMISSION and when noobs copy paste it and try to compile it they can't find in which library it is defined, so when in demo code I use BANANA it's little bit more obvious that they have to define it yourself. But MY_SDCARD_WRITE_PERMISSION also works. Banana makes it obvious that it's not official and on which two places it is connected together.
- mmirate 8y agoIsn't it good, though, to prevent people from trying in vain to learn things by copy-paste?
- kitwalker12 8y agoHad a consultant developer once who named his functions like doMagic() & doStuff()
- nonsince 8y agoA legitimately very talented developer that I worked with showed me some of his first code at the company that contained `function post_document_load_do_shit` and `var turd`
- Koshkin 8y agoIn C++, many things carry the STD prefix.
- tokyodude 8y agofortunately it's std not STD. The first looks like nothing in particular, the latter looks like S&M kaomoji.
- blattimwind 8y agosexpresso_std