HNHacker News
TopNewBestAskShowJobs

cjpearson

1,107 karma · joined January 8, 2021

submissionscomments
cjpearson··on MDN Blog
Maybe it can be done well, but the Stack Overflow experience wasn't great. It's just filled with junk paid promotion articles and I avoid it completely now. Maybe the blog is useful for marketing their products, but IMO it's definitely damaged their brand value.

Donations is a bit of a cop-out answer I know, but it can work for reference works. I wouldn't want Wikipedia to fund itself with sponsored articles.

cjpearson··on Bicycle
Sliding seats are used for competitive rowing. For example: https://en.wikipedia.org/wiki/Rowing_(sport)#Technique
cjpearson··on Everything I, an Italian, thought I knew about Italian food is wrong
Was pizza popular in America prior to WW2? I recently read an article [0] from 1949 that was written as if most Americans wouldn't be familiar with it. Maybe it was a regional thing and those soldiers were from an immigrant neighborhood?

[0] https://www.theatlantic.com/magazine/archive/1949/10/pizza/6...

cjpearson··on Babel is used by millions, so why are we running out of money? (2021)
It's also worth noting that the founder of Rome left the Babel project a long time ago and was not involved in this 2021 fundraising post.
cjpearson··on Writing JavaScript without a build system
Regarding Tailwind 3, there's no longer a pre-generated CSS option, but a build process isn't strictly necessary. You can load the library through a CDN URL [0] and the classes will be generated in the browser. It's not recommended for production use though, so if Tailwind 2 has everything you need it's probably the better choice.

[0] https://tailwindcss.com/docs/installation/play-cdn

cjpearson··on Frankfurt rail work damaged fibre, causes global Lufthansa check-in system fault
In English one would use 'by' for a deadline and 'until' when the state or action continues up to a point. e.g. "I must finish the task by the end of the day" or "I'll be working on the task until the end of the day". In German 'bis' is used for both cases.
cjpearson··on New Hampshire on the cusp of enshrining software freedom into law
You can read their methodology in the bill text [0]. In short, there are 271 applications they found that must be brought into compliance and estimated the timeline and staffing costs based on similar recently completed projects.

[0] https://gencourt.state.nh.us/lsr_search/billText.aspx?id=188...

cjpearson··on New Hampshire on the cusp of enshrining software freedom into law
That price is going to scare away most voters. $1000 per citizen for something that few people care about.

You could argue that the cost estimation is a worst-case scenario. It assumes that 90% of the affected software will be made compliant, but it's also possible that they just use proprietary exception for most applications. It would cost much less in that case, but it would do so by abandoning the purpose of the bill.

The bill died in a unanimous vote last time around, and it's not going to anywhere close to success this time either. However some other parts of the 2022 bill (considering libre solutions for new applications, limiting NDAs and non-competes, allow audits of software used in criminal cases) are more feasible and might stand a chance if they're also split into new bills.

cjpearson··on Gofumpt: A stricter gofmt
It depends on the formatter you're using. If it's strict about line width you'll end up with a lot of noise in the diffs. Prettier will re-format single-line lists that goes one character over the threshold and then re-condense them once it's able to fit under that threshold. It's not uncommon for a change that adds three classes to three different elements to become a 20 line diff.
cjpearson··on Rewrite, refactor, or reinvent? Lessons from 6 software rewrite stories (2019)
I doubt training was the issue. There are many languages that developers can work with, but would rather not. They might have a personal dislike of the language, be persuaded by industry fashions, or worry that they'll be harming their future career prospects.
cjpearson··on Pipe Operator (|>) For JavaScript
There have been efforts, but none have been totally successful.

In the past you had Java applets, Silverlight and Flash. Compile-to-JS languages depend on rather than replace JavaScript, but it's about as close as you can get without being a browser developer. Chrome did originally intend Dart to be supported natively in the browser but eventually gave up that effort. Perhaps now Chrome is dominant to push it through without getting buy-in from Apple and Mozilla, but I doubt they have any interest now that there's WebAssembly.

Like it or not, WebAssembly is seen as the answer for additional languages in the browser. And for most developers JavaScript functions well enough as either a development language or compilation target.

cjpearson··on Dinner for one: A little-known British comedy famous in Germany
The NDR version can be watched on their site [0], but it might be region locked. The only notable differences I saw in the Swiss version is they removed the intro and the "Must I?" before taking the admiral's drink.

[0] https://www.ndr.de/fernsehen/Dinner-for-One-Das-Original,din...

cjpearson··on Advent of Code 2022 is nigh
It's like a game of HORSE for basketball players or a home run derby for baseball players. A game that's related to your profession and might be fun, but a terrible way to measure ability in the actual job.
cjpearson··on New Hampshire set to pilot voting machines that use software everyone can see
The title is misleading. New Hampshire uses paper ballots and ballot counting machines. Hand-counting is used in some cases such as recounts. They are trialing new ballot counting machines, not electronic voting machines.
cjpearson··on Manifest V3, webRequest, and ad blockers
Out of curiosity, does Google really have that many engineers working on Chromium? According to Wikipedia, Mozilla has ~750 employees and only a subset of those are working on Firefox.
cjpearson··on Your work matters – Build your schedule accordingly
He is an academic, but in Deep Work he argues that excessive working hours are not necessary for success in the field, using himself and a few other academics as examples of successful academics who've achieved both a work-life balance and tenure.

I assume that the weekdays which Elizabeth spends caring for her children are not spent working at the same time. She has an unusual schedule, but I doubt she works excessive hours. A big part of Deep Work is quality over quantity.

cjpearson··on What’s the difference between Derek Jeter and preregistration?
I'd say Joe DiMaggio is similar. He's an all-time great, but there are many better players with less renown. You could make a case for Pete Rose too.

In a way Jeter's career is a cross of those two. His triple slash is similar to Rose, and he's also among the hits and plate appearance leaders. And like DiMaggio, he was the face of a Yankees dynasty.

cjpearson··on Software component names should be whimsical and cryptic
When it comes to rockets, whimsical names seem to be much more popular. Most of them are named after mythical figures with SLS being a notable exception.
cjpearson··on Congress.gov API
It's a common misconception that increasing transparency reduces the power of lobbyists, when it actually does the opposite. [0] In short, the average voter doesn't care enough to find out who added a specific line to a bill, but lobbyists care a lot and they use the additional access to monitor and influence legislators. Legislator accountability is increased with more transparency, but they become more accountable to lobbyists than to their constituents.

There needs to be a balance. A democracy that operates completely in the dark isn't much of a democracy, but Congress currently has the problem off too much rather than too little transparency.

[0] https://congressionalresearch.org/TransparencyProblem.html

cjpearson··on IRS will look into setting up a free e-filing system
My anecdotal experience in Germany is that it's well worth the hour or so to fill out a tax return with some common deductions. The downside of optional filing is that many people will lose money to laziness or ignorance.
cjpearson··on Iran makes first import order using cryptocurrency – report
The Islamic State is ISIS. Iran calls itself an Islamic Republic.
cjpearson··on Iran makes first import order using cryptocurrency – report
> why are these sanctions here in the first place?

Initially they were a response to the Iran Hostage Crisis. Since the Clinton administration, the reasons have been Iran's nuclear program and support for groups such as Hezbollah and Hamas.

> It’s apparently ok for the US to have as many nukes as it sees fit, but not ok for others to have the same.

This isn't just a US goal. 190 countries have agreed to the Non-Proliferation Treaty.

cjpearson··on Ask HN: What's the next big thing that few people are talking about?
Tom Nichols wrote about this recently in The Atlantic. [0] It's not just the general public, but also the next generation of military and national security leadership that has grown comfortable ignoring nuclear weapons and takes deterrence for granted.

[0] https://www.theatlantic.com/magazine/archive/2022/07/us-nucl...

cjpearson··on How Kubernetes Broke Git
I didn't really understand the first part. Isn't a monorepo how you get atomicity across sub-projects? If that was a problem for kubernetes, wouldn't a single commit that affected multiple repositories have the same issue?

The merge issues seem like they would be solved by your code-hosting platform. (GitLab has Code Owners and Merge Trains and I imagine GitHub has something similar) To me, these features are something you'd implement in your centralized tool rather than git which has to support a decentralized workflow. Perhaps someone clever could think up a decentralized authorization system for git, but is it worth it when almost every project has a centralized source-of-truth repo?

cjpearson··on StackOverflow Is Having Issues
There are dozens of spam sites that do.
cjpearson··on According to Atlanta Fed we're already in a recession
The "textbook definition" may be two consecutive quarters of negative GDP growth, but it's worth noting that NBER does not use that formula and instead looks at a variety of factors when determining periods of recession.

https://www.nber.org/business-cycle-dating-procedure-frequen...

cjpearson··on The New York Times buys Wordle
That's also how it works today, right? You can look at the front page for free, but you need a subscription if you want to read full articles.
cjpearson··on What NPM should do to stop a new colors attack
Say you depend on foo@1.0.0, and some of your dependencies themselves depend on foo@1.0.1, foo@1.0.2, and foo@1.03. When you install you'd get 4 copies of nearly the exact same library. On the other hand, if everyone of those packages used a tilde or caret, they'd all depend on foo@1.0.3.

That's the benefit, but it's not worth it in my opinion. Pin your dependencies and use a package-lock.json for transitive dependencies.

cjpearson··on What NPM should do to stop a new colors attack
Yes, if you put exact versions in your package.json and do not prefix them with a caret or tilde, npm will install the exact version. A package-lock.json version will also pin your transitive dependencies to a specific version. Unfortunately, the default behavior of npm is to add a caret to the version number which npm interprets as this version or any greater minor/patch release.
cjpearson··on Germany shuts down half of its remaining nuclear plants
Nuclear is pretty unpopular in Germany, especially since Fukushima. In 2012 73% of Germans were in favor of the phase-out compared to 16% opposed. I don't think it's fair to characterize that as people being scared though. Some certainly may be, but others have different reasons.

I think it's unfortunate given the climate, energy and geopolitical situation, but the Government is doing what the people clearly want it to do.

← PreviousPage 5 of 6Next →