Readit News logoReadit News
nedbat commented on Truchet Tiles   en.wikipedia.org/wiki/Tru... · Posted by u/downboots
nedbat · a month ago
Using multi-level Carlson Truchet tiles for half-toning images: https://nedbatchelder.com/blog/202208/truchet_images.html
nedbat commented on How to make people feel stupid (2008)   nedbatchelder.com/blog/20... · Posted by u/susam
kgwxd · 5 months ago
> The ones who have no idea what XYZ is will wonder if they’ll look stupid for raising their hand.

They should feel stupid, for obvious reasons. I assume there's a "not" missing from that statement but, just like the next example,

> The ones who have a vague idea will wonder if they need to know more, or if they can skate by.

I'm here to learn. If fully understanding XYZ was a prerequisite for getting anything out of the talk, then either the presenter failed to communicate that ahead of time (their fault) or, I chose to ignore, or completely missed, the prereq (my fault, I'm objectively stupid, presenter is not to blame). Which leads to the next example.

> Half the ones who are confident that they know what XYZ is actually have it a little wrong, but won’t realize that they have a different conception than the speaker intended.

If the presenter asked without proceeding to clarify their POV on XYZ, how their specific POV on XYZ is crucial to the rest of the presentation, and how it might differ a bit from the common POV, why did they ask the question? Presenter is the stupid.

> In less time than it took to poll and embarrass the audience, you’ve:

> Complimented your listeners about already knowing what XYZ is.

The ones who have no idea what XYZ is now feel extra stupid.

> Defined XYZ, so those that didn’t know now do.

A single sentence never fully explained anything. The no ideaers are wondering what it means to mumble, what a frabbitz is, and why it might be important to optimize the process in systems with more than three quuxers (which they only assume has nothing to do with how it sounds).

> Explained your view of XYZ, so that even those that did know it now have your take on it as a common starting point for the rest of the talk.

In an IT crowd, it's guaranteed there's something about that brief description they highly object to, but they likely won't say anything.

nedbat · 5 months ago
I can't tell if you are agreeing with my post or disagreeing...
nedbat commented on Bytecode VMs in Surprising Places   dubroy.com/blog/bytecode-... · Posted by u/todsacerdoti
nedbat · a year ago
Python pickles are bytecode programs, but different bytecode than the Python bytecode compiled from .py files. https://docs.python.org/3/library/pickletools.html#pickletoo...
nedbat commented on Google lays off its Python team   social.coop/@Yhg1s/112332... · Posted by u/compiler-guy
nedbat · a year ago
It does not surprise me that people shitpost calling an expert "moronic" without any counter arguments.
nedbat commented on Google lays off its Python team   social.coop/@Yhg1s/112332... · Posted by u/compiler-guy
vinni2 · a year ago
Just curious what does a Python team do? It doesn’t make sense to dedicate a team to a programming language.
nedbat · a year ago
Classic: ask what the team does, and before getting an answer, decide that it doesn't make sense.
nedbat commented on The Best Essay   paulgraham.com/best.html... · Posted by u/tosh
herdst · a year ago
Paul’s blog looking a bit different!
nedbat · a year ago
I don't know if it looks different, or what it looks different from. To me, it looks like it was designed in 1999 (which it may have been).
nedbat commented on You (probably) don't need to learn C   nedbatchelder.com/blog/20... · Posted by u/nalgeon
worksonmine · 2 years ago
> The point of the post is that abstractions are inevitable and you choose your own level. And: you can be a great programmer without knowing C.

Absolutely, but I get the feeling you're taking the common statement "learning C can be a great experience" and bastardazing it into a straw-man "you NEED to learn C" that you then argue against.

I just think it's an obvious statement and it reads like you're being nagged by people to learn, but you don't want to learn C and defend your position. For me nothing has taught me so much about development than a weekend hacking in C and stepping through the code with Valgrind or reading the binary output did. And I recommend all my peers do the same, most don't and that's okay. But I think it's a shame that people in general don't seem to care that much outside of work.

I did enjoy the read though, even if clickbaity.

nedbat · 2 years ago
I was reacting to someone literally saying, "Everyone should learn C because it teaches you how computers really work." In my experience it's no an uncommon recommendation. Yes, people also say, "learning C can be a great experience," and I agree.
nedbat commented on You (probably) don't need to learn C   nedbatchelder.com/blog/20... · Posted by u/nalgeon
alexhutcheson · 2 years ago
Honestly I find Python's value vs. reference semantics fairly confusing, and it's not always obvious whether an operation is going to make a copy or modify an existing instance of an object. Good API design and docstrings mitigate this, but it's one more source of complexity to think about. I run into this much less frequently in C++ code - it's normally pretty clear from parameter and return types whether I'm dealing with a copy or a reference.

This might just be because C++ broke my brain into assuming:

   Object foo = other_object;
is a copy operation, and taking a reference or pointer would require extra characters (e.g. copy by default). Most other languages are the opposite: assignment creates a reference by default, and making a copy would require extra characters (e.g. .copy() in Python or .clone() in Java). That's my biggest mental adjustment when moving back-and-forth between C++ and Python.

nedbat · 2 years ago
Python itself only has one kind of argument passing (neither by-value or classic C++ by-reference), and nothing is copied. Library functions could make confusing choices, it's true.
nedbat commented on You (probably) don't need to learn C   nedbatchelder.com/blog/20... · Posted by u/nalgeon
donkeybeer · 2 years ago
What language would? Even if you directly write assembly the microcode or pipelining layers are not visible to you, its abstracted in hardware itself. In that sense I think accusing C of not being hardware friendly because these aspects are not exposed to it is nonsense. These are not exposed to even assembly language forget any other higher level language. Regarding parallel programming and GPUs I think a better case could be made for alternative abstractions.
nedbat · 2 years ago
My point wasn't that C wasn't hardware friendly. My point was that it doesn't teach you "how a computer really works". It teaches you a lower-level abstraction than Python does, but it's still an abstraction, and there's a ton of mechanisms at work that you can't see.
nedbat commented on You (probably) don't need to learn C   nedbatchelder.com/blog/20... · Posted by u/nalgeon
vacuity · 2 years ago
Python presents an abstraction, but underneath, it's bound by the address space just as C is.
nedbat · 2 years ago
Yes, but why do I need to know that as a Python programmer? What mistakes might I make if I don't know about it?

u/nedbat

KarmaCake day334February 1, 2013View Original