r/learnprogramming • • Apr 05 '22

Name one programming/comp sci concept you never understood and if you understand it, try to explain it to them

Name a programming concept such as virtual functions, pointers, certain algorithms, etc that you always had a hard time understanding and why.

Someone else who reads yours and does understand it, try to explain it to them to help them learn

1.6k Upvotes

738 comments sorted by

View all comments

Show parent comments

81

u/DevDevGoose Apr 05 '22

Forget technology like Docker and K8s. DevOps is the recognition of how software should be created and run. In the past (and still in backwards companies), development teams "built" software and then handing it over to operations teams to run. This creates a conflict where development teams want to introduce change whereas operations teams want to stop change and keep things stable. This conflict is not good for getting the most out of software.

DevOps is the cultural shift aimed at bringing these 2 viewpoints together and harmonising them for the overall benefit of the software.

As more companies have shifted away from projects and into products and there are org structures that incorporate ideas like Platform Engineering type teams, technology like Docker and K8s have come around to help streamline the process of getting working software into production safely and consistently.

It is common for companies and individuals to not really grasp what DevOps is and so co-opt the term and create job titles related to technology.

6

u/painted-biird Apr 05 '22

This is kind of in the same vein, but what is the difference between virtualization- ie using VMware to run Red Hat on my Mac- and virtualized containers à la Docker and Vagrant? I’m so confused about this (yes, I’m a total noob- only studying Unix/IT since December), because as I understand you can spin up an OS in Docker and Vagrant…

15

u/Avastz Apr 06 '22

Docker was born from the thought process of people famously saying "well it works on my machine...why don't we just ship them my machine." And they did.

Think of it as their name/logosake, shipping containers. Whatever is inside the shipping container is shipped off somewhere else, then eventually delivered, everything (theoretically) still enclosed and safe inside. That's what's going on, except it's software and the necessary pieces of an OS and other dependencies to get that software to work.

0

u/[deleted] Apr 06 '22

[deleted]

3

u/painted-biird Apr 06 '22

Hmm, b/c when I've spun up Ubuntu on Docker, it had /etc files and whatnot- I don't recall it having all the utilities that my virtualized OS had, but it had a great deal of them- which is what I think added to the confusion. As a disclaimer- I'm not really focusing on programming right now- mostly learning *nix, CLI and Bash scripting, with a VERY small amount of Python, so maybe I don't know enough about programming and development to really understand containers and their purpose. I also think I just need to play with Docker/Vagrant some more and I'll likely/hopefully learn from just fucking w/it- just kind of difficult when I'm in my late 30s, trying to finally finish my degree while learning IT and finding literally everything fascinating lol- I sincerely wish I had gotten into IT when I was a teenager or even my 20s!

Thanks for the reply, btw!

2

u/DevDevGoose Apr 06 '22

In effect there isn't really any difference between the two. They both virtualise the environment in an attempt to provide benefits like isolation between applications.

However, docker virtualises at the container level which doesn't include the OS while obviously VMs do virtualise the OS. This makes VMs much heavier to create and pass around. Containers can be spun up and discarded in seconds whereas VMs take minutes. This is important for improving the workflow in development and for scaling out to meet production performance burst requirements.

1

u/notLOL Apr 06 '22

Still confused. What are people co-opting them to mean

1

u/DevDevGoose Apr 06 '22

DevOps is the cultural shift of bringing development teams and operations team together.

Creating a "DevOps" team whose job it is to manage deployments and releases within a project that will eventually hand over to an operations team, is a complete misunderstanding of the term and its goals.

It is unfortunately common to see companies hire "DevOps people" which really means people that understand how to use Jenkins/Docker/K8s etc. The tools are irrelevant, the old job titles were fine, the point is breaking down organisational silos for the global optima.

If you just hire people who know how to use specific tools without changing how your teams are expected to work together, you won't achieve a true DevOps culture. You will only modernise your tech stack while still having problems delivering.