HNHacker News
TopNewBestAskShowJobs

rank0

1,554 karma · joined February 12, 2015

submissionscomments
rank0··on Ask HN: Best practices for editing remote code locally?
portability - vim works everywhere and my config is just a `git pull` away. VS code doesn't let you sync configs unless you sign in with github/microsoft account. Wack!

flexibility - vim integrates very nicely with my terminal-heavy workflow. Its extremely hackable. I can zip around and pipe contents between my shell, unix tools, and vim buffers. For example, I can run a shell command from nvim and have its output automatically pasted into my current vim buffer at the cursors location.

lightweight - It's a blazing fast tiny executable rather than a clunky resource hungry electron app.

keyboard-centric - I enjoy my desktop the most when I don't have to move my hands from the keyboard. This is really just a personal preference. Also the vi keybindings are ubiquitous in unix tools and even some gui/web apps!

rank0··on Ask HN: Best practices for editing remote code locally?
MacOS appears to make this intentionally difficult. I've tried with stuff like xQuartz but its finicky and Apple is extremely hostile to non-apple interoperability.
rank0··on Ask HN: Best practices for editing remote code locally?
Is there a way to do your testing without a gui? I have no idea what your testing setup requires, but is there some technical reason why tests are not done automatically in your ci/cd pipeline?

If it must be done manually, can you just ssh/rdp directly into the testing box? The network where the testing box exists could use some tunneling protocol (stunnel, socks, wireguard, vpc peering...) to make it more accessible from your dev machine or your company VPN.

rank0··on Ask HN: Best practices for editing remote code locally?
> That said, don't underestimate the upfront cost of something like this. Getting the right plugins + getting comfortable took me a considerable amount of time.

This is definitely true. I've been a terminal guy for many years so its easy for me to recommend while I already have the muscle memory. It might be an uncomfortable few weeks, but I still argue that learning a new language or framework is MUCH harder than learning keybindings, coreutils, and shell operators.

rank0··on Ask HN: Best practices for editing remote code locally?
Kitty is awesome I’ve been using it lately myself. I can’t get myself fully off tmux into the native kitty panes because tmux is dank for multiplexed remote sessions and actually works everywhere.

I still use kitty windows or just detach from tmux when I wanna do something that benefits from kittys beautiful display protocol.

rank0··on Ask HN: Best practices for editing remote code locally?
I’ll have to check out some of those tools! Never heard of nebula or lunarvim. I just have nvim and some minimal plugins and vanilla tmux. I find that lots of plugin functionality can be done with config changes.
rank0··on Ask HN: Best practices for editing remote code locally?
Hell yeah! I wish more folks would appreciate how flexible and feature rich the old school cli tools can be.

What’s your VMM setup? I just edit right on the remote machine. Lately I’ve been playing around with lxd/lxc for persistent container dev environments. This way I can avoid the VM overhead and it “feels” the same…but I have yet to fully explore this approach.

rank0··on Ask HN: Best practices for editing remote code locally?
I don’t work in windows but fwiw my clipboard and config files work flawlessly in mac and Linux. Last time I used WSL everything was working fine but it’s been a few years.
rank0··on Ask HN: Best practices for editing remote code locally?
Idk man it’s all preference. I’m way more comfortable in the terminal than in a gui editor. The flexibility I get from my shell, nvim and tmux is unmatched by any gui solution I’ve tried. If you don’t like the terminal that’s fine you can always just use git!

It’s lightweight, fast, and works on any machine. After years in VScode I got fed up with Microsoft lock in for things like syncing configs and remote editing extensions.

Your point about windows may be true, but I’ve yet to work somewhere that hasn’t let me use a MacBook.

Also I’m a pentester at work, so I don’t have to write production ready code…I can see why developers might want all the shiny features/integrations that come with a language-specific IDE.

To each their own!

rank0··on Ask HN: Best practices for editing remote code locally?
Don’t overthink it!

Keep it traditional baby all you need is vim and tmux.

The initial learning curve for these sorts of cli apps is a bit steep, but it’s a lifelong skill and easily learnable for any competent developer.

Writing code is 1000x more difficult than learning vim philosophy and memorizing some key bindings.

Since I do all my editing in terminal, I just have a portable environment in a git repo. It has an install script that soft links all my scripts and config files to the appropriate locations. My work environment comes with me everywhere!

rank0··on Canada to ban foreigners from buying homes
I live in a duplex the middle of a big city with practically no zoning restrictions. I love it here. You're the one complaining self righteously.

I am quoting my original comment because it seems like you didn't read it:

> Not everyone wants to live in a megacity with traffic, air pollution, constant bustle, and restricted personal liberty.

> If financial gain is your only motive as a homeowner, you would actually WANT an increase in density. As you cram more people into a smaller space, the land underneath becomes more valuable. Increased density attracts amenities, restaurants, businesses, nightlife...etc, all of which raise the value of your property.

Do you have an actual response? Or do you just need to be outraged at something?

rank0··on Canada to ban foreigners from buying homes
Prop 13 is intended to protect homeowners from being gentrified out of their residence. Even if I think it's backfired, I understand the motivation. I would be livid if I was a lifelong CA resident and suddenly could no longer afford my lax liabilities as a result of demand/speculation.

This is just one piece of the puzzle, and frankly its a bit much to chalk it all up to power/greed. Again, if CA homeowners make up the majority of voters what exactly is the alternative?

If I'm being honest, my opinion on CA housing markets means nothing...but it seems pretty sensible to me that when a shitload of people all want to live in a handful of cities, prices HAVE TO increase. Removing prop 13 and zoning restrictions isn't going to double the housing supply.

On a semi-related note, pretty much everything in CA is more expensive. The residents there vote for expensive public services and legislation. When everything is more expensive, you bet your sweet ass houses will be as well.

rank0··on Canada to ban foreigners from buying homes
If most voters are homeowners then what exactly do we expect? Of course they're going to push for lower property taxes...maybe homeowners feel that their money already gets taxed 5+ times before they can spend it on their literal shelter. Most folks effectively work for the government 4 months/yr AND owning property requires another annual fee to the tax man.

High property taxes hurt renters too. Rent prices increase to cover the difference.

rank0··on Canada to ban foreigners from buying homes
> There's also no incentive to build affordable or well-constructed homes.

This is sort of my point. Who's going to build the "affordable housing"? Why won't the affordable housing get snatched up by the highest bidder?

The federal government already spends way more than it can afford. State/local governments don't have anywhere near enough tax revenue. It would require a multi-trillion dollar operation to increase supply enough to offset shortages.

rank0··on Canada to ban foreigners from buying homes
> Homeowners don't need to orchestrate and elaborate scheme, they just vote for the politicians who will prioritize increasing home values because that will help them financially.

Or y'know...maybe homeowners don't want to have their neighborhood become overcrowded. Not everyone wants to live in a megacity with traffic, air pollution, constant bustle, and restricted personal liberty.

If financial gain is your only motive as a homeowner, you would actually WANT an increase in density. As you cram more people into a smaller space, the land underneath becomes more valuable. Increased density attracts amenities, restaurants, businesses, nightlife...etc, all of which raise the value of your property.

Homeowners care about things other than net worth.

rank0··on Canada to ban foreigners from buying homes
Speculation isn’t great, but let’s not pretend this is some elaborate scheme orchestrated by all the homeowners.

If it’s feasible and profitable to build new homes, then developers will do so.

Everyone loves the simple solution of “build more houses”. Very few actually consider the execution of the master plan. What would it take for you to start building homes? It’s an enormous risk, requires tons of upfront capital, specialized labor and supplies.

When everyone wants to live in the same areas, housing prices go up. Lifting zoning restrictions isn’t some magic bullet that will alleviate that fact.

rank0··on Uninhabitable places in 2100 (interactive map)
Lol get a load of the “environmentalist” espousing the bright side of nuclear war.
rank0··on An Introduction to Generics
Generics feel like OOP creeping back into popular programming culture.

Everything just goes in a big circle. OOP is the bees knee's for like 20 years and then everyone decides that OOP is the devil for unnecessary abstraction. Then everyone gets all exited about functional programming, but they miss some of the convenience of abstract classes and inheritance.

After developers make sufficient noise, we wind up with effectively the same OOP functionality *GASP. We just avoid words like "class"....

EDIT: You guys are right about generics in FP. I guess my larger point is that lots language paradigms provide the same features just with different names and backlash is silly.

rank0··on Start Self Hosting
You’re right about the time not being free and certainly hardware failure. Although HW is way more reliable than people let on.

But aws is extremely expensive per unit of raw compute performance. Obviously I concede that the stability and availability is unmatched compared to DIY solutions.

For my specific workload I need lots of memory and cpu cores. (Lots meaning my single 32c/64t 32Gb Xeon tower in my home). I almost fully utilize my resources and STIL need to pay aws for storage/tunneling/DNS/etc.

Consuming equivalent compute in aws would be hundreds of dollars per month.

Hybrid is just my preference!

rank0··on The Great Steepening
“Printing money” is an easy way to describe the result of the federal reserve purchasing debt. When QE occurs, the fed buys bonds and MBS. They credit the seller’s account, and the securities get added to the Feds balance sheet. They don’t maintain cash reserves for this its straight up a credit without a buyer side debit. QE literally adds money to the financial system…hence “money printing”

The covid QE response purchases securities at a rate of ~1.5 trillion per year.

rank0··on Start Self Hosting
In your experience did you have to sign up with a partner ISP at the colo? Or is that done for me and just part of my colo bill?

Is power use included as well?

rank0··on Start Self Hosting
Thanks for the response!

I gotta disagree with you though on cost. You can get a beefy refurbished dual Xeon blade for a couple hundred bucks. Rack space where I live is like $50/month for 1U and gets much cheaper/machine as you scale up. $50 on aws will get me maybe 1 medium ec2 instance and an s3 bucket. With a used blade I get 20x the compute for the same price.

rank0··on Start Self Hosting
I run a few services from my home but still have to rely on aws/fly.io for some portions of my infrastructure.

I really want is to learn how to rent rack space from a colocation. The documentation available does not make it easy to learn. Can I just buy an old 1U blade, throw xen on it and show up at my nearest colo? What do I need to preconfigure to ensure I have remote access without giving remote access to the colo as well? Do I get physical access to the data center?

Wish I could find some guides on this topic. 95% of blog post tutorials are just ads for the latest trendy cloud startup/language framework.

rank0··on The Great Steepening
> To avoid collapse of the bond market the fed was the only one who could step in and print money to buy assets. It's the right thing to do. Nobody is saying they were wrong to do this.

I argue it’s not the right thing. I agree that stepping in is necessary SOMETIMES and at reasonable scale. The feds job isn’t to prop up the stock market.

Printing money greatly benefits the rich, who own all the assets. Low income individuals have their buying power destroyed as the US dollar becomes Monopoly money.

Why have we needed 13 years/5 rounds of QE? It’s enabled rampant equities/housing speculation while engorging wealth inequality.

The only explanation I can think of is our insane national debt. It’s such an easy solution to inflate all the debt away. American monetary policy has been straight irresponsible.

rank0··on The Great Steepening
He’s saying that inflation will perpetuate negative real rates despite increasing bond yields as bond prices decline.
rank0··on Hackers claim to have breached Okta systems
> Yeah, people need to stop using memory unsafe languages. They choose not to.

Golang and Rust are not magic bullets that makes systems automatically secure.

Flaws in application logic have little to do with language choice.

Also consider the effort and money it takes to rewrite a multi million LOC system with several dependent apps. The new trendy languages introduce breaking changes, switch paradigms, and have less mature ecosystems.

rank0··on Ask HN: How do you learn to read large code bases?
1. Practice. It’s gotten easier for me over the years because my day job involves regular code/architecture review over tons of repos.

2. Ask the developers.

3. Play with the software and trace through the source code. For flask, make a simple application and grep for the definitions of the functions/methods/classes you’re referencing. While doing this, you will find references to other flask functions. Find read those definitions Ad-infinitum and eventually it’ll “click”.

rank0··on George Hotz against the institutions
Fair enough. That sounds like a much more reasonable explanation. If that’s really true, he should just summon the courage to be honest.
rank0··on George Hotz against the institutions
I generally like this dude and his antics…but becoming dependent on opiates as an “experiment” is the stupidest shit I’ve ever read.

It sounds like he wanted some adversity to overcome and couldn’t find any so he manufactured his own. Hopefully George understands that premeditated physical opioid dependence is not the same kind of struggle which addicts face. The homeless dudes shooting smack under a bridge have terrible lives. George is a software genius with loads of money and opportunity at his disposal.

rank0··on How Zillow's homebuying scheme lost $881M
I feel you. It’s horrible if you’ve grown up somewhere and suddenly can’t afford a home in the same spot.

But life’s unfair. Houses get sold to the highest bidder. This is what happens when everyone wants to live in the same areas. I’m not arguing that you SHOULDNT be able to afford a home in your preferred spot. I’m observing that it’s IMPOSSIBLE for everyone to own property in their preferred spot within their budget.

You can still rent, or buy cheaper homes in cheaper areas in your city.

We can’t just will affordable housing into existence when ~97% of people live on ~3% of the land.

← PreviousPage 11 of 22Next →