HNHacker News
TopNewBestAskShowJobs

trebor

1,140 karma · joined September 15, 2009

Zend Certified Engineer (PHP 5.5) Polyglot Programmer Tea Enthusiast
submissionscomments
trebor··on I Am Boycotting YouTube's Like Button
You might be reading too much into this action.

I have long ignored the number of dislikes on a video, because you cannot discern if the dislike was genuine dislike or offense—not a cancel mob, or a troll. Is it possible to look at 2000 dislikes, and then somehow rule out "bad" or "invalid" dislikes? Completely innocent videos get thousands of dislikes, even if it's only a kitten walking across the screen.

So... the dislike button has already meant nothing. The data was skewed to begin with, in my opinion.

If you wish to dissent I suggest you do so in the comments. I read those, and I count the number of "likes" on the comments. That says something far stronger than an arbitrary "10000 / 2000" count.

trebor··on Apple MacBook Pro 14 and 16 Review: Return to Form
So then this is part of why it seems so fast, because the CPU is now approaching GPU memory bandwidths? Hmm, I really wonder what it'll look like in a year or so with the M2/M2Pro/M2MAX then.

Thanks for clarifying the extra memory controller, that's helpful too.

trebor··on Apple MacBook Pro 14 and 16 Review: Return to Form
So I've observed something from many of the tests/reviews posted so far, as well as Apple's specs: Apple claims 200GBps memory bandwidth for the M1 Pro, and 400GBps for the M1 Max. Some tests show the M1 Max saturating the memory bandwidth between 200 - 240 GBps rates.

Maybe someone who understands better than me can explain these observations:

1. DDR5 RAM is supposedly 36-38GBps bandwidth, DDR4 3200 is about 25.6GBps bandwidth. (Supposedly Alder Lake is the first chipset to support DDR5.) 2. Maybe the 200-400 GBps rate advertised is the entire bus bandwidth for the SoC? If this is actual memory bandwidth, then Apple increased that bus speed 5-15x! 3. Maybe Apple divided the RAM into additional banks with more lanes to increase the bandwidth?

I've been very irritated by the pricing, but if Apple figured out how to optimize the memory bandwidth this much then maybe it's worth the extra cost per GB.

Did I catch on to something majorly different here?

trebor··on MacBook Pro 14-inch and MacBook Pro 16-inch
I have used Apple products because if you calculate how long they last and the original cost, they cost less over a longer period of time.

Or at least they did. This loss in value is what I’m complaining about.

And this isn’t Apple’s forums, now is it?

trebor··on MacBook Pro 14-inch and MacBook Pro 16-inch
Eh, I’m still using a ~4 year old iMac. One of those that are painfully difficult to upgrade RAM. (And I keep repeatedly hitting the limit right now.) And I’m trying to keep it in sync with an even older MBP.

And you’re right: I don’t appreciate that Apple can deliver a week later. That’s not valuable when my machines still work. Not paying a premium for that.

I’ve been chafing at the upgrade cost of Apple laptops for more than a decade of using their products. The reason customers keep paying is for the reputation, and because of their short memories. The keyboard debacle, the screen issues, MacBook Air early gen laptops burning people’s laps… and those are just the laptop issues.

I’m upset because this is just another instance where Apple’s profit margin goes up substantially. Their markup is basically 4x higher than MSRP off the aftermarket RAM/SSD.

trebor··on MacBook Pro 14-inch and MacBook Pro 16-inch
Actually, they kept one of the oldest mistakes: overcharging. $400 to upgrade from 16GB RAM to 32GB. $200 to upgrade to 1TB SSD. These guys control the whole supply chain without middlemen like WD, Samsung, Crucial, etc — and they charge basically double what anyone else charges.

I'm not paying $2k for a laptop below what I need as a developer, when <$2k from literally anyone else will get what I need.

Apple is ridiculous. Inflation is murder right now, and they JACK the prices without delivering more value.

trebor··on Amazon copied products and rigged search results to promote its own brands
The difference between Walmart and Amazon, is that Amazon can study products it had no analog for. It could decide that it wants to enter a market, study sales patterns, force a supply chain change that let them spy on it, and launch their own products from that data.

The depth of data they have is much deeper. Walmart hasn't had 3rd party sellers for as long as Amazon, and that sort of historical sales data is priceless to retailers. They don't willingly share that.

trebor··on [dead]
I was so confused for about 15 seconds.

What caught your attention about this article?

trebor··on Web Frameworks Performance Comparison. Is Laravel really that Slow?
I don't use Docker. So, I can't, sorry.

EDIT: I did open an issue.

I would refer you to TechEmpower's benchmarks anyway: https://www.techempower.com/benchmarks/

Laravel is known to be slower than other frameworks. But it's still in the 50-200ms response time. I just deployed an app to an AWS medium node, and basic pages respond in 31ms. DB intensive pages run in 55ms.

^ this is a production app/environment.

trebor··on Web Frameworks Performance Comparison. Is Laravel really that Slow?
I use Laravel daily. With xdebug on, the request shows down easily 2-5x times. For a real performance benchmark turn that off, and Laravel is easily in the 50ms response time range.

It could also be that they don’t know how to optimize PHP settings. OPcache is amazing for performance, but by default caches only 1/5th the number of files in an app. I boost that to 20-40k just to ensure performance.

Edit:

Ouch, I just looked at the Dockerfile. No wonder it is slow! He misconfigured the Laravel tests. The built-in PHP server is known to have less than optimal performance, and he used NGINX as a reverse-forward proxy to it. Not cool. At least set it up with PHP-FPM + nginx to see how it really runs.

trebor··on Show HN: Monarch – The modern way to manage your money
my personal email address is robert at 3fishonawire dot com.
trebor··on Show HN: Monarch – The modern way to manage your money
I was eventually invited to the beta barely a month before the platform launched, so I don't really have a way to know how good/bad it is. This is what I experienced:

1) Bank account data sync was first class, after I got through the access/pairing process.

2) Credit card sync was terrible, laughable. As a CapitalOne CC user, first it wasn't supported at all. Then it was supported, but never worked. I need an app that unifies my spending between bank/credit, so that not working was a no-go.

3) Up front there was no estimated price or anything to set my expectations. I barely got the app working before the period ended, the beta app was yanked, and all functionality terminated. Then I saw the $10/mo pricetag and balked. What I had experienced wasn't worth $10 a month, let alone $90/year.

I don't remember having an opportunity to offer feedback when the beta ended.

On a money philosophy note, I do try to take the approach of budgeting where you have a full paycheck saved up. To me, it's the simplest way. You project based on past expenses, add margin where needed, and then allocate your spending "buckets" that way.

I understand that doing budgeting software right is hard. (Who here wouldn't, honestly?) But I'm still kind of skeptical that paying so much would really help me budget better.

Question: how does Monarch handle the once a year expense (sinking fund) type budgeting such as car insurance? Or even web hosting that I might pay on a 1, 2, or 3 year schedule?

trebor··on Confirmed! We Live in a Simulation
This is nothing more than an opinion piece and should be labeled as such.
trebor··on Ask HN: What are some “10x” software product innovations you have experienced?
PHP Inspections (EA Extended)[1] by Vladimir Reznichenko, a PHP language static analysis plugin for PHPStorm / JetBrains. I've coded in PHP for many years now, but there are many helpful reminders and checks that come standard with it. Some of the small performance quirks are game changers in long running processes, or intensive methods.

[1]: https://github.com/kalessil/phpinspectionsea

trebor··on Just-in-Time: The Next Generation of Tailwind CSS
The irony of tailwind is that it inverts the CSS paradigm. Instead of the cascade and selector tree being in CSS, where it's designed to be, tailwind puts the rule and cascade into the HTML. This may be nice, but is definitely suboptimal. Sure, specificity is no longer a problem—but then it never was as much of a problem as we (the designer/developer) made it into (by writing bad selectors).

So the work arounds used are:

* Tree shaking (only keep the selectors you use, not 10mb of CSS). * Use @extend with your own classes to composite a style (smarter, but you could have used properties or mixins too). * Use compile-time / run-time components that generate HTML with pre-selected classes to increase reusability. (Often followed by tree shaking.)

And I guess this paradigm inversion is helpful for those who struggle with CSS. It magics away the understanding of the cascade, selector specificity, z-index, etc. But this is the same weakness that Ruby on Rails gets criticized for: magic doesn't replace an understanding of the language.

I tried it too, in earnest, on a real project. I had to implement a simple admin dashboard that was basically just user management and export records. I figured it was suited to such a task. Learning Tailwind has such a high learning curve that I had to put it aside. I just didn't have the time to fit it into the project. I "use" it in a different project or two, one of them is a maintenance project we took over.

It feels like another "this is hard, so I'll make a framework to make it easier", and the framework outgrew the difficulty level of the original.

trebor··on Just-in-Time: The Next Generation of Tailwind CSS
I see the arguments back and forth. But this is just classes replacing styles, with a cascade that can't be controlled from HTML. I see no advantages over CSS, and a huge cognitive load for using Tailwind.

Adam Wathan is brilliant. But I don't see a practical advantage.

trebor··on One giant step: Moon race hots up
Just to preserve the inanity:

The original title of the article is "One giant step: Moon race hots up".

trebor··on Blinded by the light: Chicago startup’s technology saves your eyes – and energy
It could be the difference between emissive and ambient/reflective light. OLED is still emissive. It sounds like this is not 100% emissive, and leverages ambient/reflective light.
trebor··on Penguin Random House is buying Simon and Schuster. That’s bad for readers
I can’t stand Penguin’s ebook price fixing. Ebooks should not be almost the same price as a hard copy!

This is bad.

trebor··on Ask HN: How long does it take for chronic programmer back pain to get better?
Well, since then I got married and moved several states away. I haven't found a group of people to play with, or a park with a volleyball net yet. Life kinda got in the way of that.

It is worth it to be pain free.

I was pretty close to being pain free, but upping it would be harder due to work schedule and geographic distance. I had to travel 30-60 minutes just to be able to play, so it was easier on the weekends rather than the work days.

trebor··on Ask HN: How long does it take for chronic programmer back pain to get better?
I haven't had it "get better". Most the things I do make it bearable, and help to keep it from being a debilitating, acute pain that puts me out for a few days.

I do have to echo Yaa101 though: mobility exercise and stretching help, and my chiropractor helps counter some of the persistent pains. Stretches that target my legs and especially my hips are critical to helping the lower back relax and not hurt.

Ironically, the least pain I felt was when I played volleyball with some friends for 3-4 hours every weekend for a month or two.

trebor··on ACIDRain: Concurrency-Related Attacks on Database-Backed Web Applications (2017) [pdf]
I reported an issue about them using SHA1 for password storage years ago. I was insulted and attacked personally, called a spammer, blocked, etc. So I washed my hands of the project, when I was considering it for a project at work. (I looked at password security first...)

It's funny, but the dev's response has since "disappeared". Still some ignorance in the thread (thinking that multiple layers of SHA1 was safe) but hopefully history has vindicated my position at that time.

Never use OpenCart for anything. There's no point, when you'll be insulted and unsupported. And don't work with the owner/contributor: https://github.com/danielkerr

trebor··on Show HN: Stuff – An Alternative to Facebook Events
One thing unanswered by your site (prior to signing up anyway) is what the cost is, or how you make money. Also, your about page is just a copy of your homepage content.

Other than those 2 things, it looks very nice. :)

trebor··on [dead]
Hah, try again from next to nothing in your pocket and no celebrity status. Good job leveraging your celebrity upbringing and your parent's money, kid. Much applause for nothing.
trebor··on Microsoft is rebuilding its Edge browser on Chrome and bringing it to the Mac
As a professional web developer I don't know how I feel about this.

1. Edge is terrible, in my experience, and has strange edge-case bugs to work around on complicated sites. Also, the fixes don't fix what might break in IE.

2. Chromium can easily account for ~70% of all browser traffic. This helps, but also locks us into stagnation. It puts all Chromium-based browsers into the IE6-of-the-interwebs category.

I think I fall on the "this is bad" side, though. Edge wasn't much in the way of an innovator, so we aren't losing much. We're just losing as chromium browsers continue to gain market share and make competition difficult.

trebor··on PHP: The Future of the Zend Engine and the Zend Framework
And this is why I was concerned back when Zend was bought out. The Benevolent Dictator model can work, but when a new Dictator is appointed with different standards/objectives a project can suffer.

Hopefully PHP 7 continues to grow and mature even with the focus shifting away.

trebor··on Ask HN: Is the comparison of social media to drugs a hyperbolized one?
I don't think comparing social media to drug addiction is hyperbole. But, I do think that the conversation is often phrased poorly. I believe that our standards for social media addiction are too low.

The reasons we worry about drug addictions all apply to social media addictions. Worse, the social media platforms are (eventually, if not intentionally) structured in a way to exploit human psychology. If social media is: exploitative, addictive, intrusive, can cause physical/mental harm, can influence behavior negatively, and so on... then why shouldn't we talk about it like it's a drug?

I haven't seen my friends thrown out on the street because of social media. But...

...I've had them zone out of a serious conversation to check their social media.

...I've had to call a friend, because they wouldn't stop texting me while driving.

...I've watched friends with social media tear each other apart due to differing political opinions during the last election--although they were polite when in person.

...I've watched a couple sit on a bench facing away from each other, on their phones instead of talking to each other.

In the USA alone, 9 people die and >1,000 people are injured daily due to distracted driving.[1] The NHTSA reports that 3,450 deaths due to distracted driving in 2016 alone, and an estimated 391,000 were injured.[2] How many of these people, predominantly in their teens and early 20s, would be alive today? The government doesn't distinguish between texting and driving, and posting to social media and driving, but I'd love to know how prevalent the 2nd is.

And yet, social media use is still socially acceptable--even when inappropriate to the situation, or addiction/level of use.

[1]: https://www.cdc.gov/motorvehiclesafety/distracted_driving/in...

[2]: https://www.nhtsa.gov/risky-driving/distracted-driving

(Edit: formatting)

trebor··on Should we use [paywall] tag where applicable?
Yes, absolutely.
trebor··on Being frugal is for the rich
You forgot the housing/rental situation too. In my area, renting is 33% - 50% of _take home pay_ (after withholding taxes), without utilities or property tax.
trebor··on Homebrew 1.5.0
I understand that. However, if I had time to contribute to homebrew, I would have by now. I definitely do not have the time to maintain a tap and keep its packages up to date.

I'm glad y'all gave enough warning, but that doesn't make me any less frustrated by the decision.

← PreviousPage 2 of 21Next →