ASYNC as a parameter

by EvanJPalmer

maxresdefault

Just a small, useless thought I had today regarding using async as a parameter – for example in an asynchronous jquery ajax call:

$.ajax({
  url: "file.php",
  type: "POST",
  async: true
});

Considering the word “asynchronous” is the antonym of its root “synchronous” – it means, “not synchronous” – shouldn’t we use “sync” and invert the defaults? I mean, you would never give any other parameter or method a negated name. You’d never see this for example:

public void UpdateStatus(bool unsuccessful){ ...

or

public bool DetermineRecordIsNotNew(RecordType record){...

or

public class Performance {
string Name { get; set; }
DateTime StartDate {get; set;}
bool IsNotCancelled {get; set;}
}

Anywho, that’s what I think.

I also don’t think that asynchronicity should be true as a default in most cases either.

Meh, whatever.

Advertisements