Live data from Hacker News

99 Bottles of OOP now available in Python

sandimetz.com

11–20 of 93 posts

Re: 99 Bottles of OOP now available in Python

#11
post #7

[flagged]

Can you actually give an example? I believe in mechanical empathy. I think developers should - win performance is a concern - think about how their code ends up on the CPU, what ends up on the heap, how caches are used, and so on. But for most Python developers, and Ruby developers, it's more important, in more use cases, to have clear and readable code that is easily maintainable. I've met Sandi, I've gone through h…

[deleted]

Re: 99 Bottles of OOP now available in Python

#12
post #7

[flagged]

Can you actually give an example? I believe in mechanical empathy. I think developers should - win performance is a concern - think about how their code ends up on the CPU, what ends up on the heap, how caches are used, and so on. But for most Python developers, and Ruby developers, it's more important, in more use cases, to have clear and readable code that is easily maintainable. I've met Sandi, I've gone through h…

Look at the fastest linting/build tools/runtimes for JavaScript. They are mostly not written in JavaScript, because JavaScript is slow and no amount of hotspot profiling/optimization will fix that. This is also why Python's core data types for dictionaries and so on are not implemented in Python.

You can also look at any microbenchmark between pure Python and a native language of your choice, even one that uses GC like OCaml or Go, and unless the Python code has been written so that it spends all its time calling C code the way you sometimes can with regex-heavy code, Python will generally lose by a varying margin. These micro inefficiencies multiply at every level hundreds of times over to create needlessly slow, inefficient applications.

The truth is I can link benchmarks, case studies of app rewrites from Ruby to Go or something comparable, measurements about the results of using NIFs in Erlang/Elixir, etc. all day long but you'll ignore all of them.

Re: 99 Bottles of OOP now available in Python

#14
post #13

Is the book DRM free? Sorry to be this paranoid, but you cannot be sure today.

You could check?

The site says, "Available in digital form only (epub, kepub, mobi, pdf). Includes separate books for JavaScript, PHP, Python, and Ruby languages, and beer and milk beverages."

There is no mention of needing special software to read them, so I think it's safe to guess that there is no DRM. And it's sold directly by the author. Publishers are generally the ones who insist on DRM. It would not surprise me if there was watermarking, but that is not DRM.

Re: 99 Bottles of OOP now available in Python

#15
post #14
post #13

Is the book DRM free? Sorry to be this paranoid, but you cannot be sure today.

You could check? The site says, "Available in digital form only (epub, kepub, mobi, pdf). Includes separate books for JavaScript, PHP, Python, and Ruby languages, and beer and milk beverages." There is no mention of needing special software to read them, so I think it's safe to guess that there is no DRM. And it's sold directly by the author. Publishers are generally the ones who insist on DRM. It would not surprise…

I checked it but found only the same pages as you. This is the reason I asked.

Re: 99 Bottles of OOP now available in Python

#16
Maybe this is misguided, but it feels a bit to me (comparing the ruby and js versions for example) that this is using the same code examples in both, and neither are really typical of the sorts of code people in either language community would actually write?
Post reply on HN