Generally, YAML files should be referred to by extension ".yml" (instead of ".yaml", if they have one).
Currently, any remaining use of the extension ".yaml" seems (in my view) slightly silly.
Commonly, the letter X is used for a great variety of meanings including "cross", "extensible", "variable", etc. (e.g. in XML). On the other hand, Y (e.g. in YML or YAML) carries no such extra baggage.
Relatively speaking, Y's use is rather uncommon. The acronym YACC comes to mind (for "Yet another compiler compiler"—BTW, its extension is simply ".y" when generating C language files). Actually, YACC assists more than it conflicts, because historically (as you may know) YAML was an acronym for the similar phrase, "Yet another markup language".
Linguistically speaking, therefore, the acronym "XML" has (in a way) only two informative letters. By contrast, all three of the letters of "YML" are fully informative. Indeed, the existing set of acronyms beginning with Y seems extremely small.
Per Wikipedia's article on information theory, "Abstractly, information can be thought of as the resolution of uncertainty." By implication, this is why a four letter YAML file extension feels greatly overspecified.
For the sake of completeness (though less important), this Ansible project comment (regarding their choice of extension) exemplifies other motivations:
> Three letter extensions owe historical relevance from DOS.
> They also save typing.
But these last two aren't the important reasons—instead, see above.
This comment (from March, 2014 in the Symphony project) also seems relevant:
> Once you have two of the biggest industry players doing ".yml" as the extension, it is the standard.
Information from the YAML.org website dates the organization's most recent activity to 2009 (approximately). Evidence of this comes from:
1. > © 2001-2006 YAML.org All Rights Reserved
2. > [The latest] News:
> 20-NOV-2011 -- JS-YAML, a JavaScript YAML parser by Alexey Zapparov and Vitaly Puzrin.
3. > [The latest] YAML Resources:
> YAML 1.2 (3rd Edition): http://yaml.org/spec/1.2/spec.html
Their latest specification (1.2 above) is from 2009, presumably before much of YAML's worldwide adoption:
> YAML Ain’t Markup Language (YAML™) Version 1.2
> 3rd Edition, Patched at 2009-10-01
Even their latest news item, the above-referenced JS-YAML, uses BTW the extension '.yml":
> var doc = require('/home/ixti/example.yml');
Therefore the staleness of YAML.org's information should greatly lessen the impact today from the recommendation in their FAQ:
> Is there an official extension for YAML files?
> FAQ
> 1. Please use ".yaml" when possible.
Here is a URL for web-searching the usage of the two YAML data file extensions (.yml and .yaml). I found time-wasting discussions of which extension to use here, here and here. Apparently these discussions are a result of the official organization exerting its influence uphill, against prevailing practice.
Maybe the public should complain. Maybe YAML.org would listen!
Here are merely some (of the many existing) usage examples of the shorter extension ".yml" in common use:
Per http://php-mysql-mvc.gajdaw.pl/instalacja/download/DoctrineExport.grt.lua:
> -- NOTES:
> -- 1. The YAML file extension usually is ".yml"
Per http://wiki.catalystframework.org/wiki/howtos/forms/formfu.view:
> NOTES:
> If you want a YAML file extension of .yaml (instead of .yml), you have to configure that.
Per https://code.google.com/p/javabuilders/issues/detail?id=114:
> The default YAML for most projects seems to be .yml, instead of .yaml.
> In NetBeans in particular, the YAML wizard only allows creating a file with a .yml extension
Per http://docs.doctrine-project.org/en/latest/reference/yaml-mapping.html:
> All mapping documents should get the extension ”.dcm.yml” to identify it as a Doctrine mapping file.
> $driver->setFileExtension('.yml');
> The Symfony project sponsored a driver that simplifies usage of the YAML Driver. The changes between the original driver are:
> File Extension is .orm.yml
> Filenames are shortened, “MyProject\Entities\User” will become User.orm.yml
> $driver->setGlobalBasename('global'); // global.orm.yml
> As a quick start, here is a small example document that makes use of several common elements:
> # Doctrine.Tests.ORM.Mapping.User.dcm.yml
Per http://www.fileinfo.com/extension/yaml:
> NOTE: YAML files more often use the .YML extension.
Per https://github.com/jasedit/rypple/issues/3:
> Configuration files should end in .yml, not .yaml
> That's the standard file ending, and should be consistent with expectations.
Per https://drupal.org/node/1935708:
> Posted by cweagans on March 6, 2013
> .info files are now .info.yml files
The only counterexample I have found (using ".yaml") comes from cPanel (in their EasyApache interface, apparently a cPanel product). Generally, cPanel seems somewhat "stuffy" and old-fashioned (i.e., likely to prefer the recommendation of an official organization over common usage). Per cPanel's EasyApacheHowToMoveProfiles:
> Profile are located in the /var/cpanel/easy/apache/profile/custom directory. The filename will be identical to the name you save it with, plus the .yaml file extension.
EDIT: The above reference is from the Wayback machine. However, as of August, 2016, we can still see cPanel using only extension ".yaml".
Copyright (c) 2013 Mark D. Blackwell.
Showing posts with label data entry. Show all posts
Showing posts with label data entry. Show all posts
Monday, July 8, 2013
Thursday, December 8, 2011
One-click registration on websites belonging to phone apps
Recently, gmail passed me this advert (just for example). It is for a programming competition site that (incidentally) offers one-click registration (you know, while signed into other prestigious sites).
In most websites created for phone apps, user registration is better if it's one-click (in addition to signin). Sites (as above) do this in order to facilitate acting on impulse. (I'm not telling you anything you already don't know.)
In just two clicks (total!), users can register at the new website (even before buying the phone app) while they are skimming (or reading) posts or articles about the phone app's general topic (or smartphone technology), from a link which mentions some jazzy, new, tech feature. Generating this kind of news is something popular bloggers love to do. And it increases the phone app's mindshare.
Plausibly, in this way (huge) numbers of people would have an emotional commitment for trying-and-buying that phone app, and some would do so. If they are browsing in their smartphone, in one click they can purchase (and download) the app. Synergy! because websites are linked in ... well, a web.
People who use information aggregators (some generated by grassroots online communities, like my friend M) would (in their instream) see links to this new website, and inform their friends the same way. Thus will social synergy cause an explosive chain reaction!
One-click registration transfers (part of) the reputation of a very popular website, onto the new website.
After a person has gone through the effort of deciding to register themselves (and their personal information) on a popular website, and thus trust it, they desire also to trust (on the web) wherever else that (particular) website automatically allows them to register.
With the first website, we are in a 'community,' or have established a relationship. This leverages the natural human tendency to trust anyone referred to us, by a trusted other. Communities are a strong part of (genetically programmed) human nature.
This level of referral trust seems even to exceed the trust from (simple) hyperlink clicking. Perhaps what is called, 'cognitive dissonance' also plays a part.
Copyright (c) 2011 Mark D. Blackwell.
In most websites created for phone apps, user registration is better if it's one-click (in addition to signin). Sites (as above) do this in order to facilitate acting on impulse. (I'm not telling you anything you already don't know.)
In just two clicks (total!), users can register at the new website (even before buying the phone app) while they are skimming (or reading) posts or articles about the phone app's general topic (or smartphone technology), from a link which mentions some jazzy, new, tech feature. Generating this kind of news is something popular bloggers love to do. And it increases the phone app's mindshare.
Plausibly, in this way (huge) numbers of people would have an emotional commitment for trying-and-buying that phone app, and some would do so. If they are browsing in their smartphone, in one click they can purchase (and download) the app. Synergy! because websites are linked in ... well, a web.
People who use information aggregators (some generated by grassroots online communities, like my friend M) would (in their instream) see links to this new website, and inform their friends the same way. Thus will social synergy cause an explosive chain reaction!
One-click registration transfers (part of) the reputation of a very popular website, onto the new website.
After a person has gone through the effort of deciding to register themselves (and their personal information) on a popular website, and thus trust it, they desire also to trust (on the web) wherever else that (particular) website automatically allows them to register.
With the first website, we are in a 'community,' or have established a relationship. This leverages the natural human tendency to trust anyone referred to us, by a trusted other. Communities are a strong part of (genetically programmed) human nature.
This level of referral trust seems even to exceed the trust from (simple) hyperlink clicking. Perhaps what is called, 'cognitive dissonance' also plays a part.
Copyright (c) 2011 Mark D. Blackwell.
Labels:
business,
computer,
data entry,
ease,
efficient,
programming,
psychology,
security,
shortcut,
startup,
UI
Friday, December 2, 2011
Webmaster gallery
I made a picture gallery application for webmasters who use plain-vanilla web-hosting services (particularly those with cPanel).
The webmaster uploads pictures, thumbnails and CSS to a directory, then runs the app in order to create and modify the picture descriptions. It handles later uploaded pictures just as well.
It has been installed and run successfully (using cPanel).
An art gallery (of the app's first client) is visible (actually the static pages generated).
It is written in Rails 3.
Copyright (c) 2011 Mark D. Blackwell.
The webmaster uploads pictures, thumbnails and CSS to a directory, then runs the app in order to create and modify the picture descriptions. It handles later uploaded pictures just as well.
It has been installed and run successfully (using cPanel).
An art gallery (of the app's first client) is visible (actually the static pages generated).
It is written in Rails 3.
Copyright (c) 2011 Mark D. Blackwell.
Labels:
apache,
art,
cPanel,
data entry,
drawing,
gallery,
programming,
Rails,
Rails 3
Monday, November 14, 2011
Text-label your measures in LilyPond with YAML
Some music (especially some choral music) is somewhat irregular of measure length. Naturally with this kind of music, while entering (and editing, following one's musical sense), often measures will join or split. Then half of the measure numbers are thrown off. This is especially true of early music, and recent music whose source documents were prepared somewhat in a free way.
Often, given multiple voice parts (or instruments), each, for various purposes, necessitates several source files in parallel (if working in LilyPond): such as for adjustments to piano or organ reductions. Many features not yet done (completely and automatically) well by LilyPond necessitate these additional parallel files.
Whenever information is parallel, it requires careful synchronizing of all the measures (and measure lengths). What a bother!
Obviously, if humans are checking and synchronizing something (with difficulty), this is a good opportunity for computers to do the work instead. In that situation, I wrote a computer program allowing measures to be labeled by (text) strings, instead of (only) by measure numbers.
The program fills each measure (completely) with spacer rests (unless told otherwise). This eases synchronization, because you need only include measures with actual content.
The program uses YAML as its data entry format. YAML's noise (the extra characters you enter) is very spare. It seems cleanest for entering LilyPond source (it interferes only minimally) yet allows measures to be labeled easily by text strings.
Available on my GitHub (and written in Ruby), the program is called, 'yaml2lilypond'. Recently, I successfully used it to engrave (typset) a large work--and it helped a lot!
Copyright (c) 2011 Mark D. Blackwell.
Often, given multiple voice parts (or instruments), each, for various purposes, necessitates several source files in parallel (if working in LilyPond): such as for adjustments to piano or organ reductions. Many features not yet done (completely and automatically) well by LilyPond necessitate these additional parallel files.
Whenever information is parallel, it requires careful synchronizing of all the measures (and measure lengths). What a bother!
Obviously, if humans are checking and synchronizing something (with difficulty), this is a good opportunity for computers to do the work instead. In that situation, I wrote a computer program allowing measures to be labeled by (text) strings, instead of (only) by measure numbers.
The program fills each measure (completely) with spacer rests (unless told otherwise). This eases synchronization, because you need only include measures with actual content.
The program uses YAML as its data entry format. YAML's noise (the extra characters you enter) is very spare. It seems cleanest for entering LilyPond source (it interferes only minimally) yet allows measures to be labeled easily by text strings.
Available on my GitHub (and written in Ruby), the program is called, 'yaml2lilypond'. Recently, I successfully used it to engrave (typset) a large work--and it helped a lot!
Copyright (c) 2011 Mark D. Blackwell.
Labels:
compose,
computer,
data entry,
efficient,
github,
LilyPond,
measure,
music,
notation,
programming,
ruby,
sheet music,
text label,
yaml,
yaml2lilypond
Subscribe to:
Posts (Atom)