Bjarne Stroustrup: Recognizing Beautiful Code

  Рет қаралды 33,730

Lex Fridman

Lex Fridman

Күн бұрын

Пікірлер: 51
@lexfridman
@lexfridman 5 жыл бұрын
This is a clip from a conversation with Bjarne Stroustrup from Nov 2019. New full episodes are released once or twice a week and 1-2 new clips or a new non-podcast video is released on all other days. If you enjoy it, subscribe, comment, and share. You can watch the full conversation here: kzbin.info/www/bejne/q4Xbg3lrlsxlbaM (more links below) Podcast full episodes playlist: kzbin.info/aero/PLrAXtmErZgOdP_8GztsuKi9nrraNbKKp4 Podcasts clips playlist: kzbin.info/aero/PLrAXtmErZgOeciFP3CBCIEElOJeitOr41 Podcast website: lexfridman.com/ai Podcast on Apple Podcasts (iTunes): apple.co/2lwqZIr Podcast on Spotify: spoti.fi/2nEwCF8 Podcast RSS: lexfridman.com/category/ai/feed/
@schrodingerscat3912
@schrodingerscat3912 5 жыл бұрын
you're the man!
@andersbodin1551
@andersbodin1551 5 жыл бұрын
The only clean code out there is an empty main method
@abhijithowal9025
@abhijithowal9025 5 жыл бұрын
this comment is really underrated.!!
@leonlysak4927
@leonlysak4927 4 жыл бұрын
Lmao
@potatoxel7800
@potatoxel7800 4 жыл бұрын
but what if i want that empty main method to be empty but in a cleaner way?
@johnshaw6702
@johnshaw6702 3 жыл бұрын
Interesting. The only issue is in C++ you could actually write a program that does something and still have an empty main function. Remember that static global objects are created before main() is called.
@jarlobs8535
@jarlobs8535 3 жыл бұрын
That wouldn't be clean either because an empty main should be simplified to do nothing, not even a nop instruction, thus having it is not clean code.
@jflow5601
@jflow5601 5 жыл бұрын
In my experience, the most elegant code is obvious for the human to understand. I have seen terrible code that is poorly documented and overly complicated. The complexity of this code could burden an organization for years.
@oldschoolwreak
@oldschoolwreak 5 жыл бұрын
@@Viriyascybin Your emoji's are certainly are a mark of high IQ.
@rkj11107
@rkj11107 5 жыл бұрын
Ive seen terrible code with outstanding documentation. Ive seen beautiful code without any documentation... for a reason.
@frozentomatoman3422
@frozentomatoman3422 3 жыл бұрын
Umm I would make a "sweep" function and call it often in main.
@daya455
@daya455 4 жыл бұрын
I like Bob martin’s version of this answer, “You know you’re looking at clean code, when you feel that the code was written by someone who cares”.
@BookWormsOriginal
@BookWormsOriginal 5 жыл бұрын
By far the most romantic discussion about "BEAUTIFUL" code! "You know it when you see it"- couldn't have said it any better!
@Wulfcry
@Wulfcry 5 жыл бұрын
4:30 “It’s easier to recognize ugly code then beautiful code ,cause beautiful code is innovative “ True that. To me doom engine and mostly quake code 🤤are an example of that. Not to forget the demo scene of yesteryears simple eloquently constructed.
@badnoodlez
@badnoodlez Жыл бұрын
Carmack is one of the good guys. The dev teams on those games were something else.
@aperezNWO
@aperezNWO 4 жыл бұрын
I wish reach the age of 70 with such energy and professional respect.
@paulfarquharson5248
@paulfarquharson5248 5 жыл бұрын
Move 37 springs to mind
@dimitriosdesmos4699
@dimitriosdesmos4699 4 жыл бұрын
not inspiration not gift....its love for what you do. Only do something you love and only that...then you will get your inspiration and gift. !
@bagzhansadvakassov1093
@bagzhansadvakassov1093 4 жыл бұрын
The complexity of code goes up with number of lines, I believe someone already made this observation, but I think it goes something like 2^n, n number of lines.
@mavhunter8753
@mavhunter8753 3 жыл бұрын
That’s not necessarily true. That’s a good excuse to write bad code though...
@bagzhansadvakassov1093
@bagzhansadvakassov1093 3 жыл бұрын
@@mavhunter8753 yes. Complexity of code goes up as a number of connections between objects starts to go up. OOP solves it somewhat.
@zachleonard8830
@zachleonard8830 4 жыл бұрын
The Way of the Carpenter
@MrAnandml
@MrAnandml 4 жыл бұрын
After watching video in normal speed you can see it in 1.25x to see a more happier and dynamic version of Bajourne Strastroupe...
@harikyt
@harikyt Жыл бұрын
The youtube ad i got before this video said one of the people in this video talks against israel now that israel and palastine are at war and it said to stand with israel
@grail9558
@grail9558 4 жыл бұрын
Given enough time any code maintained by different people over many years becomes messy.
@adelinaquijano1083
@adelinaquijano1083 Жыл бұрын
A g u c
@frozentomatoman3422
@frozentomatoman3422 3 жыл бұрын
The fact that the interviewer is not excited, pisses me off
@sofiagrafa6711
@sofiagrafa6711 5 жыл бұрын
!!!!!!
@ilyasaroui7745
@ilyasaroui7745 5 жыл бұрын
Dont discuss code beauty with the. C++ creator
@ilyasaroui7745
@ilyasaroui7745 5 жыл бұрын
@mint CHILL do like its syntaxe?
@nicolareiman9687
@nicolareiman9687 5 жыл бұрын
@@Viriyascybin because the syntax of c++ is like hebrew letters.
@outsider1st
@outsider1st 5 жыл бұрын
@@ilyasaroui7745 Code beauty != Syntax. C++ has it's flaws - it's not the most elegant language I've seen, but especially in it's new standards it has really improved on syntax and added many new cool features. You simply do not explain code beauty in terms of syntax, it's much more than that..
@grekiki
@grekiki 4 жыл бұрын
@Noor Wachid?
@mavhunter8753
@mavhunter8753 3 жыл бұрын
That’s what I’m saying! Lol
@thomasanderson1416
@thomasanderson1416 5 жыл бұрын
The maker of the most abominable language talking about code beauty. Take a hike Bjarne.
@pwndepot367
@pwndepot367 4 жыл бұрын
Sounds like you don’t know how to code well
@imrich333
@imrich333 4 жыл бұрын
Code beauty is not about syntax. I am sorry but you are dumb.
@arkaseth
@arkaseth 4 жыл бұрын
@@beastman1927 That was brutal xD
@thomasanderson1416
@thomasanderson1416 4 жыл бұрын
@@beastman1927 Oh yeah, does that include Brian Kernigan and Niklaus Wirth who stated that C++ is the worst thing that happened to programming languages? Do you even know who these guys are?
@thomasanderson1416
@thomasanderson1416 4 жыл бұрын
@@pwndepot367 Oh yeah, does that include Brian Kernigan and Niklaus Wirth who stated that C++ is the worst thing that happened to programming languages
Noodles Eating Challenge, So Magical! So Much Fun#Funnyfamily #Partygames #Funny
00:33
How To Choose Mac N Cheese Date Night.. 🧀
00:58
Jojo Sim
Рет қаралды 114 МЛН
Don't underestimate anyone
00:47
奇軒Tricking
Рет қаралды 29 МЛН
Interviewing the creator of C++, Bjarne Stroustrup
14:45
mCoding
Рет қаралды 34 М.
Python vs Swift | Chris Lattner and Lex Fridman
11:16
Lex Clips
Рет қаралды 156 М.
Dr Gabor Mate answers question about October 7th during conference
12:53
Middle East Eye
Рет қаралды 602 М.
Why Didn't He Get the Job? Let's Find Out! // Code Review
27:25
The Cherno
Рет қаралды 152 М.
Bjarne Stroustrup: Learn More than One Programming Language
6:57
Lex Fridman
Рет қаралды 142 М.
Why You Shouldn't Nest Your Code
8:30
CodeAesthetic
Рет қаралды 2,8 МЛН
how NASA writes space-proof code
6:03
Low Level
Рет қаралды 2,4 МЛН
Noodles Eating Challenge, So Magical! So Much Fun#Funnyfamily #Partygames #Funny
00:33