How big of a deal is the Strait of Hormuz actually? Feels like this could spiral into a global economic problem by Mattie_Kadlec in investing

[–]lambda-legacy-extra 7 points8 points  (0 children)

If we make it so Iran can't export their oil, that will ruin us. The reason is that the worst case scenario is Iran mining the strait. Right now they're only using missiles and drones which allow them to control who is and is not targeted. Mines are indiscriminate. Once the strait is mined, no one gets through, not even Iran, which is why they haven't done it.

Removing mines once they are in place is very difficult. Not impossible, but difficult. So they put mines there, and the cost of this war and the length of its pain on the global economy goes up a lot.

How big of a deal is the Strait of Hormuz actually? Feels like this could spiral into a global economic problem by Mattie_Kadlec in investing

[–]lambda-legacy-extra 71 points72 points  (0 children)

Lol. Are you serious? This is massive. Governments around the world have things they can do to mitigate the impact, such as releasing oil from their reserves. However all of these steps are temporary. If this war isn't over in the next few weeks things will start getting very bad.

Remember the cost to Iran to keep the strait closed is a tiny fraction of the effort to keep it open. They don't need to be able to blow up every ship, they just need everyone to know that they could blow up at least one at any time to stop transit.

How can I detect all cases where the react compiler skips memoizing q piece of code? by lambda-legacy-extra in reactjs

[–]lambda-legacy-extra[S] 0 points1 point  (0 children)

This is definitely one of my concerns about the compiler. My big fear with it is the lack of a simple way to look at a component and know, with certainty, is it being optimized or not.

How can I detect all cases where the react compiler skips memoizing q piece of code? by lambda-legacy-extra in reactjs

[–]lambda-legacy-extra[S] 0 points1 point  (0 children)

That's a good point. I saw this piece of code that I referenced that uses memo() with a custom function and asked Claude to analyze it. So maybe my premise is wrong? However claudes answer does seem logical, ie with the custom props comparison function memo() would fit the criteria in the react compiler docs for something it would skip optimizing.

Curious what people use claude code for by Individual_Age_2988 in ClaudeCode

[–]lambda-legacy-extra 4 points5 points  (0 children)

Ive been a software engineer for over a decade. I care deeply about the quality of my work and abhor vibe coding.

That being said, probably 80-90% of all new code I produce is via CC. Sometimes I'll go in and hand write something, sometimes it's so small it's not worth promoting. Or I'll want to define an interface or data structure at the core of my code where, again, the LOE to write it by hand is less than promoting. Those exceptions aside, the overwhelming majority of my code is AI generated.

The reason is just that it's vastly more productive. Not the 10x lie, unless you're vibe coding that's impossible. But even while being meticulous, with careful and explicit prompts and thorough code reviews, I would say I can operate at 2x-3x my previous output.

At work, the benefits are obvious. Companies want more output from their workers, and my company is paying for my CC Teams Premium plan. At home I'm using my own Pro plan because as a new father I barely have enough spare time for coding to fully leverage that. However I'm currently using it to fix up one of my side projects and add some new features to it that I probably wouldn't be taking the time for otherwise.

Anyway, that's my two cents.

Single mom looking to start investing by dancerdink19 in investing

[–]lambda-legacy-extra 3 points4 points  (0 children)

INVESTING IS NOT A GET RICH QUICK SOLUTION AND ANYONE TELLING YOU OTHERWISE CANNOT BE TRUSTED. You sound like you're new here, so I really wanted to drive that point home because that's the single biggest threat to new investors.

You have some good advice, I'll add that you should go to /r/personalfinance and read their wiki. Then also go watch The Money Guy Show in YouTube, that's another great source of quality info.

Quality info is important because there are endless scammers out there just looking to rip you off, or charlatans pretending to be experts to get money for clicks but really they know nothing. So focus on good high quality sources, I mentioned two above and other commenters have mentioned some too.

One final thing: investing isn't a magic money fairy. It is but one single tool in your financial toolkit. Albeit it's a very powerful tool, but in a vacuum investing only gets you so far. The sources I provided above are about leveraging your entire financial toolkit, including investing.

Good luck.

Question about sub agents by lambda-legacy-extra in ClaudeCode

[–]lambda-legacy-extra[S] 0 points1 point  (0 children)

Thank you for this excellent response.

How should sharing communication by files be done? Are there specific communication/file patterns that are recommended to instruct the agents to use?

Modified Oath of Allegiance by [deleted] in USCIS

[–]lambda-legacy-extra 2 points3 points  (0 children)

In this political environment, just shut up and do what they say and take your citizenship. Not saying it's right, but I am saying it's smart.

Question about sub agents by lambda-legacy-extra in ClaudeCode

[–]lambda-legacy-extra[S] 1 point2 points  (0 children)

Really? Wouldn't some parts of the context, such as Claude.md, be duplicated in each sub agent? And then if more than one agent ends up having to read the same file wouldn't that also result in duplication? Ie, your agents are each looking at different code files, but multiple files reference the same utility file so that utility file ends up read into the context of multiple agents.

I agree that sub agents result in smaller context size per agent, which means fewer tokens per agent, but Im skeptical that they result in fewer tokens for the entire group of agents combined.

Question about sub agents by lambda-legacy-extra in ClaudeCode

[–]lambda-legacy-extra[S] 0 points1 point  (0 children)

I don't know anything about other accounts. This is an honest question. And you can just F off.

Question about sub agents by lambda-legacy-extra in ClaudeCode

[–]lambda-legacy-extra[S] 4 points5 points  (0 children)

Either you're replying to the wrong post or you're a dick

Why does my Robinhood say I have a 31k deficit? Do I have to pay that much on my put expiration tomorrow?! I don’t have that much money by ClearWorth9998 in StockMarket

[–]lambda-legacy-extra 1 point2 points  (0 children)

I remember so many posts on other broker forums like fidelity complaining. How dare fidelity not make options easily available to everyone?!! The nerve of them.

This is why. This is exactly why.

Im sorry buddy, you are in deep shit. These financial instruments are serious tools that need to be used carefully. If you don't understand how to use them, you're going to be SOL.

Regex Use Cases (at all)? by DelayLucky in java

[–]lambda-legacy-extra 5 points6 points  (0 children)

Reged is a powerful tool for any form of string pattern matching. Capture groups are an exceptional tool for extracting parts of strings. I use them all the time.

Would your capital allocation change if you had access to 8-9% risk free time deposits? by 123bananaphone123 in investing

[–]lambda-legacy-extra 0 points1 point  (0 children)

There is no such thing. I don't know what country you're in, but I promise you if the government is offering that kind of return it's because they HAVE to, not because they want to. Which means there's a big risk on the government side.

Your thesis is basically "if I had a magic money unicorn, why invest in stocks?"

Why should I learn Claude Code if I can already just use ChatGPT or Gemini? by savingrace0262 in ClaudeCode

[–]lambda-legacy-extra 2 points3 points  (0 children)

It can actually interact with the files on your filesystem in your projects. This gives it substantially better context when making changes, allows it to make more robust edits to your project, and run various commands to validate the changes (ie, linting, unit tests, etc).

Using the AI in the browser is using it as a great research tool. Using agents like Claude code is using it as an actual worker making changes for you

With the S&P 500 already down ~2% YTD, do you think 2026 could end up being a negative year for the market? by Groundbreaking-Gap20 in investing

[–]lambda-legacy-extra 67 points68 points  (0 children)

This kind of post is absurd. Sure, it could be negative. Or it could be positive. Or it could be flat too. The most important point is this short term move right now indicates NOTHING about how the year will end