Gopherfest 2015 | Go Proverbs with Rob Pike

  Рет қаралды 245,138

The Go Programming Language

The Go Programming Language

8 жыл бұрын

See the full list of proverbs here → goo.gle/38Uft1P
Gopherfest 2015 Playlist → goo.gle/3jDyasP
Subscribe to The Go Channel → goo.gle/go-subscribe
#GoLang #Gopherfest

Пікірлер: 93
@jub0bs
@jub0bs 3 жыл бұрын
02:42 Don't communicate by sharing memory, share memory by communicating. 03:42 Concurrency is not parallelism. 04:20 Channels orchestrate; mutexes serialize. 05:18 The bigger the interface, the weaker the abstraction. 06:25 Make the zero value useful. 07:36 interface{} says nothing. 08:43 Gofmt's style is no one's favorite, yet gofmt is everyone's favorite. 09:28 A little copying is better than a little dependency. 11:10 Syscall must always be guarded with build tags. 11:52 Cgo must always be guarded with build tags. 12:37 Cgo is not Go. 13:50 With the unsafe package there are no guarantees. 14:34 Clear is better than clever. 15:23 Reflection is never clear. 16:13 Errors are values. 17:27 Don't just check errors, handle them gracefully. 18:10 Design the architecture, name the components, document the details. 19:08 Documentation is for users.
@YBWang-pi9qq
@YBWang-pi9qq 3 жыл бұрын
thanks
@pawelnowak5050
@pawelnowak5050 5 жыл бұрын
Rob is a true Mozart of Go, and listening to this talk was a music to my ears.
@jonathancano6387
@jonathancano6387 3 жыл бұрын
"when you doubt your powers, you give power to your doubts" -- The Sphinx
@ideaparkcc
@ideaparkcc 3 жыл бұрын
great talk, rob is a real programming master.
@jasontruter7239
@jasontruter7239 3 жыл бұрын
Love the fact that he doesn't laugh at his own jokes :D
@jacobschmidt
@jacobschmidt 3 жыл бұрын
@Corliss Sanluis "joined 1 week ago"
@emeka1978
@emeka1978 8 жыл бұрын
That jacket is mesmerizing....Excelllent go style.
@gbinside
@gbinside 7 жыл бұрын
10:00 standing ovation; I always thought it and now I have a reference for it :D
@gerodim
@gerodim 5 жыл бұрын
That's the reason I ended up watching this video after following links on criticism of code reusability. I guess people just need to understand what they are coding and why, what are the pros and cons etc and not follow 'best practices' blindly...
@junph
@junph 8 жыл бұрын
Very insightful!
@andyortlieb3768
@andyortlieb3768 7 жыл бұрын
great talk!
@dablelv5613
@dablelv5613 2 жыл бұрын
总结得非常经典,受教了。
@matthewconnelly3851
@matthewconnelly3851 3 жыл бұрын
Around 8:30 : I've seen `...interface{}` a handful of times as a function parameter, and it feels like optional arguments.
@dassyareg7587
@dassyareg7587 Жыл бұрын
This man is a legend.
@MattSiegel
@MattSiegel 8 жыл бұрын
so funny and insightful! also, i love that damn jacket :D (hmm... i must be in the minority, i actually like gofmt format)
@JoeTaber
@JoeTaber 8 жыл бұрын
+Matt Siegel I think Rob's point was more that most gophers have at least one thing that they'd like gofmt to do a little differently.
@richardchaven
@richardchaven 2 жыл бұрын
nice jacket
@ms-qr4br
@ms-qr4br 4 жыл бұрын
In go, like in go, continued play in an interface removes aji(good or bad)
@koredeaderele1666
@koredeaderele1666 6 жыл бұрын
At 8:50 I came to realize that Rob Pike is my spirit animal
@fulldecent
@fulldecent 3 жыл бұрын
Can I get these proverbs in asynchronous text format please? And linked from the proverbs website?
@Andres-jc6hr
@Andres-jc6hr 4 ай бұрын
so inspiring!
@mikelpascual
@mikelpascual 2 жыл бұрын
Is anybody else seeing the video image of a completely different dude, while listening to Rob Pike? Is that something weird in KZbin, in this video, ... ?
@DanielvanderMeulen
@DanielvanderMeulen 8 жыл бұрын
import "this" The Zen of Go
@AndersonSilva-dg4mg
@AndersonSilva-dg4mg 3 жыл бұрын
package this is not in GOROOT 😭
@ivanmorozov5709
@ivanmorozov5709 4 жыл бұрын
Little and composable interfaces is an Golang idea? Ad-hoc polymorphism is not a new thing though.
@Falling2311
@Falling2311 8 жыл бұрын
If I understood the reasoning behind "Design architecture, name the components, document the details" properly, I think a more 'poetic' proverb would be "A rose by any other name would not be thought a rose." If I said 'stop to smell the flowers' instead of 'stop to smell the roses,' someone may imagine tulips or pansies. It's only when the names are clear can the reader better understand us. Did I get the meaning behind that one right??
@AceixSmart
@AceixSmart 2 жыл бұрын
Am I the only one seeing a different video the the audio isn't matching?
@JohnLeidegren
@JohnLeidegren 2 жыл бұрын
Nope. Me too. Something is broken but we can only report "misconduct" not actual technical issues. I believe KZbin has fucked up the video because I have watched it before and it wasn't like this.
@AceixSmart
@AceixSmart 2 жыл бұрын
@@JohnLeidegren yeah. it works fine on mobile, but fucks up on PC
@leozilla
@leozilla 3 жыл бұрын
I love this presentation, Its so true what he says. And I am not a go developer, instead I wrote most of my programms using java and c#. I love how he rants about other languages :-)
@miloszivkovic6256
@miloszivkovic6256 4 жыл бұрын
I like Go, but I do have one issue with it. What do you have against src/ folder? I just don't like having go files in the root of the project and I don't want to use outdated build systems like make.
@vijeth2
@vijeth2 Жыл бұрын
@5.24 😆
@CARLOSMartins-er7ov
@CARLOSMartins-er7ov 2 ай бұрын
19:14 19:15
@AlbertBalbastreMorte
@AlbertBalbastreMorte 8 ай бұрын
In the github page for this I see a last proverb, `don't panic`, but it's not covered here. Does anybody know what does that mean?
@valentindeleplace7860
@valentindeleplace7860 7 ай бұрын
It means "don't use panic() as a try-catch flow control for expected things like I/O errors, etc. Instead, return error values"
@arsenskavin130
@arsenskavin130 3 жыл бұрын
import zen
@alpertokcan9899
@alpertokcan9899 2 жыл бұрын
Video and the sound doesnt match
@kholidfu
@kholidfu 6 жыл бұрын
Wearing batik jacket, one of the heritage from Indonesia
@loupax
@loupax 6 жыл бұрын
So, if I learn Go well enough, I get to wear this jacket at work as well?
@hiddenbayes
@hiddenbayes 6 жыл бұрын
Q: Rob, what about generics? A: 8:56
@AdamSchelenbergCom
@AdamSchelenbergCom 7 жыл бұрын
OMG, Rob has such a sense of humor. ROFL on the joke about python.
@AdamSchelenbergCom
@AdamSchelenbergCom 6 жыл бұрын
7:58 The joke about Python.
@AdamSchelenbergCom
@AdamSchelenbergCom 6 жыл бұрын
8:47 Another joke. But not about Python.
@AdamSchelenbergCom
@AdamSchelenbergCom 6 жыл бұрын
16:55 Another joke.
@rambalram2610
@rambalram2610 3 жыл бұрын
Interacting with a program that better handles error is similar or close to interacting with a human !!
@andreypanin5257
@andreypanin5257 Жыл бұрын
0:47 Since when is chess a Western game? :-)
@sombhattacharyya
@sombhattacharyya 3 жыл бұрын
Minimal interfaces are a behavioural thing a cultural thing. It's not really a java thing to be honest. Best practices followed by most OO programmers is to build specific interfaces. Be it in java or some other language.
@lzap_rh
@lzap_rh 2 жыл бұрын
The world needs more Rob's talks.
@yesthattom
@yesthattom 8 жыл бұрын
Worst Mother's Day gift idea... EVAH.
@yesthattom
@yesthattom 8 жыл бұрын
+Isaac Andrade you rang?
@ichigo_kurosaaki
@ichigo_kurosaaki 7 ай бұрын
If you come from java, everything is bigger 😏
@monadstack
@monadstack Жыл бұрын
Go User doing some abstraction and goes wrong; Go Author: u are idiot, you are beginner who overused things you shouldn't.
@ringishpil
@ringishpil 8 ай бұрын
Gofmt style’s no one’s favorite, yet Gofmt is everyone’s favorite- Rob Pike
@DavidAlsh
@DavidAlsh 5 жыл бұрын
"Think really hard when using empty interfaces if there isn't really something that you could put into..." - A generic type, perhaps?
@20x20
@20x20 4 жыл бұрын
he extols the virtues of smaller interfaces, even touting the empty interface and then later says "it's not for you". pretty contradictory but he also says that's okay. half the reason i see to use empty interfaces (and then later reflection) is because the language won't accept less-stringent type checking.
@hexa3389
@hexa3389 3 жыл бұрын
Chess isn't a western game...
@pingkai
@pingkai 3 жыл бұрын
The more you say "who cares" based on your personal taste rather than rational thinking, the more you attract cult following rather than general users, which partly tells the distance of impact between Plan 9 and Unix, golang and C, even considering all have their gene deeply rooted from Bell Labs.
@AliMoeeny
@AliMoeeny 8 жыл бұрын
Since when chess is a western game? [ for the record I respect Rob Pike a lot, but still ]
@user-jj5mi1yl6p
@user-jj5mi1yl6p 8 жыл бұрын
+Ali Moeeny When western get something, it's became thinks that it's own.
@enneff
@enneff 8 жыл бұрын
+Ali Moeeny To be fair, while the origins of Chess lie in India, the Chess we know today was first played in Europe.
@foobargorch
@foobargorch 8 жыл бұрын
Wikipedia links to this, nice overview: history.chess.free.fr/papers/Calvo%201998.pdf
@matrixexposer6217
@matrixexposer6217 4 жыл бұрын
@@enneff It evolved, that's true. But it does not make it a western game!
@SergeZinin
@SergeZinin 5 жыл бұрын
Since when chess is a western game? 🤣
@vivekv1996
@vivekv1996 5 жыл бұрын
I was about to comment that xD
@verbosed
@verbosed Жыл бұрын
because it is. chaturanga isn’t chess
@heerathakurbuscompany9738
@heerathakurbuscompany9738 Жыл бұрын
​@@verbosed well juggernaut isn't Jagannath, I get the frustration.
@mgd8867
@mgd8867 7 ай бұрын
“The rules of chess as they are known today emerged in Europe at the end of the 15th century, with standardization and universal acceptance by the end of the 19th century.” You can’t google?
@matrixexposer6217
@matrixexposer6217 4 жыл бұрын
Chess is not a original western Game, it came from eastern countries to Europe and America. Rob is wrong. en.wikipedia.org/wiki/Chess#History
@shubham.1172
@shubham.1172 2 жыл бұрын
The modern chess, that everyone plays today, is a western game. It's certainly built upon the eastern variants from Persia, India, etc. though.
@LewisCowles
@LewisCowles 2 жыл бұрын
this feels like the gofmt rule should apply here. Nobody cares if the history given is accurate, more that it's device helped the story.
@RajeshKumar-ob9zy
@RajeshKumar-ob9zy 2 жыл бұрын
'Chess' a western game??
@H2CO3Szifon
@H2CO3Szifon 7 жыл бұрын
12:03 "I know we think of C as a portable language in the old world, but it's really not" - so, so overwhelmingly WRONG. The fact that Mr Pike doesn't know his C standard and thus cannot write portable C code without making unportable assumptions about sizeof(int) is not the language's fault. It's perfectly possible to write portable C if one knows the language sufficiently well.
@MatthiasFasching
@MatthiasFasching 7 жыл бұрын
Árpád Goretity just take any library written for Unix or osx and try to compile it on Windows. or even better take a library for x86 and compile it for arm. most of the time it won't work. while in theory C is portable, in reality it's not.
@H2CO3Szifon
@H2CO3Szifon 7 жыл бұрын
You are conflating developers' unability to write portable C with C being non-portable. I have written several libraries that compile and behave identically on Unices and Windows, on ARM and on x86. It's all about whether you know your language. Non-portable code is not the fault of the language: it's the fault of those who make unjustified assumptions. Unfortunately, due to who knows what (maybe partly due to the way C and C++ are taught in university these days), most "C programmers" have no idea about the abstract model described by the C standard, can't related the C execution model to the platform and hardware they are targeting, and seem to think that once it works on their machine, it's declared victory. If you have a look at some code written by experienced C programmers, who program against the C Standard, not against random tutorials and cargo-cult-driven assumptions, you will find that much of their code is highly flexible and parametrized by e.g. the use of constants in limits.h, aware of possible differences in size and conversion rank between implementation-defined types such as int and unsigned char, etc., etc. All in all, the majority of "C programmers" writting crappy code doesn't mean that C isn't portable. It perfectly is portable, you just have to respect and use its true specification rather than self-proclaimed assumptions.
@MatthiasFasching
@MatthiasFasching 7 жыл бұрын
But it is not. ANSI C might be, but why e.g. do I have to use WinMain on windows and main on *nix systems? I know there are frameworks like Gtk and Qt that do that for me, but why do I need them? If C would be portable I wouldn't need those frameworks. What are preprocessor flags and defines often used for? To write different code based on different platforms my code will be compiled for, or even for different compilers that are not fully compatible to each other. In C data types can have way different sizes because they are just not defined in the standard. An int is "at least 16 bits" is not a good definition for a basic data type. And finally YOU might be able to write code that runs on all platforms, but the industry is not. The open source community often isn't as well. The transition from 32-bit to 64-bit has taken years even for programs that actually benefit from the architecture. Why? Because a lot of old code just wasn't programmed in a portable way and had to be completely rewritten or replaced.
@H2CO3Szifon
@H2CO3Szifon 7 жыл бұрын
The C Standard specifies that the entry point of a program is main. If something has an entry point called WinMain, that's not C by definition. However, that's not "on Windows". Don't confuse compiling on Windows by compiling with MSVC. By the way, you don't *have to* use WinMain even with MSVC, it's just the (stupid) default. By passing the "/subsystem:windows /ENTRY:mainCRTStartup" flags to the linker (possibly through a pragma comment in the source), it will behave as a standard toolchain in this regard. In addition, its C compiler conforms to C90. There are also other compilers that run on Windows (e.g. GCC does run there using MinGW or Cygwin). Furthermore, Windows is not the only other OS. If you write conforming C, it will run correctly on many Unix-like and non-Unix-like platforms (including some quite exotic ones, e.g. microcontrollers). "If C would be portable I wouldn't need those frameworks." - false, you need those frameworks *primarily* in order to do graphics. That is because the C Standard doesn't specify graphical capabilities for the C Standard Library. If you need anything that the C Standard Library doesn't do, you will either have to write it yourself or use a 3rd-party library. That's entirely orthogonal to portability. Of course, many libraries provide platform-independent abstractions over platform-specific libraries, but that is not related to the language. For example, macOS uses AppKit and Quartz, while Windows uses WinAPI, *regardless* of what language you are calling them from. If you are trying to do graphics on Windows and macOS without a cross-platform library, you will end up writing conditional code anyway, in every language, not just in C. Preprocessor-based configuration, in my experience, is also limited to "if Windows… else…". Yeah, Windows is a deviant and stupid environment, hostile to developers. But it's only one platform out of the who knows how many that C runs on. "In C data types can have way different sizes because they are just not defined in the standard." - I'm perfectly aware of that, yes. However, the designers of C were careful enough to include information about these facts in the standard library, as this design decision was deliberate, not accidental. It's a shame people don't use limits.h, float.h, and stddef.h. Those headers (among others) allow one to write truly portable code without making unsound assumptions about the underlying hardware. "And finally YOU might be able to write code that runs on all platforms, but the industry is not." - which is sad, but again, don't blame it on the language. Blame it on the careless/inexperienced/lazy/stupid/etc. programmers who write shitty code. You can write non-portable code in any language. You can write non-portable code in Go, or in Java, or in Haskell, or in Rust, you name it. E.g. if your coding style is replacing shell scripts with ${LANG} by just calling out to the shell and invoking system tools, then boom, your code just became non-portable. And this is only a trivial example. There are many more aspects to portability (filename separators, case sensitivity throughout the OS, whatever) that won't (because they can't) be covered by, or related to, the language. This doesn't "make the language non-portable".
@Mike-iz9kh
@Mike-iz9kh 4 жыл бұрын
It's not wrong. "Portable C" isn't a special kind of C marked as such in the source code in some fashion. It's not trivial to determine if a given program written in C is portable or not. In Go, it's *relatively* trivial: if the code imports Syscall or Cgo (or imports something which uses them), it's not portable; otherwise it should be portable.
Gopherfest 2017 | Upspin with Rob Pike
31:18
The Go Programming Language
Рет қаралды 47 М.
Rob Pike: What Golang Got Right & Wrong
29:23
ThePrimeTime
Рет қаралды 128 М.
Finger Heart - Fancy Refill (Inside Out Animation)
00:30
FASH
Рет қаралды 21 МЛН
No empty
00:35
Mamasoboliha
Рет қаралды 3,9 МЛН
Little girl's dream of a giant teddy bear is about to come true #shorts
00:32
Mama vs Son vs Daddy 😭🤣
00:13
DADDYSON SHOW
Рет қаралды 40 МЛН
dotGo 2015 - Rob Pike - Simplicity is Complicated
23:12
dotconferences
Рет қаралды 152 М.
Concurrency is not Parallelism by Rob Pike
31:22
gnbitcom
Рет қаралды 125 М.
Google I/O 2012 - Meet the Go Team
1:00:29
Google for Developers
Рет қаралды 89 М.
Richard Feynman: Can Machines Think?
18:27
Lex Clips
Рет қаралды 1,5 МЛН
Advice from the Top 1% of Software Engineers
10:21
Kevin Naughton Jr.
Рет қаралды 3,3 МЛН
Why I Use Golang In 2024
9:21
ThePrimeTime
Рет қаралды 275 М.
Открытое собеседование на Go-разработчика | Навыки
2:01:31
Эйч Навыки — менторская программа
Рет қаралды 34 М.
Lexical Scanning in Go - Rob Pike
51:18
GoogleFOSSSydney
Рет қаралды 140 М.
The Go Programming Language and Environment
41:54
UNSW Computing
Рет қаралды 21 М.
Samsung laughing on iPhone #techbyakram
0:12
Tech by Akram
Рет қаралды 4,4 МЛН
Xiaomi SU-7 Max 2024 - Самый быстрый мобильник
32:11
Клубный сервис
Рет қаралды 513 М.
Я купил первый в своей жизни VR! 🤯
1:00
Вэйми
Рет қаралды 3 МЛН
Telefonu Parçaladım!😱
0:16
Safak Novruz
Рет қаралды 27 МЛН