Advanced work with errors in Go (Golang) - course RUB 21,280. from Stepik, training 22 hours, date November 28, 2023.
Miscellaneous / / November 29, 2023
What's so special about mistakes?
We believe that competent error handling is the key to the fault tolerance of your application, and not everything here is as obvious as it seems at first glance:
How many ways do you know to turn around an error? One? Two? And there are more than five of them! What pitfalls does each of them hide?
How to handle an error without importing its package?
Maybe you know how the standard library writes stacktrace errors?
What are constant errors?
Is stacktrace an expensive thing?
Why is the Error method dangerous and what type of receiver should he choose?
Which errors can be ignored and which cannot?
How to handle errors that occur concurrently?
What if the package does not provide the required error?
Where and how to log errors?
How compatible are third-party error handling modules with the standard library?
How did Go get to its current error mechanisms and what lies ahead?
etc.
The main goal of the course is to make your error handling code production ready.
If you think that working with errors in Go ends with knowing about errors. Is and errors. As, then you should definitely come to us.
Is the course all theory?
No, no and NO!
Of course, we'll have to touch on the theoretical aspects of working with errors in Go, but be prepared to read a lot of source code, both the standard library and third-party modules.
Access to each subsequent module is opened only after solving problems and tests in the current one. Examples from the course and templates for tasks are in a separate GitHub repository. For each task, there are unit tests that it must pass - you won’t have to suffer with I/O, as is the case with tasks in other courses.
What will I learn?
If you're new to Go, you'll definitely want to sharpen your knowledge and enjoy some of the code examples you're probably missing right now. But we warn you that you probably will not be able to complete all the tasks of the course.
If you are a senior tomato and a practicing Go developer, then once again you will get acquainted with the best practices and find out what is worth beating your colleagues, and maybe even yourself, on the wrist for.
In any case, if you have experience in programming in general, the skills to Google standard packages and the desire to get to the end, then the course should go well.
Is the course only about mistakes?
No!
Lessons often contain original comments on related topics (such as testing, concurrency, static code analysis, etc.), and each module is provided with a comprehensive bibliography. The modules “Dealing with errors in tests” and “Dealing with errors in competitive code” will make you especially sweat.
The concept of panic, related to errors, is discussed in a separate course.
Sample problems
Where can I ask about the course?
Welcome to https://t.me/goinpractice.
More courses at
https://www.golang-courses.ru/
3
course- Graduate of MSTU named after. N.E. Bauman - Solution Architect at Exness. - Ex-manager and one of the authors of Otus: Golang Developer. Professional. - Author and teacher on Golang in practice
- Graduate of MSTU named after. N.E. Bauman
- Solution Architect at Exness
- Ex-manager and one of the authors of Otus: Golang Developer. Professional
- Author and teacher on Golang in practice
3
course- Graduate of Moscow State Technical University named after N.E. Bauman. - In the past, a Java/Kotlin Android developer, while at Avito, completely mutated into a backend engineer. I write in Go and a little bit of PHP. - Bad character. Not...
- Graduate of Moscow State Technical University named after N.E. Bauman.
- In the past, a Java/Kotlin Android developer, while at Avito, completely mutated into a backend engineer. I write in Go and a little bit of PHP.
- Bad character. Not married.