Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

When programming, I name all my functions after myself ;)


This reminds me of someone who named all of his variables after vegetables... I wouldn't want to inherit that product


Actually 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.


Unless its a salad app. `toss(lettuce, tomatoes)`


Had a consultant developer once who named his functions like doMagic() & doStuff()


A 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`


More of a young male thing than anything to do with ability.


I do this if it's not production code. It's memorable, and it's even semantic in some cases.


In C++, many things carry the STD prefix.


fortunately it's std not STD. The first looks like nothing in particular, the latter looks like S&M kaomoji.


sexpresso_std




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: