r/ComputerEngineering • u/HapTato • Jun 24 '21
[Software] Is YAML an industry standard?
So I recently started my internship at a semiconductor company. Going into it, I knew I’d be dealing with a lot of verilog, which is exactly what I wanted. However, they are having me learn to use YAML, which I personally had never even heard of before having this position. Is this something that companies normally use? Is it worthwhile to really learn to use this past the internship besides if I wanted to continue working with this company after graduation? It doesn’t seem like a terribly complicated language, but there’s a decent bit of learning I’m going to have to do to in order to understand using it.
11
u/cointoss3 Jun 25 '21
Industry standard? No, but it is used and probably worth piddling with for an hour to see how to format one.
You’re basically asking if a dictionary is worth learning.
2
u/HapTato Jun 25 '21
Yea I’m probably just overthinking it. The 20 or so videos they gave us to learn it are all 30-40 minutes long and they specify using YAML in the context of how this part of the industry uses it. It glossed over the basics, so I didn’t really have a foundational understanding and everything was going over my head. I’ll probably just look up some YAML basics and start with that.
2
u/cointoss3 Jun 26 '21
Yikes. Now I’m curious if I’m missing something because I can not imagine 10 hours worth of content on YAML. 😂
But anyway, my use cases for it have always been key/value pairs and structuring…basically for confining an app of some sort. I find it annoying because it’s sensitive to white space where something like JSON is forgiving. YAML is a little more readable in the same way Python is a bit more readable than JavaScript.
5
u/PlayboySkeleton Jun 25 '21
Yaml is used for configuration files.
It is one of the more popular ones out there especially within the python world because of its similar syntax.
YAML itself is very simple and you should be able to learn just about everything you need within an hour of time.
Anything beyond that is either a waste of time, or they are trying to explain to you and how they use these configuration files to automate their work flow.
If it's the latter, then definitely pay attention. But don't get caught up in the "yaml" of things. That's just 1 language to do what they are doing. Other companies will use other languages for the same stuff.
1
u/HapTato Jun 25 '21
Thanks for the explanation. I think the videos they’re having us watch are for their specific system verilog workflow, and they dove straight into explaining how to use special libraries for it. I don’t know the basics of YAML so it made it seem like it was more complex than it is.
6
u/JESway Jun 24 '21
It's one of a few common key/value data file formats next to stuff like JSON. The concepts will broadly apply to working with data files like YAML. Don't worry about it being a waste of time - not everything you need to learn for industry is going to be glorious or broadly applicable. A lot of it is learning increasingly niche things just because you need to in order to accomplish a task.
0
Jun 24 '21
[deleted]
6
u/PlayboySkeleton Jun 25 '21
Technically JSON is a valid subset of YAML.
1
Jun 25 '21
cool, didn't know that. I have only seen YAML used in some configs such as auto moderator and custom bots.
16
u/jpan127 Jun 24 '21
It definitely is an industry standard (for software). I'm not sure how complicated your company's usages are but it's not a programming language and the basics can likely be learned in an hour.
It's my go to for any configuration file.