Which do you prefer?

Which do you prefer?

Other urls found in this thread:

unitronics.com/KnowledgeBase/U90Ladder/HMI/Display/What_is_an_HMI_.htm
machinedesign.com/iot/what-are-human-machine-interfaces-and-why-are-they-becoming-more-important
microsemi.com/applications/industrial/hmihttp://www.microsemi.com/applications/industrial/hmi
w3.siemens.com/mcms/automation/en/human-machine-interface/pages/default.aspx
anaheimautomation.com/manuals/forms/hmi-guide.php
techopedia.com/definition/12829/human-machine-interface-hmi
whatis.techtarget.com/definition/human-machine-interface-HMI
iconics.com/Home/Solutions/HMI.aspx
copadata.com/en-ro/hmi-scada-solutions/human-machine-interface-hmi/
subnet.com/resources/dictionary/human-machine-interface.aspx
advantech.com/products/human-machine-interfaces/sub_1-2mlk4r
twitter.com/AnonBabble

CamelCase because C# standards

That's PascalCase. This is camelCase.

Underscores because it avoids any problems with acronyms

Sometimes underscores, sometimes camel case.
But never mixed.

None. All lower case

Yea that's what I actually typed, on my way to work so using my phone. Capitalises the first letter my default, my bad for not checking

>dashes
lol what the fuck?

I hate camel case

alllowercaseallthetime

I really only see it in scripting

Depends

dashes-for-executables

Snake case for variables.
Camelcase for functions.
Pascalcase for classes.
Leading underscore for private variables.

But if I had to pick one, snake case all the way.

under or camel

dashes are for madmen

that's completely mental!
just anarchy!

I use camelCase at work with obj-c and swift
I use PascalCase at home in C#/F#
I use underscores at home in C.

gas_all_camelfags
unfortunately more recently I've been stuck with PURGE_THOSE_WITH_MIXED_CAPITALIZATION
c# is the only exception and c# is actually shit so I don't care

seriously? where the hell is this permitted? how do you do arithmetic operations if you can use dashes? do you need to separate terms with spaces?

since when are you naming your variables starting with numbers?

The only language I know of that lets you is Lisp.

I'm a C programmer so it's all underscores all the time for me

Html/css uses dashes

Neither has arithmetic

Css has calc. Not in the ids and classes though.

It depends on what I'm doing.

m_Var
Or
VariableName

sometimes my variables are numeric and i want to subtract one variable from another, dumdum
see as for calc, the mozilla docs lay out that you must use whitespace to separate terms. also, does CSS let you use terms in this way? you might reference classes or id's but they'd never represent a numeric (or otherwise subtractable). i pretty clearly remember CSS not letting you assign variable names (it's been a while since i've done web dev stuff though)

Actually the inline camel_Score is the best. It clearly brings efficiency in reading variable/function names and saves your eyes, using advantages from both styles.
It's just obvious, like putting the function brackets {} on separate lines.
It is not usually said out loud but true programmers just don't ask a thing about it as it's apparently native and the only possible style for us.

Sure thing, kiddo.

You mean, you can disprove it?

I disagree.
function_Name() {
return;
}

As a 3-star C programmer, I only write in ccase.
None of my functions or variable names are longer than 8 characters and they're all heavily truncated, like atoi, structmk, strbuf, membuf, etc.

float theRealNumberAfterComutingSecondFunction3RdPass

float r23

>m_Var
Eww

don't yuck his yum

it works

can't throw this guy

>None of my functions or variable names are longer than 8 characters and they're all heavily truncated, like atoi, structmk, strbuf, membuf, etc.
I can sppse your a fggt.

I use all three.

iprefernoneofthemtbhfam

Dashes are the most readable.
I use them for file names.

It's just a shame you can't use them in code.
In code I use camel case.

camelCase. Saves one byte per word on average

>C#
Fuck off Pajeet.

>I use them for file names.
use spaces you fucking retard.

dashes because I am a lisper

in languages where dashes don't fly, camelCase

cd some\ obnoxiously\ spaced\ directory\ \ \ oh\ watch\ out\ multiple\ spaces

>how do you do arithmetic operations if you can use dashes?
With prefix notation you pleb.

Honestly C niggers should not be allowed to post on Sup Forums if they are this ignorant.

lol, okay

Underscores, which are a neutral text character that helps keep words separate. And tabs, because they're not a space. And { on a new line.

Then I work with people that aren't fucking retards, and who use their own scripts and regexpes that took them literally 2 minutes to type, to replace all underscores, tabs and { with their favorite case, spaces and block styles, so they can work with their favorite norms, and then invert everything once they're done and committing it. And each is coding in his favorite environment, some vi, some emacs, some notepad++, some eclipse, some idea... to each his own.

It's 2016, it's time you grow out of your faggotry and realize you can script your autism.

tab completion you retard

you could enclose it in quotation marks and avoid putting backslashes in, but tab completion inserts the backslashes and both solutions are shitty. and if you use your mouse to double click on a path, it'll never make the jump, even if there's a backslash there.

don't make paths that require escape characters unless you absolutely have to (hint: you don't)

and before you ask a retarded question like why would use your mouse in the terminal, you can double click on a path to copy it to your clipboard, for instance.

>2016
>opening directory
>"cd"

Holy kek.

it's the most efficient

windows users, everyone!

What for? Just for opening? Well yeah

>dashes

literally what?

once you've navigated there, there are lots of commands you can do in a shell, windows user :)

In 2016, you can type the name of the folder you want to open directly and it'll auto select it. Then if you REALLY want a terminal, define a shortcut to open a terminal on that position.

Even less keys to type, infinitely better visual feedback, exact same result.

You guys can't into HMI, that's why you praise Linux: it's not that terminals are good, only that GUI is FUCKING GARBAGE.

>In 2016, you can type the name of the folder you want to open directly and it'll auto select it.
is your critique seriously just with the use of the `cd` command, and not with the backslash point?

are you the most autistic person on this board?

>Even less keys to type
Fewer. Fewer keys to type.

>You guys can't into HMI,
What the hell is HMI? Do you mean HCI? User interface design? Seriously, what the fuck are you talking about?

And to your overall point, in a graphical user interface you can't drill down several levels with one command the way you can in a command line interface (as far as I know). You might have an option (as in OS X) to change your view to list view and then hold option (or something) to expand all subdirectories along with the one you expanded, but that's neither especially well known nor the same thing.

You say 'windows user' just like implying the linux-based systems don't have a similar UI en masse, or like windows doesn't have a command shell..?
I use Debian. The thing is, you may forget the full path to your folder (in this case, you will be switching all the options with tab till it shows the correct one, or listing the directory each time); you can have some problems with foresaid folders with special characters in their names; you're just doing it really slow comparing to navigation using the average mouse, average hand and average eye movement (moreover, your brain is more adapted to search one in a pile rather than searching element by iteration).
It's a matter of habit I suppose, if you're used to type the full path each time. But modern UI is just wasy and comfort.

Yes. Because it's only a terminal issue. Terminals are outdated, but linuxfags just don't know anything better.

Now the autists would be the one sticking to their terminals when better solutions exist, but they couldn't recognize ergonomics even if it hit them in the face.

>What the hell is HMI? Do you mean HCI? User interface design? Seriously, what the fuck are you talking about?
HCI is "human-computer" interface, HMI is "human-machine" interface, a broader definition.

Also you really don't know about how modern GUIs work do you? You can do all those things, and in fact, you can do things so highly practical in comparison, that what you're describing becomes pointless.

I prefer your mom in my bed

some variables with underscores, some with camel case.

mostly just to annoy my co-workers.

>HCI is "human-computer" interface, HMI is "human-machine" interface, a broader definition.
I study HCI and I've never heard anyone talk about "HMI". A quick google yielded the Wikipedia article on HCI "(Redirected from Human-machine interaction)". It looks more like you just literally don't know what you're talking about.

As for doing these things, can you illustrate it? Here's a webm of some of the approaches I talked about. The first approach is slow and obnoxious; the second is faster, but expands *all* directories (including branches going to other places that you don't want); the command line approach is much more direct, and gives you an easy target to copy the path if you want.

Maybe we're not using the same Google, I have no problem with finding information about HMI. Simply, HMI is much broader and not only about computers, it's also about cars, microwave ovens, and industrial machinery. Surprised you learned about HCI but have no fucking clue what HMI is.

Also I don't really get what's bad about what you're showing, seems it's just your shortcuts not being good enough. And if you want to copy the path, in a proper file browser, you can. I have no trouble on my shitty work computer with an outdated Gnome.

And then it remains to be understood WHY you need to do this. There are thousands of ways you can do all this more efficiently, given you can explain why you need to explore folders. HMI is about exposing functions answering a need with a precise purpose in mind, not providing pointless interaction. That interaction is pointless, express a need and give it a purpose and we'll see.

Though I'm at work, I don't really have time making webums.

>Maybe we're not using the same Google,
Can you name an HMI conference or journal? CHI is the leading conference on Human-Computer Interaction. You must have heard of it. We're in the middle of the rebuttal phase of paper reviews right now. Has a few thousand attendees every year. Was in San Jose this past year, was in Seoul the year before. Will be in Boulder next year... Is any of this ringing any bells?

Can you point to this page on HMI that must surely exist? Maybe "your Google" can find it where "mine" failed.

As for you not getting what's so bad about your way, we're talking about different things now. First you said that your way was better, and now you're moving the goal post to argue that your way isn't so bad. I'm not going to engage on this point further except to say that my way works better for some people. This is such a simple aspect of human factors that it honestly makes me wonder if you're into "HMI" or if you just made up a term that was kind of wrong and now you're committing to it.

variable_name
functionName
executable-file

What do you usually name counting variables, like when you iterate over a list? I dislike i because that's ambiguous in Octave (imaginary unit). Usually use idx, or x and y if I'm going over a 2d array.

Oh, and also
GLOBAL_VARIABLE

camel case for scripty languages (python, JS, etc.), underscores for systems langs (C, C++, etc.)

I still prefer underscores since they fit the purpose of a non-breaking space well, even though they've been "objectively" ""proven"" to be """worse""".

camelCase is also fine but PascalCase is literal cancer and kebab-case needs to be removed.

> kebab-case needs to be removed
I see what you did there.

>Can you name an HMI conference or journal?
I think you misunderstand what it is: it is essentially another name for the field of ergonomists. It applies to any kind of interface between a human and a machine. It's not even necessarily electronical, it can be mechanical as well. Then you have more targetted fields, such as "human computer interface", which itself goes beyond simple GUI, and also includes screens, keyboards, mice, blinking LEDs, scanners and printers.

Now here is what MY Google found:
unitronics.com/KnowledgeBase/U90Ladder/HMI/Display/What_is_an_HMI_.htm
machinedesign.com/iot/what-are-human-machine-interfaces-and-why-are-they-becoming-more-important
microsemi.com/applications/industrial/hmihttp://www.microsemi.com/applications/industrial/hmi
w3.siemens.com/mcms/automation/en/human-machine-interface/pages/default.aspx
anaheimautomation.com/manuals/forms/hmi-guide.php
techopedia.com/definition/12829/human-machine-interface-hmi
whatis.techtarget.com/definition/human-machine-interface-HMI
iconics.com/Home/Solutions/HMI.aspx
copadata.com/en-ro/hmi-scada-solutions/human-machine-interface-hmi/
subnet.com/resources/dictionary/human-machine-interface.aspx
advantech.com/products/human-machine-interfaces/sub_1-2mlk4r

That's just page 1. If you don't know what HMI is, I think we may as well stop right there.

variable_name
Global_Variable
GLOBAL_CONSTANT
functionName
ClassName

>whenDo_You_UseUnderscores
Idiot

>If you don't know what HCI is, I think we may as well stop right there.
Well said. At best it looks like your understanding of HCI is limited to toasters and cars. I'm not sure what made you think you know anything about computers, but it's good to know that you're realizing you don't now. Delayed realization is better than none at all.

>I'm not sure what made you think you know anything about computers
Probably an 8 year experience as a developer, and 6 as a software project manager. I didn't learn it from Wikipedia though, but from real people, that taught me about ergonomics, then its application to artificial systems as HMI, and field specific to modern personal computers as HCI.

Enjoy your terminal, I guess the name is fitting considering you can't seem to evolve past it. Try to learn how to Google at least.

variable_name
CONSTANT_NAME
function_name
MethodName
TypeName

Underscores because I'm not some kind of Java plebeian

the only way

you said earlier that HMI is about toasters and cars. HCI is much more specifically about computers. we're talking about shells and directory/file names.

stay in your lane, toaster boy.

Seriously, I've been reading the entire discussion and you should kill yourself. HMI is about ANY KIND OF INTERFACE, and that obviously INCLUDES COMPUTERS. It was originally pioneered by the French, who called it IHM, 'Interface Homme-Machine', while designing next generation cockpits for their Mirage IV fighter planes in the 60s. There's NO WAY you can't find anything on google about HMI, nor learn about HCI without knowing what HMI or ergonomics are. No wonder you're being so fucking ignorant about 'Graphical User Interface'.

English actually. It just pays the most where I am.

>dashes
i thought opie was talking about URLs

Quit being a dick, it's obvious you're wrong in this situation.

lol ok

My entire point was that spaces are not preferable because they introduce backslashes, which is obnoxious. I don't understand how you can come to the conclusion that one can be "wrong" about this. Through the context of HCI it's a textbook example of experts (people who prefer the command line interface) having preferences that are different from non-experts (people who don't use CLIs). This isn't a value judgment or a sweeping generalization. It's an observation that some things don't work for some people. I honestly don't even understand what you think you mean by "wrong" here.

Just get a room already.

ClassName
variable_or_function

i use camelCase because my professor said to do it and it seems fine to me vOv

i will admit acronyms are annoying to deal w/

I don't name variables/functions after sentences.

>"I suck penis because my mom sucks penis" - You

dashes
because-lisp-uses-it

i_like_underscores_t

How about you turn off auto capitalizing the first letter

Dashes-for-filenames
camerCase or PascalCase for proggramming depending on the language

how do you write "son_of_a_bitch"?
"SonOfABitch"?

looks ugly
single capital letters fuck it up

Underscores:
Python
C
Bash

Camelcase:
Java
C#

Dashes:
Never

That's autism.