Live data from Hacker News

A Programmer's Introduction to Mathematics

jeremykun.com

171–180 of 223 posts

Re: A Programmer's Introduction to Mathematics

#171
post #82

To the author: You might want to extend the preview PDF to include a few pages from later chapters. The issue's that the [current preview]( https://pimbook.org/pdf/pim_first_pages.pdf ) only gets into polynomials over its 45 pages. But since polynomials are typically taught to students during early childhood, it seems like most readers are liable to just skim that content, being more interested in the topics discusse…

I think the choice to showcase the polynomial chapter is deliberate. The topic is likely to be familiar to many, but he's using it as an example to explain why mathematicians do things they way they do. I've often expressed the same frustrations that he describes when trying to explain to programmers why mathematics can't be replaced with a rigid programming language.

Re: A Programmer's Introduction to Mathematics

#172

Earlier quoted context omitted.

There are many easy ways to rephrase OP's comment into one that isn't so direct and denigrating. The only thing "apparent" here is that OP has trouble with empathy.

What's the problem, too much empathy? I mean, if the opposite of empathy is appathy, then I don't see that in the OP.

The opposite of empathy is antipathy.

Re: A Programmer's Introduction to Mathematics

#173
I think the author is confused. His book is not for programmers his book is for "programmers lacking computer science education" as computer science is a branch of applied match. If somebody says they have a computer science degree and they don't know math, I would doubt their degree.

Re: A Programmer's Introduction to Mathematics

#174
post #139

I have a genuine question which might sound dumb but I really do wonder. How do you actually read math, physics and programming books? Reading them the same way as you'd read a novel doesn't seem right. I try to go chapter after chapter and make notes but I often get bored because I don't see the usage in my real life coding. Maybe I'm not working on problems that are challenging enough? Also after few chapters it of…

How do you actually read math, physics and programming books?

Reading them the same way as you'd read a novel doesn't seem right.

Your intuition is correct. When people read a novel, they often "forget" that they're reading words and picture the action. The optimal reading speed for that is 200 to 250 WPM. You can't read mathematical papers, where everything has precise definitions, at that speed and expect a high rate of comprehension if everything's new to you. It takes a lot of time.

Do you really finish such books?

Yes, if I'm interested in the subject matter. It takes a lot of time, though.

Re: A Programmer's Introduction to Mathematics

#175
post #139

I have a genuine question which might sound dumb but I really do wonder. How do you actually read math, physics and programming books? Reading them the same way as you'd read a novel doesn't seem right. I try to go chapter after chapter and make notes but I often get bored because I don't see the usage in my real life coding. Maybe I'm not working on problems that are challenging enough? Also after few chapters it of…

For each section, start from the exercises, then work backwards towards the material necessary to understand and solve the exercises.

If there are no exercises, make some up (do the proofs yourself, try to come up with unsolved scenarios and solve them, etc)

For me it helped immensely when I had a fun side project that demanded new knowledge. For example, my chat bot side project was a fun way to learn natural language processing:

* its an "unsolved" problem (for various definitions of "solved"). I didn't expect to "solve" it, but every time I'd try something new there was the excitement that maybe, just maybe, this might be "it" (i.e. an immense improvement)

* the responses it produces can be really funny. If its online, others can have fun with it too.

* you can try lots of strategies and see the immediate effect. Not only do you learn about the math and technique by implementing it, but you get an immediate "feel" about the kind of effects it has.

Trying to over-generalize, it helps to have some "element" that you consider valuable, fun or rewarding to drive the whole process.

Re: A Programmer's Introduction to Mathematics

#177
post #157
post #154

Earlier quoted context omitted.

"...study actively. Don't just read it: fight it! Ask your own questions, look for your own examples, discover your own proofs. Is the hypothesis necessary? Is the converse true? What happens in the classical special case? What about the degenerate cases? Where does the proof use the hypothesis?...it is not a good idea to open a book on page 1 and read it, working all the problems in order, till you come to the last…

There's a classical book titled "How to Read a Book" by Mortimer Adler. It's about reading texts for information, arguments, etc., but not pleasure. The heart of it is to not read the book linearly from cover to cover. Ideally you'd do multiple passes, often non-linearly, at different speeds, skipping different parts, concentrating on different parts. You'd start with parts that are known to have most information, li…

Holding my copy of this excellent book, I'm reminded of Mortimer & Van Doren's comment on 'How to Read Science and Mathematics'

249.2 "Until approximately the end of the nineteenth century, the major scientific books were written for a lay audience. Their authors--men like Galileo, and Newton, and Darwin--were not averse to being read by specialists in their fields; indeed, they wanted to reach such readers. But there was as yet no institutionalized specialization in those days, days which Albert Einstein called 'the happy childhood of science'. Intelligent and well-read persons were expected to read scientific books as well as history and philosophy; there were no hard and fast distinctions, no boundaries that could not be crossed. There was also none of the disregard for the general or lay reader that is manifest in contemporary scientific writing. Most modern scientists do not care what lay readers think, and so they do not even try to reach them.

Today, science tends to be written by experts for experts. A serious communication on a scientific subject assumes so much specialized knowledge on the part of the reader that it usually cannot be read at all by anyone not learned in the field. There are obvious advantages to this approach, not least that it serves to advance science more quickly. Experts talking to each other about their expertise can arrive very quickly at the frontiers of it--they can see the problems at once and begin to try to solve them. But the cost is equally obvious. You--the ordinary intelligent reader whom we are addressing in this book--are left quite out of the picture."

The authors apologize for not being able to offer specific advise to guide the reader of technical books, as those texts are on subjects of which they do not possess the necessary expertise. They suggest the reader fall back on 'scientific popularizations'.

I've found this to be a very useful strategy. Beginning with a readable book, well researched book. Then systematically read the book's bibliography, recursively.

The one problem I ran into, specifically in mathematics, was it seems some notations are not universal. Furthermore, some authors take no pains to define their symbols at any point in their texts. (I quite understand a paper would assume a specific audience, but for a published book I think it's just rude.)

For this I needed to rely on communities such as math.stackexchange.com.

Good luck. The journey is part of the reward.

Re: A Programmer's Introduction to Mathematics

#178
post #53

Earlier quoted context omitted.

Is this a feature or a bug? If it takes you two weeks to apply creative solutions and it take me one week to apply a “rote” solution, what is the benefit?

The idea is that it might take you longer to learn, but when you are applying it in the real world and hit real world problems that are messy, you’ll be a lot faster

That’s the idea. In practice does it actually work out like that?

Re: A Programmer's Introduction to Mathematics

#179
post #139

I have a genuine question which might sound dumb but I really do wonder. How do you actually read math, physics and programming books? Reading them the same way as you'd read a novel doesn't seem right. I try to go chapter after chapter and make notes but I often get bored because I don't see the usage in my real life coding. Maybe I'm not working on problems that are challenging enough? Also after few chapters it of…

Here's Alain Connes, Fields medalist, on how a mathematician works and should read a book [0]: "To understand any subject, above all, a mathematician SHOULD NOT pick up a book and read it. It is the worst error! No, a mathematician needs to look in a book, and to read it backwards. Then, he sees the statement of a theorem. And, well, he goes for a walk. And, above all, he does not look at the book. He says, "How the…

This approach seems very similar to working backwards when trying figure out the behavior of a function that calls other functions or libraries and when trying to a debug an issue and following the stack trace to determine the root cause of the issue. Not a perfect analogy but I find it helpful to think about it that way.

Re: A Programmer's Introduction to Mathematics

#180
post #133
post #91

Earlier quoted context omitted.

> The most annoying things about math books is the lack of solutions. To me the most annoying thing about math books is hand-waving, lack of rigor, and unexplained notation. At least in programming, everything is formal and I can figure out the entire problem by looking at the source.

Sentences like "It similarly follows that..." , "It is left as an exercise to the reader to show that..." , "Clearly, ..." always leave me dumbfounded.

You may enjoy this blog post, "I no longer understand my PhD dissertation".

A sample quote:

> This was not the casual read I had in mind. The notation was alien. I even had to scour the examiner’s report to direct me to the key results. And while I could have sworn this was a well-written thesis, I repeatedly found myself bamboozled by my own prompts. “The result now follows easily…” may have made sense back when, but now the author-turned-confused reader can profess that it most certainly does not follow easily, at least in his own mind.

Post reply on HN