[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]

So let's settle this once for all. What do true engineers

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: 27
Thread images: 2

File: camelcase_vs_snakeCase.png (17KB, 446x392px) Image search: [Google]
camelcase_vs_snakeCase.png
17KB, 446x392px
So let's settle this once for all.
What do true engineers use? Snake_case or CamelCase?

IMO all the great engineers use Python and Python is used for stuff, not for gaymes like BabbyScript
>>
I use C case.
None of my variable names go past 8 characters and they're all short and succinct because I don't use auto-complete in my editor.
>>
>>60929659
Depends on the language for me, in C# I do snake for constants, camel for private, and
WhateverThisIsCalled
for public.
>>
>>60929821
Snake case for Python and constants, camel case for everything else.
>>
Hungarian is the only true way
>>
>>60929659
pascalCase > snake_case > CamelCase
>>
>>60929987
It's PascalCase and camelCase.
>>
I instruct my team to use camelCase.
>>
I'm a big fan of this_case
>>
>>60930043
camelCase > snake_case > PascalCase

PascalCase is CS graduate tier, fucking disgusting.
>>
>>60930090
Exactly.
>>
Whatever the project I'm working on says. I personally prefer typing CamalCase, but snake_case is easier to read. I question the need to use multi-word names for anything global variables/functions, though. Lisp's hyphens are sweet,forbidden fruit.

On a related note, is there a Vim/emacs plugin that'll convert normal spaces to one or the other while typing a symbol name?
>>
I don't mind camelCase that much so I use it if an existing project uses it. But if I'm starting from scratch it's sneak_case all day every day baby.

It's just so much nicer to read. Easier to spot typos and such.
>>
>>60929659
>What do true engineers use?
thisForMethodsFieldsAndVariables
ThisForClasses
THIS_FOR_CONSTANTS_I_E_FINAL_STATIC_FIELDS
>>
>>60930187
Found the Java engineer, hi mate :D
>>
I use whatever convention is accepted at whatever job I'm working. Fucking NEET homos.
>>
been doing shit in C++ camelCase lately but I still think python has it right

class SnakeClass()

def snake_function
def snekafunction (also alright when two short words)

snake_string = str

pep 8 approved
>>
variableName
ClassName
PREPROCESSOR_CONSTANT
>>
>>60930241
You mean class PascalClass
>>
>>60929916
fuck youuu
>>
used to do snake case, but then I learned Java :^)
>>
File: 1440500067081.gif (18KB, 104x104px) Image search: [Google]
1440500067081.gif
18KB, 104x104px
>>60929756
This is the only correct answer.
>>
>>60929659
Whatever my lint tells me to.
>>
>>60929756
>being a lazy faggot
enjoy your unreadable barely descriptive mess
>>
>>60929659
>So let's settle this once for all.
>What do true engineers use? Snake_case or CamelCase?
whatever it tells you to use in the programming language's style guide
>>
>>60929659
ITT: People who don't know the one true religion of kebab-case.
>>
>names of user-defined types should be PascalCased
>types should be PascalCased and values should be camelCased
>Function names should be camelCased
>constants should be camelCased
>members of enums should be camelCased
>When acronyms are used in symbol names, all letters in the acronym should have the same case
Thread posts: 27
Thread images: 2


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