Better HN
topnewbestaskshowjobs
Log inSign up

ericb

7,747 karma · joined Sep 15, 2007 (19y ago) · 2,391 submissions

Submissions

comment 2y ago · link · parent

What model do you use?

comment 2y ago · link · parent

> Yet you take no stock of the same operations the US already runs in other parts of the world. What a petty short term victory you're aiming for.

Not at all. When the incentive becomes not to do it, then it will stop.

> Yet you take no stock of the same operations the US already runs in other parts of the world.

Nowhere did I advocate for doing so, or continuing to do so. In general, the US has followed a reckless know-it-all policy of regime change that has backfired many more times than it has ever worked, and is overall a net negative even for the US.

This is different--it is a strategic public deterrent. It isn't directly goal oriented, only deterrence oriented, and any country will have a simple way to stop it at any time--stop putting disinfo into the US infosphere. And in fact, this works better if the US stops doing these things for any other purpose.

comment 2y ago · link · parent

Agreed. From a game theory perspective, this needs to be tit-for-tat.

Implement a fund dedicated to toppling hostile regimes and creating chaos for them via disinfo in their own countries.

Then, measure disinfo operations in the US, and allocate the funds to retaliation in-kind as exactly as possible.

comment 2y ago · link · parent

> helping foreigners abuse and exploit our immigration laws.

Well, that's a woefully short-sighted and zero sum way of thinking.

"an impressive 44.8% of Fortune 500 companies in 2023, equating to 224 companies, were founded by immigrants or their children."

So, it is more accurate to say that the US is abusing and exploiting other countries by stealing their job-creators and thus, jobs.

Source:

https://www.americanimmigrationcouncil.org/news/new-report-r....

comment 2y ago · link · parent

https://dev.37signals.com/page-refreshes-with-morphing-demo/

I'm not being snarky. What apps must be SPA's and why? I'm personally questioning where that line really should be.

comment 2y ago · link · parent

Agreed! The pitch is great. Deliver twice as much by writing half as many apps as your competitors to deliver the same features. Let your competitors write a server app and a client app, and keep them in sync, while you. just. don't.

comment 2y ago · link · parent

If you're working at a scale where you accumulate a ton of data quickly and don't know what questions you want to ask, it gives you nigh-infinite scalability without nigh-infinite maintenance, so you can ask questions later.

The other use-case is akin to giving a really big house to a hoarder.

comment 2y ago · link · parent

At what point is snide, petulant, childish, vengeful or blackmail ever a good way to do business?

Reading this, the last thing I'd want to do is ever be in business with this person.

The WP Engine side seems much more reasonable to me. There are approaches where he could present the "low contributions" grievance, and even take some action on it, without seeming awful, but this isn't it. Even this "gesture," which could have been almost magnanimous, comes off as still awful because of the childish screed.

comment 2y ago · link · parent

> Competing on hosting price or on maintenance/support contracts against Amazon generally is going to favor the smaller party because of the AWS tax.

This is exactly backwards, because of how corporate procurement works.

Large companies--the ones with money--have a whole process around working with new vendors. It can take months to setup. A security review, audit, and legal are likely to be involved.

Or, they all already have a contract with amazon and can start using the Amazon service providing X immediately.

From CTO to audit, risk, accounting, and compliance, everyone's life is easier if they use one vendor for everything, rather than 10.

comment 2y ago · link · parent

> and in contributions to open source software

It seems like you took the marketing on the tin for open-source seriously. Have you had "the pleasure" of maintaining an open-source project?

Contributions are rare. They are almost always self-interested. "Giving back" isn't a factor as you often are helping the rare contributor by main-lining their code so they don't have to maintain a fork.

> As I see it, if your startup's business model relies on your core code being proprietary, you don't have a business model.

Reality begs to differ. Google, Meta, Instagram, Uber, Microsoft... seem to have business models.

comment 2y ago · link · parent

Very cool! It seems like this could solve docker-in-docker use cases for things like CI, perhaps? I would love to see benchmarks of mem/cpu footprint vs. the same workload in raw docker.

comment 2y ago · link · parent

Great response, thank-you! I've bounced into vim before. The modal nature threw me a bit--finding :wq written to my code wasn't awesome. :-) I might give it another shot.

comment 2y ago · link · parent

This is probably the most promising answer to me.

> Plain old vim

By this, do you mean this is only available in vim, not NeoVim?

comment 2y ago · link · parent

Here's an example of extending an IDE (IntelliJ/PyCharm/RubyMine/WebStorm) by driving it externally:

I used just a little bit of code to make it so when I command-click a filepath anywhere, it opens in IntelliJ. This works in the browser, on chrome links, (github, gitlab, jenkins, error pages, etc) and also in iTerm on stack traces, spec/test paths. I made a chrome plugin, a shell script, and used the remote control plugin (not mine). The result was super-satisfying. I'll probably open source the bits soon. Now, I didn't script the IDE myself--the Remote Control Plugin did that work, but for an open source solution, I wouldn't mind building a remote control plugin myself.

Making this work got me wondering about doing the same with an open-source editor. I also would like to drive things internally, but I want it to be easy so I get a good return on the effort.

75.

Ask HN: What code editors or IDEs are easily scriptable?

38 points · by ericb · 2y ago · 64 comments

comment 2y ago · link · parent

Very rarely. Better search is better search, though, and this is a good test.

comment 2y ago · link · parent

Assuming you meant bing, it is now better. For my last 3 programming problems, google wiffed, and bing had results that led to answers.

comment 2y ago · link · parent

You have 10 days of work, two of which go to planning and retro. Now you have 8. But, is there any kind of testing process before the release? Almost no one has CD. CI, sure, but CD? Almost never. So if you assume a few days for QA if you have it, now you have 5 days to work. Only, the pointing was done with "T-shirt sizes" without really knowing how to do the work, and you're dealing with code created by this very process, so it is sloppy code, built in a pressure cooker, and you have to understand what the last person did before you can extend it. You'd like to make it better, but then you'll look bad compared to anyone who doesn't roll something over to the next sprint and ships whatever hacks work, however vile.

Good luck!

My solution is to ignore the deadline and do what's right and explain why, as I go. This will only work with great product folks, not mediocre ones.

comment 2y ago · link · parent

Can you point me to this treaty? Russia had admittance into the West. It wasn't serious about it. There was excitement to welcome Russia into commerce and brotherhood with the West. Russia wasn't considered an enemy after the fall of the Soviet Union until it chose to be, by becoming an expansionist power under Putin. An easy way to tell is to look at American movies in that time period--Russians stopped featuring as the default villain in American movies--no more "Ivan Drago" as foreign antagonists. The opportunity was there.

NATO doesn't threaten non-expansionist powers as a defensive treaty. Read the treaty. Being "admitted" into the west is easy--don't invade other countries, send little green men army invasions or make bellicose nuclear threats, and focus on business-first and the red carpet rolls itself out.

comment 2y ago · link · parent

Nonsense. Don't invade your friendly neighbors, and peace is simple. Ukraine gave up their nukes and signed the Budapest memorandum with Russia. Russia turned around and invaded Ukraine. So, sob stories about torn up security "agreements" with Russia are just crocodile tears.

Nato doesn't "expand." Countries join it for protection from predatory nations like Russia. Russia is NATO's greatest salesperson. Seriously.

comment 2y ago · link · parent

> The only real losers here are primarily Ukraine which is being destroyed and Europe which has to keep doing what US wants since it's dependent on the latter for defense.

Your thinking in this area lacks depth. Think about what happens next after Russia is handed Ukraine. And after that.

comment 2y ago · link · parent

To the contrary, retaliation is game-theoretically sound. You can't allow an adversary to take what they want and win every battle "because they have nuclear weapons" without capitulating world domination to that adversary. This is like playing poker and folding every hand--you will quickly lose everything. World War 2, and the Sudetenland proved this very well--you can't forestall war by gifting land to greedy dictators, it just makes them hungrier.

The US has to retaliate, as without doing so, it will hand world-domination to Russia, China and any two-bit dictatorship willing to use nukes. Moreover, Russia has repeatedly threatened European NATO members, and those members would rather the battle be fought in Ukraine than on their own turf.

comment 2y ago · link · parent

That sounds so ridiculous that I feel embarrassed for you that you could say something so nonsensical.

comment 2y ago · link · parent

Not at all.

Russia is not interested in that--they'd be one of the worst losers in that scenario. Russia is interested in leveraging the fear of escalation to take every penny and inch of land it can get, though.

Letting Russia get away with bullying now is *more* likely to lead to escalation as it muddies the waters on how much they can get away with and when and if there would be a response.

comment 2y ago · link · parent

Several things:

1 - Russia is tactically taking advantage of US caution. They amassed their forces on the border with Kharkiv in the wide open and used the head-start to launch an offensive there.

2 - At this point, the US has realized that Russia isn't going to come to their senses without a more decisive defeat. If anything, Russia is doubling down on their attack wish-list.

3 - Most importantly, Russia is launching espionage based attacks affecting Czech Republic, Estonia, Germany, Latvia, Lithuania and Poland.

At this point, Russia has broken the red lines, and so NATO is opening theirs in a tit-for-tat fashion.

comment 2y ago · link · parent

I take issue with several of these. "Idiomatic Ruby" shoehorn's dogma into the least dogmatic language.

Elsif? How about a case statement?

A lot of the idioms are great until you need to debug them. At that point you have to replace them with non-idioms because you can't even debug the code you wrote without changing it. Why give someone grief for starting with something debuggable?

I dislike the social pressure and "Rubocop's Karen-ing" used to inflict these idioms when they are a mixed bag, at best, and demonstrably worse in cases.

comment 2y ago · link · parent

What sort of insert volume are you handling with that?

comment 2y ago · link · parent

This was true, but the new Rails Turbo Page Morphing in Turbo 8 changes the game entirely.

I've been using it. The experience is amazing!

Some highlights:

* In 7 lines of code, with no javascript, I had my index and view pages live-updating whenever a model changed on the server! It is spooky good. Nothing against JavaScript, but now I only maintain one ERB view and no SPA. This is a large dev speed multiplier.

* If you have a page with a parent object where you add/delete child items, you make your actions delete/add the child on the server, and once the object is updated, the page just re-renders with no visible redirect/reload.

https://dev.37signals.com/turbo-8-released/

A diff with comments: https://github.com/basecamp/turbo-8-morphing-demo/pull/4/fil...

12345
80