Login
You're viewing the functional.cafe public feed.
  • Jul 5, 2026, 7:35 AM

    I have noticed in my time as a developer that the best way to solve my problems is to go reading the source code of projects I am using. for instance, I went reading through the chromium source code recently to figure out how to enable its perfetto-based profiler. I was ultimately successful but it took like, 4-6 hours of reading unfamiliar code. this is a level of pathological curiosity which I don't think is present in a lot of people—but it also, like, betrays a lack of fear? I've noticed most programmers are scared of code that isn't their own. I'm not trying to toot-my-own-horn here. I just want to know why I'm so different than virtually every coworker I've ever had. an old manager told me once it was curiousity. maybe it's also empathy? if someone wrote something, it is better to read it and see their side-of-things. what I see happen most of the time instead is treating all software as a suspicious black box with no interest in what might be inside.

    💬 19🔄 29⭐ 0

Replies

  • Jul 5, 2026, 7:40 AM

    computer code is a language of communication. you are communicating to the computer, to future developers, and to yourself. source code encodes what the programmer believed mattered. if you ignore all that and trudge blindly forward without a care to the intent and domain knowledge hidden between the lines, that's incurious laziness.

    💬 7🔄 16⭐ 2
  • Jul 5, 2026, 7:54 AM

    this is the attitude that causes people to rely so much on LLMs, but it is also the attitude that causes people to decide that a codebase needs a complete re-write from scratch. it's sometimes hubris, but most of the time it's fear. if you can't cope with the scary thing by understanding it, the next best thing is to kill it

    💬 2🔄 1⭐ 0
  • Jul 5, 2026, 7:58 AM

    I get that sometimes old code is crufty and has a bad design. but really, is the edit-distance between a good design and a bad design so large that it necessitates deleting the whole thing and starting again? what makes you think you'll remember all the lessons that the original code had to learn the hard way?

    💬 3🔄 4⭐ 1
  • Jul 5, 2026, 8:00 AM

    nearly every single c++ build system has had a bug where, if a UTF-encoded file has a byte-order-mark, then any #include on the first line is ignored and so the generated dependency graph is incorrect. this is a lesson that is only ever learned the hard way.

    💬 2🔄 3⭐ 0
  • Jul 5, 2026, 8:02 AM

    though to be fair, this happens when your line reader doesn't strip the BOM from a file. but it's a useful example. it seems like it'd be fine to just load a file into memory and split it on newlines, but the world has always been more complicated than that.

    💬 1🔄 0⭐ 0
  • Jul 5, 2026, 8:35 AM

    @suricrasia this is very striking, i'm definitely very scared of code that isn't my own but i had never thought of it that way. i'll try to give it a chance next time

    💬 0🔄 0⭐ 2
  • Jul 5, 2026, 5:05 PM

    @suricrasia @rrika I wonder how many projects have been saved by a rote, possibly out-of-date copyright notice mandatorily included at the top of each file.

    💬 0🔄 0⭐ 0
  • 💬 0🔄 0⭐ 1
  • Jul 5, 2026, 1:57 PM

    @suricrasia usually my motivation for this is not the edit distance. it is that incrementally going from A to B would take several more times the effort of going from 0 to B. which is only possible after extensive study of A

    sometimes it works out, sometimes not. i'm not usually afraid of my own code and i rewrite that a lot too

    💬 1🔄 0⭐ 0
  • Jul 5, 2026, 2:03 PM

    @suricrasia a big part of what could make the effort so immense is that it's not just the old system having issues, it's the entire implicit chain of dependents having similar issues by virtue of being designed against that system. if you try to maintain full compatibility you're doomed to not make any real progress because people rarely want to put in any long term work besides complaining when something broke their use case personally. better not to try if the alternative is burnout

    💬 0🔄 0⭐ 0
  • Jul 5, 2026, 11:04 AM

    @suricrasia It's Chesterton's fence, right? Got to understand the intent and thinking that went into the old system before you've got the intellectual authority to radically alter it or build something better, or you'll just make the old mistakes again.

    💬 0🔄 0⭐ 0
  • 💬 3🔄 2⭐ 9
  • 💬 1🔄 0⭐ 0
  • 💬 0🔄 0⭐ 0
  • 💬 1🔄 0⭐ 0
  • 💬 1🔄 0⭐ 0
  • 💬 1🔄 0⭐ 0
  • 💬 1🔄 0⭐ 0
  • Jul 5, 2026, 9:41 PM
    @astrid @suricrasia Portland, mid-summer. End of July this year (I'm giving my Wireshark talk there this time!). One of my favorite conferences because it feels extremely egalitarian -- it feels like anyone you run into could be a speaker, and really avoids the big 'hero worship' problem that you get at Other Big Events. (Much more fun than Supercon, for instance.)
    💬 0🔄 0⭐ 0
  • 💬 0🔄 0⭐ 0
  • 💬 1🔄 0⭐ 2
  • 💬 1🔄 0⭐ 0
  • Jul 5, 2026, 8:56 AM

    @suricrasia it sure is, but calling it a language, to me, seems to imply that it's within reach of LLMs. Code sure is a language, but any programming language can describe the same algorithms (roughly) so what really matters for me is code organization in the mind of the developer, the scaffolding, it's the elaboration of a crafted structure implemented as code. The same idea can be realized in different ways, so an exact code organization is a piece of art for me. Sorry for the bad explanation.

    💬 2🔄 0⭐ 1
  • 💬 2🔄 0⭐ 1
  • 💬 1🔄 0⭐ 0
  • 💬 0🔄 0⭐ 0
  • Jul 5, 2026, 9:21 AM

    @f4grx no worries. I'd actually argue that, despite the name, LLMs aren't actually good at language, and the name is ultimately a misnomer. language is a means of communicating things to each other. you can communicate all sorts of things: the state of the world, mathematical facts, desires and moral imperatives, the list goes on.

    the current state-of-the-art in language model architecture (everything since GPT, basically) are optimized to reduce entropy. their objective function is not to say what is true, or what matters, but to say what is likely. lots of work has been done to try to make LLMs more "correct" by making "correctness" more likely—usually done by hitting the poor thing with hammers until the outputs follow some other desired distribution. but we shouldn't lose sight of the fact that nothing it says matters. it can only repeat what some human said some time ago, which got scraped and put in the training data set.

    when an LLM speaks, it is only saying likely things. there is an information-theoretical link between likeliness and information content. the most likely thing to say contains no information.

    I think this is very different from how a person uses language. when we say things, we're *trying* to communicate information. we have thoughts, ideas, observations, desires, needs, etc, all orbiting around our precious little lives. we *need* to communicate these things to survive and to thrive. what we speak reveals information. what LLMs speak repeats information.

    I'm not going to wade into the argument about whether or not a computer can have ideas and desires and needs—all I'll say is that it's probably not cost effective, so we're unlikely to see any such thing come out of a modern AI lab.

    💬 0🔄 1⭐ 0
  • 💬 1🔄 0⭐ 0
  • 💬 0🔄 0⭐ 0
  • Jul 5, 2026, 11:13 AM

    @suricrasia Sometimes incurious laziness is all that people have the time and energy for. Particularly if they're in a work environment that's pressuring them to ship, ship, ship.

    💬 1🔄 0⭐ 0
  • Jul 5, 2026, 11:14 AM

    @matt I wish we had worker solidarity. I try my best where I work to help my coworkers with their issues to help take the pressure off them.

    💬 0🔄 0⭐ 0
  • Jul 5, 2026, 11:34 AM
    @suricrasia my experience is that some codebases are too convoluted and overwhelming to understand
    and overwhelm is increased by a larger number of moving parts, dynamic dispatch, memory and thread safety bugs, archaic libraries like MFC, and reduced by call tree tracers and runtime observability tooling like Tracy
    and some projects (pipewire before i knew to try tracy, the qt quick runtime, the interaction between Dolphin and Vulkan drivers, famitracker is borderline) were simply beyond my ability to trace, and i don't know if i've improved
    💬 0🔄 0⭐ 0
  • Jul 5, 2026, 11:39 AM

    @nyanpasu64 I think recognizing that it's an emotional situation is a good way to look at it. these things *are* overwhelming! I can't deny that complicated and confusing code is scary. it's a bit like spelunking in a dungeon and getting beat up by monsters way above-level. what matters is the trying-and-failing-and-trying-again. allow yourself to stay curious even if it's scary. what I see a lot with other devs is an unwillingness to try at-all. sometimes it helps to do the spelunking as a team, so it is less scary because you've got other people along-side you.

    💬 2🔄 0⭐ 0
  • Jul 5, 2026, 11:41 AM

    @nyanpasu64 this makes me think: maybe following the git commit history of a specific contributor could be a strategy for understanding large codebases. you get to follow a real person's understanding of the codebase through their interactions with it. I've not tried this before, but it could work 🤔

    💬 0🔄 0⭐ 0
  • 💬 0🔄 0⭐ 0
  • Jul 5, 2026, 11:50 AM
    @suricrasia and i didn't specifically mean overwhelm as an emotional reaction, but more of a cognitive stack overflow/core dump failure where i don't know what's what and what's happening
    it might be influenced by emotional state and trigger negative emotions?
    💬 0🔄 0⭐ 0
  • Jul 5, 2026, 11:51 AM

    @nyanpasu64 in my own experience, the overwhelm is tied pretty intimately with my emotional state, possibly because the overwhelm is extremely uncomfortable or the other way around. it's hard to tell

    💬 0🔄 0⭐ 0
  • Jul 5, 2026, 6:37 PM

    @suricrasia This this this. I keep telling people "code is for humans". As a side effect, it can also tell a computer what to do, but that's not why we write code in the way we do. We write it so other humans (or our future selves) can read it.

    💬 0🔄 0⭐ 0
  • 💬 0🔄 0⭐ 0
  • 💬 1🔄 0⭐ 0
  • Jul 5, 2026, 7:42 AM

    @mdhughes I liken myself to a shit-shoveller sometimes. and who am I to say I'm above that work? civilization is built on the labour of sanitation workers. someone has to shovel the shit.

    💬 1🔄 0⭐ 0
  • 💬 0🔄 0⭐ 0
  • Jul 5, 2026, 7:43 AM
    @suricrasia its taken me a really long time to actually start reading other peoples code. i recognized that it was one of my weak points, and i realized it was a manifestation of learned helplessness. i have heard from other people it comes from impostor syndrome, they aren't good enough to contribute, so they feel like they can't solve their problems, so when they find a problem they don't try to dig into it. i started getting better about this when playing with systems that display their guts proudly and make a deliberate attempt to make such exercises accessible. it helps when the problems are presented in systems that i perceive to be of a scale i can handle. i wouldnt have ever had the thought to rip open a web browser because i have been trained to believe its beyond me. but i've been enjoying spending a lot of time this summer ripping into various parts of 9front, contributing some stuff; tearing into profanity (the xmpp client) to fix an issue in its build system; peeping the freedesktop and dbus specs for the first time ever, and gutting a relevant Perl lib to figure out how to do something that the lib did in fact implement but was undocumented. i've been a "programmer" for most of my life and yet realizing that yoi can just ... do things, its a hurdle i never surmounted until the conditions were appropriate to empower me to do so
    💬 0🔄 0⭐ 0
  • Jul 5, 2026, 7:47 AM

    @corpsedoll that's so awesome to hear! good on you. I have found it very liberating to do as you describe—just prying shit open and seeing what is inside. eventually you learn that most of these projects are not being maintained by hyper-genius computer gods, but regular people. even something as enormous and developed under seemingly rigorous standards like a web browser can have tonnes of silly bugs. they are not special.

    💬 0🔄 0⭐ 0
  • 💬 0🔄 0⭐ 0
  • 💬 0🔄 0⭐ 0
  • Jul 5, 2026, 9:58 AM

    @suricrasia for me, when it comes to just reading the source code of whatever related open source projects when investigating a problem, to try to figure it out once and for all, it is definitely something I started doing when I stopped being in situations where I had to do that in a time bound (especially somebody else's time bound)

    💬 1🔄 2⭐ 2
  • 💬 0🔄 0⭐ 2
  • Jul 5, 2026, 11:11 AM

    @suricrasia I began, a lot of years ago when all we had was other people's code and our own imagination, whether machine code, assembly, MS BASIC, FORTRAN, C etc

    So reading code or understanding a large codebase isn't scary to me, it's natural. It is work, hard work, but so is learning anything and it is learning and understanding that has always motivated me. Not curiosity so much, but growing.

    I think you are right that trying to avoid this hard work drives most people to #LLM. Their loss.

    💬 1🔄 3⭐ 3
  • Jul 5, 2026, 11:14 AM

    @suricrasia Even before LLMs there were to many ways to avoid the hard work, to avoid some of the learning. I used many myself chasing productivity, but none actually removed my brain from the process to the point I could pretend I didn't need to understand the code, so it is different using an #LLM

    💬 0🔄 2⭐ 1
  • Jul 5, 2026, 12:25 PM

    @suricrasia thank you for explicitly spelling out this observation!

    this is a change that i've also noticed i've _un_intentionally made in myself, and i think that the "social" side is key. maybe not "empathy" directly, but definitely the feeling that it is possible to be an "equal" contributor

    things which i think _discouraged_ doing this:
    - starting learning in the windows ecosystem, where "ISVs" and code drops are much more the norm
    - some of the "older" social aspects of the f/oss ecosystem (e.g. the reputation for flaming and disrespecting new users)

    things which i think encouraged the change:
    - learning/being-forced-to-learn more about how to actually "do" social behavior (probably an ND thing?)
    - repeatedly running into situations where i clearly seem to know more than others (the AI-LLM-search-pocalypse is "helping" here)
    - some projects with relatively lax thresholds for contributions (doesn't necessarily have to be "welcoming" in ways that were being pushed for some years ago, just "lax" is enough at least for myself)

    💬 0🔄 1⭐ 5
  • Jul 5, 2026, 2:00 PM

    @suricrasia I am positive that in my early days as a linux user, I saw a wiki that explained what it meant if someone told you "RTFM", and claimed that some people would go farther and say RTFS (read the freaking source) or in some circles, perhaps jokingly, RTFB (binary!) So I don't think you're alone in this. I would love to find that article or wiki again.

    My excuse for not RTFS is I was not trained as a programmer, and though I try to RTFM, i have to say that sometimes they are too much.

    💬 0🔄 1⭐ 1
  • Jul 5, 2026, 2:32 PM

    @suricrasia I feel very strongly about this. I am constantly looking at the source code of programs and libraries that I use. Often it's just to verify an undocumented assumption about how something works, other times it's to find what I suspect is a bug. It's so useful! I've seen so many hacky workarounds because people *won't* look under the hood.

    💬 1🔄 1⭐ 3
  • Jul 5, 2026, 2:36 PM

    @tedmielczarek @suricrasia I saw this as a teacher—many of the practical assignments for my course involved taking some "skeleton" code written by the faculty and augmenting it, and we told them that if they took a couple hours to read and understand the skeleton the rest of the assignment would be easier, and many of the students just *wouldn't*. It *seemed* like it was a time management thing for them, they believed they did not have time to do anything but begin cut-and-trying immediately.

    💬 1🔄 0⭐ 2
  • Jul 5, 2026, 2:39 PM

    @tedmielczarek @suricrasia I came away from that job with the opinion that everything would be better if we could just find some way to reduce the time pressure on everyone by about 50%. But the only direct ways to do that to college are to either make it take six years to get a BA or start cutting big chunks out of the curriculum...

    💬 0🔄 1⭐ 2
  • Jul 5, 2026, 3:41 PM

    @suricrasia I tend to wrong assumptiond on what code does, as I'm not your compiler. I don't care about code, I read and run the tests first.

    But "thanks" to Genie-in-an-AI-Bubble I have to change that preference, as its tests really suck. 🤭

    💬 0🔄 1⭐ 1
  • Jul 5, 2026, 4:18 PM

    @suricrasia in my experience i think the main reason is that its a lot of work to map out someone else's code in your mind but if im honest the main reason is when i was a kid i thought i was actually getting good at programming then i looked at some code written by a teacher of mine and had no idea what was going on and felt bad and i dont want that to happen again

    💬 0🔄 0⭐ 0
  • Kennyweizenspreu@chaos.social
    Jul 5, 2026, 4:46 PM

    @suricrasia Our working student and other engineers are sometimes weirded out that I straight up look at the code of open source tools when I want to know how they will behave.

    💬 0🔄 1⭐ 1
  • Jul 5, 2026, 6:43 PM

    @suricrasia It's also that some people don't think they're smart enough to read and understand someone else's code, so they never try and get stuck on problems that could be solved by reading the code.

    💬 0🔄 1⭐ 1
  • Jul 5, 2026, 6:56 PM

    @suricrasia 🤔 maybe I'm seeing something that isn't there in your post, but in trying to map it onto my experience what I see is less fear (though probably not none) and more pressure to deliver. Not saying you don't have that pressure as well, but I think a lot of devs might look at this and say "I can't justify [to my boss] half a day reading source code to fix my problem when 30 minutes of trial and error with stack overflow will get it done, even if I recognize why that's not quite as good."

    💬 0🔄 0⭐ 2