This afternoon I was listening to this interesting clip of a discussion between two famous coders talking about
(The full conversation is 5 hours long)
Lex Fridman: is a Russian-American computer
scientist and podcaster. He hosts the Lex Fridman
Podcast. He is arguably a contender for the title of "most
famous nerd-podcaster in the English speaking world". He is
a friend of Joe Rogan.
John Carmack: is a legendary programmer, co-founder of id Software, and lead programmer of many revolutionary video games including Wolfenstein 3D, Doom, Quake, and the Commander Keen series. He is also the founder of Armadillo Aerospace, and for many years the CTO of Oculus VR.
Here is a lightly edited transcript of the part where Lex
declares his love for asserts.
8:55 LEX
In my private code i have asserts
everywhere. [It's] just there's something
pleasant to me, pleasurable to me about
[this] sort of dictatorial rule of like
this should be true at this point.
In too many times
i've made mistakes
that shouldn't have been made
and i would assume
i wouldn't be the kind of person that
would make that mistake but i keep
making that mistake therefore and the
assert really catches me
uh really helps all the time so my..
I would say like 10 to 20 percent of my
private code just for personal use is
probably a certain
09:32 JOHN
and they're active
comments that's one of those things that
in theory they don't they don't make any
difference to the program and if it was
all operating the way you expected it
would be then i they will never fire but
even if you have it right and you wrote
the code right initially then
circumstances change the world outside
your program changes and in fact that's
that's one of the things where i'm kind
of fond in a lot of cases of static
array size declarations where i went
through this period where it's like okay
now we have general collection classes
we should just make everything variable
because i had this history of in the
early days you get Doom which had some
fixed limits on it then everybody
started making crazier and crazier
things and they kept bumping up the
different limits, this many lines this
many sectors
uh and it seemed like a good idea well
we should just make this completely
generic it can go kind of go up to
whatever and, there's cases where that's the right
thing to do
but it also the other aspect of the
world changing around you is it's good
to be informed when the world has
changed more than you thought it would
and if you've got a continuously growing
collection you're never going to find
out. You might have this quadratic
slowdown on something where you thought
oh i'm only ever going to have a handful
of these but something changes and
there's a new design style and all of a
sudden you've got 10 000 of them
so i kind of like in many cases
picking a number, some you know nice
round power of two number and setting it
up in there and having an assert saying:
it's like hey you hit the you hit this
limit you should probably think are the
choices that you've made around all of
this still relevant if somebody's using
10 times more than you thought they would
11:12 LEX
yeah this code was originally
written with this kind of world view
with this kind of set of constraints you
were you were thinking of the world in
this way
if something breaks that means you got
to rethink the initial stuff and that's
it's nice for it to afford for it to do
For some reason youtube has banned my respectful comment, even when I sorted "by newest first" I couldn't find. I tried reposting it and failed. :-(
For some reason youtube has banned my respectful comment, even when I sorted "by newest first" I couldn't find. I tried reposting it and failed. :-(
--
You received this message because you are subscribed to the Google Groups "Eiffel Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to eiffel-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/eiffel-users/2440f0f8-a0f6-4218-bad7-f60c68c6bb1cn%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "Eiffel Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to eiffel-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/eiffel-users/1fa5ac27-298b-934a-3389-d98e6dc2384b%40eiffel-loop.com.
On Oct 28, 2023, at 13:48, Ian Joyner <joyne...@gmail.com> wrote:
Indeed it seems that arbitrary links to sites they don’t know about are prohibited, but links to Quora are alright. It is probably Google not wanting anyone to use their platform for advertising without paying.
To view this discussion on the web visit https://groups.google.com/d/msgid/eiffel-users/BF7A8949-8D47-4D9F-A7C8-4E3924B4D3EE%40gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/eiffel-users/C4F8EFAE-D250-470B-9B47-17012D980FAF%40inf.ethz.ch.