From the course: Rust LLMOps

Unlock this course with a free trial

Join today to access over 23,100 courses taught by industry experts.

Function: The essence of programming

Function: The essence of programming - Rust Tutorial

From the course: Rust LLMOps

Function: The essence of programming

- [Instructor] When you first start learning to program, one of the things that is very confusing is what is necessary suffering and what is useless suffering? And this can be a process that can take years to master. I'm going to break it down in a way that I believe can help people shortcut this process by, let's say, five years. So first up, let's look at what's actually programming, what's essential. If you think about a function here, which has an input, an X and a Y, it does a unit of work, and this is, let's say, a total, which would return back the sum of X and Y, and then the return. This is all programming languages. It could be Rust, it could be Python, it could be JavaScript, it could be Ruby, but the essence of programming is you have a unit of work that takes inputs, it does the work, and then it returns back. Anything else, other than this, is either useless suffering, which you should automate, or it's optional, it may or may not be useful. So first, let's take a look…

Contents