$('#my-div').css('background', 'blue').height(100).fadeIn(200);
Personally I don't use JavaScript frameworks very often so I'm still not very used to this.The first time I encountered it I didn't like it at all but now I think it's ok.
Something else that also enables code similar to what you are talking about is using named arguments in Python.
somewhat_similar(barfoo=thing, using_fnord=mahjong, baz_provider=xyzzy, quux_helper=fob)
but personally the way I use named arguments is only for the select few arguments that will sometimes appear and sometimes not in combinations that make the ordering alone insufficient to handle this.In my code regardless of language, I generally try to order the argument with target as the first argument, source(s) second and additional arguments following that.
Somewhat related to these things is also the fact that I use constants and enums for values rather than "true" and "false" when calling functions that take booleans as arguments.
As I noted in another comment I generally work on small programs at a time. This makes it generally ok for me to remember or to find the arguments taken by a function even though I don't have autocompletion.
void* memcpy(void*, void* size_t) // no argument name
Which is the worse IMHO. The autocomplete cannot event tell you which is which..It leads to very verbose code, which is perhaps why it hasn't caught on in other languages. It also can be surprisingly clumsy when a method is called from multiple call sites (which may apply it to different parameters in subtly different contexts, which can make the original phrasing awkward), or when a method is passed around as a first-class value.
Ability to find and read the docs: an asset.
Everyone uses IDEs, whether it is Emacs, Vim (with plugins), IntelliJ, Eclipse, Atom, Xcode doesn't matter.
Yes, I also use whiteboards, A4's, a notepad, mindmaps (Freemind), post-its and more. The creative parts of SE, such as architecture and design, do not blossom behind a computer.
Why? Use the best tool for the job.
> Ability to find and read the docs: an asset.
Read the docs + use a good IDE.
I've always found this particular problem solveable by allowing programming languages having syntax in the form of
instead of Are there good reasons why languages haven't adopted this syntactic nicety?