HNHacker News
TopNewBestAskShowJobs

pocketsand

600 karma · joined September 27, 2021

submissionscomments
pocketsand··on PHP 8.2
8.2 is going to be a stopping point for a lot of projects that rely upon older code that has dynamic properties in classes. It's not a particularly hard fix but I imagine it people will quickly end up in fork/private repo hell as people throw explicit properties on old libraries and cross their fingers.
pocketsand··on Convert SimCity 2000 cities into Minecraft worlds
porntipsguzzardo
pocketsand··on Working with Tailwind CSS every day for 2 years
Those who make claims of the form "X language/framework is used by novices and the incompetent, almost exclusively" fall into two camps: 1) Inexperienced, insecure newbs, or 2) Assholes.
pocketsand··on Test scores are not irrelevant
There is research on this. I believe it was Thomas Espenshade, social scientist at Princeton, who had data on test prep access, modeled along with SES, etc. Test prep is worth about 40 points on the SAT. Not trivial, but not a game changer.

It's true that people who are otherwise well off are more likely to have test prep, and those people's test scores are often several standard deviations higher than low-income students from bad schools without test prep. But the counterfactual of (same person) +/- test prep = about 40 SAT points.

pocketsand··on Ask HN: Where do you host images for your blog or landing pages?
S3 has no minimum fee. For a small site they'll probably send you a 4 cent invoice each month. You can then throw cloudflare in front of the S3 box for free.

Alternatively, as others have said, you can just plop them on the server and call it a day.

pocketsand··on Google Adsense/Admob blocks you for life if you use it before you're 18
Even if Google were to change their policies to allow this youngster back on in five years, he'd be helpless to actually get Google to respond to a support request.
pocketsand··on Deployment and infrastructure for a bootstrapped webapp with 150k monthly visits
This seems to me to be a hefty bill for the traffic received. I run devops on a site with 1.5-2mm unique users a month, bursty traffic, and our monthly bill is just a couple hundred higher than his. We are overprovisioned.
pocketsand··on Chess is just poker now
The article misses how poker went through a similar transformation with solvers. Up until a few years ago, the best players used theory and principles to devise their own personal strategies. Those whose strategies were theoretically the strongest, and who executed them the best, rose to the top. Aggression always seemed to be crucial to the best strategies.

Nowadays, solvers have basically removed decisions from preflop play, but include randomization of certain moves (E.g., raise 1/3 of the time, call 50% of the time, fold 17% of the time). Then, on certain boards, you can tell the solver which sizes you want it to be available to it (e.g., 1/3 pot, 1/2 pot, 2/3 pot, full pot, 2x, etc.) and it will give you an unbeatable play style under those conditions. And so on. The game isn't solved and no human without real-time assistance would be able to play perfectly, but solvers have fundamentally changed how people prepare and play, and those who haven't studied the solutions get destroyed. An old guard has been left behind, and nerdy people who can work sims have risen to the top.

The article here explains how a similar thing has happened to chess. Like the article states, some have whined that this "removes creativity" from chess. Poker players have argued the same thing: what it takes to become the best is simply now different. You must study hard, and if you can execute what you study, you can be a great player without having a great "poker mind." In reality, the game is so complex that you still need a great poker mind to navigate the parts of the game tree which you haven't studied, just like in chess.

Undoubtedly this will change WHO decides to invest their time into becoming great chess players, and the personalities of the best players will be different. But it always struck me as sour grapes to whine that you can no longer be the best without studying the game more scientifically. Basically every game has been "moneyballed," including Chess, and people are leagues better at every game than they ever have been. We should welcome that.

pocketsand··on The OG Social Network: Other People’s Websites
Bring back Web Rings and Link Exchange.
pocketsand··on RStudio Is Becoming Posit
I used it at a college internship because it was the only dynamic language we were allowed to use to access an old Oracle database. At the time (almost 20 years ago), it seemed kind of luxurious compared to PHP.

I just looked it up and realized it's still around and still expensive.

pocketsand··on RStudio Is Becoming Posit
At first I thought they were renaming the IDE, which seemed like a clearly bad idea. Makes sense to rename the company I guess.

It tickles my brain every time I see it when I am reminded that the same guy who made ColdFusion and a diet app just decided to build a small company based upon a weird stats language 13 years ago. Good for him.

pocketsand··on Why is it so hard to give Google money?
I won an appeal for suspicious payment. But my account is still suspended because it thinks I have unpaid balances, which I do not. They've ignored this appeal for 3 weeks.
pocketsand··on Why is it so hard to give Google money?
I had basically this exact experience. I finished a no-profit side project and wanted to get some traffic to it so I started a small campaign. I was immediately suspended for suspicious payment.

After literally months of trying to convince them I was the owner of the account and the payment methods, I succeeded by finally sending pictures of credit cards on the accounts (not secure, I gave up) and also just deleting every campaign. I'm not sure which one had an effect -- it was just me throwing pasta against a wall.

I was relieved, BUT! my account is still suspended. Why? It says I have an unpaid balance.

https://ibb.co/NYgz95H

What do my balances read? 0.00

https://ibb.co/FWKxfVZ

I thought this would be an easy suspension to appeal. Well, I submitted it on July 7, and still no action. Here's there message of responding within 5 business days:

https://ibb.co/r2Sx6ht

I once tried to call the company, but they refused to talk to me because my account was suspended. There's no way out but to somehow convince them to unsuspend, and in my case, that didn't even work.

It's truly the worst customer experiences I've ever had.

pocketsand··on Play with TailwindCSS in the Browser
The overhead from processing class names is trivial.

Things like ads or heavy images actually slow the user experience. This type of thing isn't worth worrying about.

pocketsand··on Play with TailwindCSS in the Browser
It's really not just syntatic sugar for style.

It's a design system as well as a set of utility classes. Consider the difference between

<span style="color: #cccccc">Gray text</span> and <span class="text-gray-700">Gray text</span>

In the former, you can't just redefine what gray means. You've hard set it to a value you need to keep track of and keep consistent. On the right, you can configure what "700" means, switch between a cool gray or a blue gray, etc.

pocketsand··on Play with TailwindCSS in the Browser
It pushes you to componentize common UI elements. Feel bad to have long utility classes that look like <button class="bg-blue-700 border border-transparent hover:bg-blue-900 ring-2 ring-offset-2">. Change it to:

<submit-button>Submit</submit-button> using whatever tooling you prefer.

If you don't use this style, maybe you won't like it.

I've found it's a waste of time to extract classes for items that are not repeated. And putting utilities in components lightens your "master" CSS file and makes it a lot easier to work with CSS.

I've found that the "cascading" part of style sheets almost always breaks down in larger projects. Small components seem to avoid those breakdowns while allowing for reusability.

pocketsand··on The impact of digital media on children’s intelligence
The treatment here is regular social media use and video game playing. This not something where you can randomize people to treatment conditions, like you can with malaria.

Likewise, tell me -- what would be a good instrument for estimating a causal effect of video game playing? What measure would plausibly affect intelligence only through video game playing? Where is there a natural experiment that allows for an RD design where young people on one side of the discontinuity play video games and the others do not?

We get it -- you've taken a causal inference or econometrics course and want people to know it.

pocketsand··on The impact of digital media on children’s intelligence
If the noise in polygenic scores is random, all that will do is reduce correlations. Random measurement error always reduces the ability to observe relationships. To be clear, I do not know enough about polygenic scores to judge one way or another how the noise "works" vis-a-vis the entire analysis.

The Porsche comment is snide, but actually exposes a similar error in your critique. Sure, a tax return-derived measure of income would be superior to measuring if someone owned a luxury car. But, if you found yourself in a situation where all you had to go on for measuring economic wellbeing was (luxury) car ownership, your analysis is likely to improve by including it rather than excluding it, unless the measure itself had serious other issues with its accuracy.

Likewise, for SES, it is an imperfect measure, but it is the best we have for measuring social position in a concise way.

Having worked in research and universities for a while, the type of critique presented in this post is one you often see of new graduate students. They are able to tear down problems with research very well, but tend to overlook whether the study itself was still informative, or whether the opposite finding is likely to be true.

For example, suppose we wanted to know if video games or watching videos on the internet are making you dumber. A study like this may not convince you it's making you smarter, but it presents decent evidence they're not making you dumber. You can point out how the measures aren't perfect, but that is far from saying the opposite is true or the observed trends are completely spurious.

pocketsand··on I'm tired of Google's business products
I do not believe the payment was ever attempted. If I remember right, I approved a max spend budget, put in payment details, and then the account was immediately suspended before anything could be charged as the ad campaign never ran.
pocketsand··on I'm tired of Google's business products
To their credit, the automated system told me I was banned and couldn't talk to anyone until I got unbanned, so I never got anyone on the phone.
pocketsand··on I'm tired of Google's business products
I created a small ad campaign to advertise a side project. The projects makes no money, has no plan for monetization, does not use passwords. The only personal data it collects is an email address.

I bought $50 worth of ads using my credit card. My account was immediately suspended for suspicious payment. I appealed, noting the card was mine, and I bought the ads. The appeal was rejected.

I have occasionally tried to resubmit the appeal, but it says "please wait 3-5 business days before submitting a new appeal." I wait more than that and get the same message.

I've called Google to try to talk to them. However, once it asks for my contact information, it tells me that they cannot talk to me because my account is suspended. It's a circular nightmare.

I currently do not needs ads so it's not a hardship. But it is extremely frustrating.

EDIT: One irony is that it is the same card I use to pay for my other Google services, linked through the same payment backend. They have no issue charging that card for my other services. But for Ads, it's suspicious. Who knows.

pocketsand··on What Is Unraid?
Virtualization on TrueNAS/BSD leaves a lot to be desired and in my experience just wasn't nearly as mature as on Linux with KVM/qemu, etc. Likewise, BSD jails seemed to me to be really well thought out, but when it came to getting them to work for me to run little apps/services like I could with Docker, or even a full-fat VM, I quickly gave up because the juice didn't seem worth the squeeze.

Whereas on Proxmox it's a cinch for me to run like 20 different VMs/linux containers that I use for various projects/jobs/etc. Huge ecosystem and really easy to take advantage of massive community of linux/Debian users/Docker/etc.

TrueNAS Scale, which is based on Debian, I think reflects an acknowledgement of the pain points of working around BSD for the types of services a lot of people want to use their NAS for. I don't think I'm ready to switch yet, but maybe in a year or two it will be a great solution.

pocketsand··on What Is Unraid?
Agree. I went to Proxmox and virtualize TrueNAS. Best of both worlds IMO and not at all any more difficult to manage.
pocketsand··on How to work with me
There's a deep irony in this document. Explaining it, I fear, would be way too mean to the author.
pocketsand··on From Node to Ruby on Rails
What Rails has done with HotWire and the Laravel community has done with Livewire is the sweet spot for me. Everything is in one place, very little doing things twice -- like validation -- in the front-end and back-end, one router, HTML over the wire, a single auth layer, cost-effective and straightforward infrastructure (db, cache, queue, load balancer, app), and well-defined idioms/conventions to do just about everything. Never looking back.
← PreviousPage 3 of 3