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

I'm reminded of a high school programming class where a project partner named variables with the most crude and lewd words he could imagine. Not that I was prudish, but he unsurprisingly never remembered what "butts" was for and somehow never figured out why he kept getting confused by his own code.


For school once I had to write a program called "Poetry Writer". Basically it would take input text, build a linked list(taking in account proceeding and following words) with for each word and output a randomized version of the poem.

I HAD to of course name all of my variables as poets and poems.

So you have "Edgar_Allen gets new The_Road_Not_Taken", all was fine during my tests but for some reason it did not interface well with the code provided by the teacher to do the actual input so I had to take it to the TA for help.

I then learnt why descriptive names, not just comments are helpful. Although, the TA was impressed by my selections XD


Butts ARE distracting sometimes.




Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

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

Search: