News for hackers. Stuff that matters.
Re:The World's Most Efficient Languages (2016) by ape4 on Saturday December 01, 2018 @11:31AM (#18577433)
When programming, I name all my functions after myself ;)
Re:The World's Most Efficient Languages (2016) by NicoJuicy on Saturday December 01, 2018 @11:44AM (#18577498)
This reminds me of someone who named all of his variables after vegetables... I wouldn't want to inherit that product
Re:The World's Most Efficient Languages (2016) by dvh on Saturday December 01, 2018 @01:20PM (#18578017)
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.

Re:The World's Most Efficient Languages (2016) by ape4 on Saturday December 01, 2018 @12:00PM (#18577596)
Unless its a salad app. `toss(lettuce, tomatoes)`
Re:The World's Most Efficient Languages (2016) by kitwalker12 on Saturday December 01, 2018 @11:47AM (#18577512)
Had a consultant developer once who named his functions like doMagic() & doStuff()
Re:The World's Most Efficient Languages (2016) by nonsince on Saturday December 01, 2018 @12:39PM (#18577798)
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`
Re:The World's Most Efficient Languages (2016) by ams6110 on Saturday December 01, 2018 @12:52PM (#18577867)
More of a young male thing than anything to do with ability.
Re:The World's Most Efficient Languages (2016) by rjplatte on Saturday December 01, 2018 @02:41PM (#18578492)
I do this if it's not production code. It's memorable, and it's even semantic in some cases.
Re:The World's Most Efficient Languages (2016) by Koshkin on Saturday December 01, 2018 @06:24PM (#18579661)
In C++, many things carry the STD prefix.
Re:The World's Most Efficient Languages (2016) by tokyodude on Saturday December 01, 2018 @07:18PM (#18579935)
fortunately it's std not STD. The first looks like nothing in particular, the latter looks like S&M kaomoji.
Re:The World's Most Efficient Languages (2016) by blattimwind on Sunday December 02, 2018 @08:00AM (#18582141)
sexpresso_std