Win a copy of Zero to AI - A non-technical, hype-free guide to prospering in the AI era this week in the Artificial Intelligence and Machine Learning forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Paul Clapham
  • Bear Bibeault
  • Jeanne Boyarsky
Sheriffs:
  • Ron McLeod
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Jj Roberts
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • salvin francis
  • Scott Selikoff
  • fred rosenberger

yml file

 
Ranch Hand
Posts: 648
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I refer to this link and notice there is a yml file.

https://github.com/spring-guides/tut-rest

I'd like to know how did the author make it happen such that when we clone the git, the yml file is not included inside our git clone copy ?

Furthermore, I'd like to know where can I pick up this yml technology ? cos I notice in my temp job my boss and others are all using yml but unfortunately I don't have a chance to learn it, or rather my training was halted abruptly for some unknown reason...

Hope I could be guided here.

Tks.
 
Saloon Keeper
Posts: 22648
153
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"yml" is the common filename suffix for files in the YAML (YAML Ain't Markup Language) format.

YAML is a structured notation that supports hierarchical data and collections. Its popular relatives include XML and JSON.

Unlike XML, but like JSON, there is no meta-data support to codify structure or content-type for the data elements. However the syntax is simpler for YAML than for JSON, so it's very easy to parse. JSON elements must be valid JavaScript expressions, but YAML elements are just name/value pairs and lists.

Because of this simplicity, the amount of data required to transmit over a network or store in a file is very small. Even better, it's very easy to edit YAML, as you don't have to fiddle around with angle brackets, braces, and other structural stuff. As in PYTHON, most of the structural information is conveyed by simple indentation.

A very quick look at the project you pointed to seems to have only one file (my eyes aren't what they used to be, though) and that's a Travis configuration File. I believe that Travis is a test framework, so to be complete you should keep that file even if you never run Travis yourself.

Yes, you really should learn YAML. Basic YAML is quite simple, but very powerful and you can expect to run across a lot of it these days.

The main page for the YAML project is an outline that is itself in YAML form: https://yaml.org/ Note that it lists several Java YAML tools. Just about every major and some minor programming languages have YAML support.

A description of how YAML is constructed (the YAML spec) is here: https://yaml.org/spec/1.2/spec.html




 
Saloon Keeper
Posts: 12419
269
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The file should be included when you clone the repo.

Are you sure you aren't overlooking it because it appears as a .travis file to you? Does your file explorer hide file name extensions? If so, you should switch this off.
 
Marshal
Posts: 7785
536
Mac OS X VI Editor BSD Linux
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

tangara goh wrote:I'd like to know how did the author make it happen such that when we clone the git, the yml file is not included inside our git clone copy ?


In unix systems dot appended in front of the file means hidden file (.travis.yml).

So if you type ls -a it woud list you all files (including hidden). By the way, it is in the same way as you don't see .git file.
 
He baked a muffin that stole my car! And this tiny ad:
the value of filler advertising in 2020
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic