News for hackers. Stuff that matters.
Re:50 Algorithms Every Programmer Should Know (Second Edition) by sidcool on Wednesday January 03, 2024 @03:26AM (#38851903)
Again. Packt publication books are rarely good. Nothing against the author. But I have been time and again disappointed with their content quality. They go for quantity of books over even the basic quality.
Re:50 Algorithms Every Programmer Should Know (Second Edition) by cengizIO on Wednesday January 03, 2024 @04:02AM (#38852089)
Ditto. I was asked to write a Rust for Linux book back in 2020. Rust was (and still is) not actually driving any part of the Linux kernel so I kindly refused. They very clearly stated that they are only interested in being the first publisher with a book on this supposedly green field.
Re:50 Algorithms Every Programmer Should Know (Second Edition) by matsemann on Wednesday January 03, 2024 @08:38AM (#38853888)
I was asked to be a reviewer / editor for a book back in 2014, as a uni student having a somewhat viral github library on top of a framework, but really no deeper understanding of the framework the book was supposed to be about. And what I would get for that work was a short bio in the book, a copy of the finished book, and another book of my choice.

While I at the time was flattered and almost said yes, it also felt a bit weird knowing they didn't vet people more. What did that say about other books from them I had read?

Re:50 Algorithms Every Programmer Should Know (Second Edition) by wyclif on Wednesday January 03, 2024 @03:35AM (#38851950)
That's because Packt, unlike O'Reilly titles, are the shovelware of the programming textbook market. They have a pretty sorry business model. Lots of copypasta-style content slapped up into a book, then sending free copies of the book in exchange for reviews.
Re:50 Algorithms Every Programmer Should Know (Second Edition) by bradley13 on Wednesday January 03, 2024 @08:25AM (#38853765)
I wondered about that. I just looked at the table of contents, and there is far, far too much stuff in this book. Either it is 2000 pages long (it's not), or it is incredibly superficial.
Re:50 Algorithms Every Programmer Should Know (Second Edition) by zerkten on Wednesday January 03, 2024 @12:11PM (#38856565)
They will take on literally anyone as an author. Authorship gets you kudos in the increasingly large segment of programmer influencers.
Re:50 Algorithms Every Programmer Should Know (Second Edition) by rich_sasha on Wednesday January 03, 2024 @03:33AM (#38851941)
I have one or two Packt books that are very good. But overall agreed.

This seems like a strange mix of "hard" algorithms like sorting or binary search, and ML things like k-means clustering. Not sure who the intended audience is.

Re:50 Algorithms Every Programmer Should Know (Second Edition) by wyclif on Wednesday January 03, 2024 @03:36AM (#38851955)
The intended audience is the legions of people grinding Leetcode and going through our industry's ridiculous interviewing process.
Re:50 Algorithms Every Programmer Should Know (Second Edition) by usrbinbash on Wednesday January 03, 2024 @05:04AM (#38852377)
They would be better served with more focused books however.
Re:50 Algorithms Every Programmer Should Know (Second Edition) by mlrtime on Wednesday January 03, 2024 @08:08AM (#38853607)
Better served pre or post interview?

I'd argue they're better served doing leetcode (given finite time) to land the job, THEN reading this book to become better at their job.

Re:50 Algorithms Every Programmer Should Know (Second Edition) by rtaylorgarlock on Wednesday January 03, 2024 @11:54AM (#38856336)
I came here to specifically look for this comment, and... well, the rest says a lot about HN ;)
Re:50 Algorithms Every Programmer Should Know (Second Edition) by blowski on Wednesday January 03, 2024 @03:33AM (#38851937)
Indeed, they do very little work in selecting authors and editing the books, but they still take a big revenue cut. So they tend to attract lower-quality authors. There are a few exceptions but I agree with the general opinion of Packt.

They approached me a few years ago to write something, and Leanpub seemed a much more compelling offer.

Re:50 Algorithms Every Programmer Should Know (Second Edition) by 0RQ2kaTBBlQp on Wednesday January 03, 2024 @03:46AM (#38852002)
Any opinion on this specific book?
Re:50 Algorithms Every Programmer Should Know (Second Edition) by W0lf on Wednesday January 03, 2024 @04:38AM (#38852251)
Judging from the table of contents it seems that the first half of this book covers basic CS stuff (what is an algorithm, Big O notation, sorting and searching, data structures etc) and then discusses some machine learning basics before looking at the more recent deep learning architectures. I would not buy this book as there are plenty of (better) online resources and even better books IMHO such as the books from Bishop or Marsland.
Re:50 Algorithms Every Programmer Should Know (Second Edition) by lxgr on Wednesday January 03, 2024 @09:58AM (#38854794)
I just randomly picked a chapter discussing a topic I'm somewhat familiar with (the one on TLS handshakes), and I'm not impressed with what I'm seeing.

I don't think anybody that doesn't already know the basics of TLS would be able to make sense of it as presented there: There's an implicit assumption that an RSA public key is used for key establishment that's never mentioned, and the diagram (which is sloppily drawn too) doesn't help things either.

In the end, "a" secret key is used to encrypt something – but the core of TLS key establishment (again, only the RSA variants) is how that key is agreed upon using only the server's public key. That's arguably the entire algorithm here (the rest is protocol negotiation)!

Re:50 Algorithms Every Programmer Should Know (Second Edition) by flor1s on Wednesday January 03, 2024 @05:11AM (#38852420)
It's weird how mixed quality their books are, and how many overlapping books they have. From Packt I like Sebastian Raschka's books on Python Machine Learning. Other than that from time to time they do have some good "recipes", but hardly any of their books seems worth reading cover to cover.
Re:50 Algorithms Every Programmer Should Know (Second Edition) by zerkten on Wednesday January 03, 2024 @12:12PM (#38856584)
I think that's a case where a good author has chosen the publisher for some reason. They are good enough to be published by someone else but went with Packt possibly because it was an easy onboarding.
Re:50 Algorithms Every Programmer Should Know (Second Edition) by _the_inflator on Wednesday January 03, 2024 @05:13AM (#38852431)
Did you read the book? Or is this just some general judgment you are passing?

I own the book, and I enjoy it. Bought it for Xmas.

Re:50 Algorithms Every Programmer Should Know (Second Edition) by sidcool on Wednesday January 03, 2024 @06:32AM (#38852946)
I read it superficially. And it's okayish. Again, nothing against the author.
Re:50 Algorithms Every Programmer Should Know (Second Edition) by jmaker on Wednesday January 03, 2024 @05:19AM (#38852465)
Opposite to Manning, O’Reilly proper, and No Starch Press books, Packt’s aren’t even properly edited. Apress books are the worst in my experience, really zero editorial work noticeable, lots of grammatical and logical mistakes, many obvious code errors. There are a couple better Packt books, but I don’t even bother looking inside anymore.
Re:50 Algorithms Every Programmer Should Know (Second Edition) by wyclif on Wednesday January 03, 2024 @08:47AM (#38853980)
Just a thought: if I were a decision-maker at O'Reilly, there's no way I'd allow my brand to get diluted by Packt with these oreilly.com joint publications. Reputation is everything (or almost everything) in the publishing world, and it's why when you see O'Reilly's name on the spine, or Wiley, Addison-Wesley, Manning, or No Starch, you can expect a certain quality.
Re:50 Algorithms Every Programmer Should Know (Second Edition) by 3abiton on Wednesday January 03, 2024 @05:41AM (#38852597)
Any better recommendations?
Re:50 Algorithms Every Programmer Should Know (Second Edition) by harshreality on Wednesday January 03, 2024 @06:08AM (#38852798)
Algorithms?

- Algorithm Design Manual (3rd ed.) (by Skiena)

- Art of Computer Programming vols 1, 2, 3, 4A, 4B (editions 3,3,2,1,1) (collectively, "TAOCP") (by Knuth)

- Algorithms (by Erickson) [CC-BY-4.0]

- Algorithms (by Sedgewick & Wayne)

- Introduction to Algorithms (4th ed.) ("CLRS") (by Cormen et al.)

- How to Design Programs (by Felleisen et al.) - crossover between basic programming advice, functional programming, and some limited/basic algorithms coverage [CC-BY-NC-ND-4.0]

- Pearls of Functional Algorithm Design (by Bird)

- Purely Functional Data Structures (by Okasaki)

Publishers? Pragmatic Bookshelf, or O'Reilly (not oreilly.com-selling-Packt). Find what everyone is using as a learning/reference resource for a specific topic and use that, regardless of publisher; it's rarely if ever Packt.

Re:50 Algorithms Every Programmer Should Know (Second Edition) by tmtvl on Wednesday January 03, 2024 @07:02AM (#38853116)
I would also add James Aspnes' Notes on Data Structures and Programming Techniques (<https://cs.yale.edu/homes/aspnes/classes/223/notes.html>, CC BY-SA 4.0).
Re:50 Algorithms Every Programmer Should Know (Second Edition) by emmanueloga_ on Wednesday January 03, 2024 @10:16AM (#38855014)
From all these I feel like the best intro is Sedgewick & Wayne. CLRS is less solo-learner friendly, in my opinion. I skimmed Erickson and I liked it too.

In the "friendly+actually-useful" category, you missed "Open Data Structures" [1] ... I think it has one of the best descriptions of trees, including B-Trees which seem to be only superficially described in other books. The "Think" series is also pretty good and covers more than just algorithms [2].

TAOCP, Okasaki, Bird: these feel really academic and/or less useful for industry work. Reading HTDP wasn't as useful to me, at least: I feel like Felleisen's books describe what he "imagines" would be a good way to write software on a "real" job :-p (non-academic setting).

Skiena: I have mixed feelings about it... It seems to have gained popularity since Steve Yegge's blog post about Google interviews, but imho many concepts in that book are better explained elsewhere. I suppose the intended purpose of the book was to serve as a reference and an index to other resources. However, it often refers to sources that are 10 years old or older, academic implementations that could be challenging to apply in a real job setting, or things that are no longer available online afaict (e.g., LEDA), or hard to read papers, most of which lack a working implementation of the described concepts, etc. I wonder if anybody can really vouch for it or have a personal anecdote of the book being useful or enjoyable.

--

1: https://github.com/patmorin/ods

2: https://greenteapress.com/wp/

Re:50 Algorithms Every Programmer Should Know (Second Edition) by wyclif on Wednesday January 03, 2024 @10:20AM (#38855079)
What do you think are the most worthwhile Pragmatic Bookshelf titles? I just looked at their publications list and there's a lot more of them than I had thought before I checked.
Re:50 Algorithms Every Programmer Should Know (Second Edition) by emmanueloga_ on Wednesday January 03, 2024 @10:28AM (#38855189)
I have fond memories of the "Picaxe" book ... I have no idea if it is still the best way of learning ruby (I used the 2nd edition, for ruby 1.8 I think...).

Two other books that I like from them are "Language Implementation Patterns" and "Distributed Services with Go".

Re:50 Algorithms Every Programmer Should Know (Second Edition) by elric on Wednesday January 03, 2024 @06:38AM (#38852983)
For beginners, I can recommend Grokking Algorithms by Bhargava. Small book with lots of illustrations, which is good for building up an intuition of what's going on.
Re:50 Algorithms Every Programmer Should Know (Second Edition) by AlchemistCamp on Wednesday January 03, 2024 @06:53AM (#38853055)
I have never been disappointed with a single book in Manning’s “Grokking” category.

It’s a great way to build up an understanding of how something works from the ground up without worrying about the specific code implementation (or using the book as a guide to write one).

Re:50 Algorithms Every Programmer Should Know (Second Edition) by raincole on Wednesday January 03, 2024 @07:46AM (#38853420)
Packt feels like Udemy to me. I know there are some good stuff, but...
Re:50 Algorithms Every Programmer Should Know (Second Edition) by wyclif on Wednesday January 03, 2024 @08:49AM (#38853997)
It's a comparable situation, I tend to agree. I wouldn't make a 1:1 comparison but Packt is not known for publishing well-edited and written books.
Re:50 Algorithms Every Programmer Should Know (Second Edition) by aerhardt on Wednesday January 03, 2024 @10:59AM (#38855557)
Personally had an order of magnitude better experience with Udemy than Packt. Hard to find advanced content on Udemy but there’s a lot of beginner content that I’d consider rigorous for its level - can’t say the same about Packt.
Re:50 Algorithms Every Programmer Should Know (Second Edition) by ruiycombinator on Wednesday January 03, 2024 @10:00AM (#38854828)
second this, it seems that anyone can publish with them and the books most of the times are terrible, like reading clickbait articles on medium. Terrible.
Re:50 Algorithms Every Programmer Should Know (Second Edition) by bogomipz on Wednesday January 03, 2024 @11:54AM (#38856343)
I completely agree. Packt as a publisher is hot garbage. That's not to say every author is bad but but even when you get a quality author with good content, you will have horrific formatting and nonsense like pages with one sentence on them, illegible screenshots and there's often a complete absence of proof-reading or editing. The Packt game seems to be to simply flood search results hence quantity over quality.