[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

isCurrentSquareNextToAtLeastOneBloc kedSquare()

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 16
Thread images: 1

File: no.png (22KB, 924x135px) Image search: [Google]
no.png
22KB, 924x135px
isCurrentSquareNextToAtLeastOneBlockedSquare()
>>
>>55122138
There is nothing worse in this world than lowerCamelCase.
>>
>>55122138
Still better than

> isCurSqNext2AtLst1Blkd
>>
>>55122138

boundaryCheck()
>>
isNextToBlocked()
>>
>>55123359

Oh, god, the people I work with do this. It takes me more time to figure out what the fuck it is supposed to be that actually fixing anything.

It's not 1991 anymore. We don't need tiny names so we can fit our program on a 5.25" floppy.
>>
>>55123485
Quit.
>>
>>55123485
It's even worse when they don't comment anything of what they do, no matter how fucking convoluted it is.

Honestly, long names aren't a big problem, not with today's computer resources anyway. OP's case is pretty fucking extreme though, and it gets to a point where you should really be rethinking what you name your methods and functions.
>>55123403
>>55123430
These 2 nailed it pretty well and kept it easy to understand.
>>
InternalFrameInternalFrameTitlePaneInternalFrameTitlePaneMaximizeButtonWindowNotFocusedState
SimpleBeanFactoryAwareAspectInstanceFactory
AbstractSingletonProxyFactoryBean

SimpleBeanFactoryAwareAspectInstanceFactory: it's a factory that makes factories, it contains the word simple.
AbstractSingletonProxyFactoryBean: a proxy factory bean for you to subclass so that you can proxy factory beans that create singletons.
>>
>>55122138
I do that too. The alternative would be writing comments
>>
>>55123403
Terrible name. What is it checking? Does this return something?
>>
>>55123430
pefect
>>
When I'm writing shell scripts I try to be as verbose as possible.

get_and_verify_project_path_e


I put _e at the end of functions that echo, _m for functions that do file system modifications, etc.
>>
>>55122138
I'll take this over the absolutely retarded POSIX function names. Just take a look at ftw. Fucking ftw. The fuck is that supposed to do? Why couldn't they name it fileTreeWalk do that a person reading the code could have a general idea about its effect? No, it had to be ftw, nothing longer could satisfy gnutards or whoever else was in charge of that.
>>
atoi()
strtoul()
mbstowcs()
>>
>>55129443
ascii to ingerer
string to unsigned long
multibytestring to wcs? not sure
Thread posts: 16
Thread images: 1


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties.
Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.