Hacker News new | past | comments | ask | show | jobs | submit | spyke112's comments login

So in your opinion what's wrong with that code? To me it seems to be nicely documented and everything.

That it is - it better be.

It's an example of the kind of backwards compatibility WordPress needs to deal with the myriad of crazy content generated by people (and plugins!) over the years. Often this gets very chatty and very inefficient.

Besides backwards compatibility, this codebase grew like a jungle, with people just piling code on, not always with much forethought. Part of it's due to the limitations of PHP in the old days, and of course it's inherent with projects of this size, but there are varying degrees of messiness. WordPress is an example of a project that started out too messy and only became more messy over time.

Just to pile on: the WPDB class is another example of continued messiness. The first thing I do whenever I write a plugin, is to add a little database wrapper that just uses PHP PDO instead. Anything better than to deal with the hopeless, inefficient, inflexible mess that is WPDB. (To whoever wrote it: sorry mate!)

Edit: this guy said it better: https://news.ycombinator.com/item?id=41729827


Pretty anoying when you have more than 64G of memory though.


Yep that's true. It's impressively fast on my brand new 32GB HP Spectre though.

Side-rant: It's nuts how hard it is to find a good laptop that has 64G RAM, let alone "more than 64G" as you cite. I finally thought I found one in a Thinkpad X1 2-in-1, but then it just had terrible build quality, broken speakers (low rumbling sound, unfixable even after a repair and a replacement), badly working components (eg fingerprint reader) etc. I ended up returning it. The HP is a full 1000 euros cheaper (!), and it's better in every way (incl processor speed) except the smaller RAM. Oh how the mighty have fallen.


Hibernate is not just for laptops though. I have a workstation with 128G of memory, and it’s annoying that the file allocates the full 128G even though i may only be using like 32G. I mean SSD’s have become cheaper but still..


> Side-rant: It's nuts how hard it is to find a good laptop that has 64G RAM [...]

Like this one? Found it in ~30s

https://www.apple.com/shop/buy-mac/macbook-pro/16-inch-space...

> terrible build quality, broken speakers [...], badly working components [...]

There was a dark time in Apple's lineup (2015-2020) when they ran hot, the keyboard was widely considered terrible, battery time was unimpressive, and the lack of ports forced everyone to carry half a dozen dongles everywhere... These times are gone.

> The HP is a full 1000 euros cheaper

Oh true, Macbooks do seem expensive, until you consider actual value. If "an actual computer" is the primary tool of your trade, I'm 100% convinced it's good ROI to invest in your own comfort/productivity/peace of mind.


I'd buy a mac overnight if it had a touch screen and a proper OS


To date, I have always use 16 GB RAM on laptops, and "hard work" is done on a remote server via SSH.

This also alleviates the problem of sync'ing between multople laptops, as I use both a MacBook Air (lighter + better mobility: wake-up, WiFi, handling media) and a Lenovo X1 (Linux environment for software development and research).


Automattic: The company behind Wordpress. https://automattic.com/

37signals: The company behind Basecamp and Hey. With a founder being the Ruby on Rails creator. https://37signals.com/


I think you’re right, and even though it scares me a lot seeing my portfoilio down like this, I still try to see it as an opportunity to buy at a discount. It means I have to hold onto some more liquid funds, but i think it can turn out to be well worth it if you’re long term.


You can only buy at a discount if you are holding cash to start with....


Fun fact: there’s less caffeine in espresso than in filter coffee. [1]

[1] https://m.youtube.com/watch?v=etnMr8oUSDo


I thought espresso is something you order in quantity of 2 or 4, to be mixed into the regular coffee so it works. That's what I always do.


No one ever got fired for implementing soft delete.


Wow, had not read that before. It seems really offensive to ordinary programmers that just want to get stuff done. I also find my peak productivity when using the .NET ecosystem, which after all is good for business.


Building without VS is actually really easy with the dotnet cli, and msbuild was also doable. But now a days you get a long way just doing a: dotnet build


Even smaller nit: Isn't it basically two sides of the same coin in this context? I'm not sure what the intent was in the previous post, but it could just as well be from the perspective of someone living in a desirable country worried about a lot of immigration of less fortunate people.


My interpretation was that countries with growing cimate problems will start seeing more and more immigration, which is wrong. It'll see more and more emigration.


I’m not saying my insurer uses AI, but I recently had two dental claims processed entirely automatically by just providing invoices, and answering some questions online. This is in Denmark. Really nice experience.


That sounds fantastic. In the US I usually have to sit on hold for 20m, then explain what I see vs what I expect, have them check with their supervisor, get word that they they agree with me and will pass it back to underwriting, wait a few more days for underwriting to look at it, and then wait to make sure it actually went through.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: