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/
@schrodingerscat39125 жыл бұрын
you're the man!
@andersbodin15515 жыл бұрын
The only clean code out there is an empty main method
@abhijithowal90255 жыл бұрын
this comment is really underrated.!!
@leonlysak49274 жыл бұрын
Lmao
@potatoxel78004 жыл бұрын
but what if i want that empty main method to be empty but in a cleaner way?
@johnshaw67023 жыл бұрын
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.
@jarlobs85353 жыл бұрын
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.
@jflow56015 жыл бұрын
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.
@oldschoolwreak5 жыл бұрын
@@Viriyascybin Your emoji's are certainly are a mark of high IQ.
@rkj111075 жыл бұрын
Ive seen terrible code with outstanding documentation. Ive seen beautiful code without any documentation... for a reason.
@frozentomatoman34223 жыл бұрын
Umm I would make a "sweep" function and call it often in main.
@daya4554 жыл бұрын
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”.
@BookWormsOriginal5 жыл бұрын
By far the most romantic discussion about "BEAUTIFUL" code! "You know it when you see it"- couldn't have said it any better!
@Wulfcry5 жыл бұрын
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 Жыл бұрын
Carmack is one of the good guys. The dev teams on those games were something else.
@aperezNWO4 жыл бұрын
I wish reach the age of 70 with such energy and professional respect.
@paulfarquharson52485 жыл бұрын
Move 37 springs to mind
@dimitriosdesmos46994 жыл бұрын
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. !
@bagzhansadvakassov10934 жыл бұрын
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.
@mavhunter87533 жыл бұрын
That’s not necessarily true. That’s a good excuse to write bad code though...
@bagzhansadvakassov10933 жыл бұрын
@@mavhunter8753 yes. Complexity of code goes up as a number of connections between objects starts to go up. OOP solves it somewhat.
@zachleonard88304 жыл бұрын
The Way of the Carpenter
@MrAnandml4 жыл бұрын
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 Жыл бұрын
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
@grail95584 жыл бұрын
Given enough time any code maintained by different people over many years becomes messy.
@adelinaquijano1083 Жыл бұрын
A g u c
@frozentomatoman34223 жыл бұрын
The fact that the interviewer is not excited, pisses me off
@sofiagrafa67115 жыл бұрын
!!!!!!
@ilyasaroui77455 жыл бұрын
Dont discuss code beauty with the. C++ creator
@ilyasaroui77455 жыл бұрын
@mint CHILL do like its syntaxe?
@nicolareiman96875 жыл бұрын
@@Viriyascybin because the syntax of c++ is like hebrew letters.
@outsider1st5 жыл бұрын
@@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..
@grekiki4 жыл бұрын
@Noor Wachid?
@mavhunter87533 жыл бұрын
That’s what I’m saying! Lol
@thomasanderson14165 жыл бұрын
The maker of the most abominable language talking about code beauty. Take a hike Bjarne.
@pwndepot3674 жыл бұрын
Sounds like you don’t know how to code well
@imrich3334 жыл бұрын
Code beauty is not about syntax. I am sorry but you are dumb.
@arkaseth4 жыл бұрын
@@beastman1927 That was brutal xD
@thomasanderson14164 жыл бұрын
@@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?
@thomasanderson14164 жыл бұрын
@@pwndepot367 Oh yeah, does that include Brian Kernigan and Niklaus Wirth who stated that C++ is the worst thing that happened to programming languages