Hacker Newsnew | past | comments | ask | show | jobs | submit | Bayko's commentslogin

Langchain? I tried using/learning langchain then I found out that it was evolving so fast that even the latest ai models didn't have even remotely up to date information on it! Not to mention the hundreds of Google search results for ---- why do langchain docs suck? I finally switched to haystack and I have been really happy. (Don't work on corporate ai software this is just for personal use)

Just saw a hair cutting salon call itself "Facelook" . Peak marketing if you ask me

To me it makes sense when it comes to the stock. It's not like someone goes to Robinhood or whatever and goes... Hey you know what's underrated? Kafka! Calls on Confluent!


Chad Dad


My Brazilian friend told me they use Whatsapp as a replacement for Slack since they don't want to pay for Slack As an Indian, I can confirm the same here for many companies


Almost 20 years after high school here..I am still stupid


Just here to say that's a banger of an url prison josh


A more common example for me at work is getting a response from url. Then you gotta process it further like response.json() or response.header or response.text etc etc. and then again select the necessary array index or doc value from it. Giving a name like pre_result or result_json etc etc would just become cumbersome.


I would never do `response = response.json()`. I use it when it's effectively the same type, but with further processing which may be optional.


Depends on how clear it is.

I usually write code to help local debug-ability (which seems rare). For example, this allows one to trivially set a conditional breakpoint and look into the full response:

    response = get_response()
    response = response.json()
The fact that the first response is immediately overwritten proves to the reader it's not important/never used, so they can forget about it, where a temp variable would add cognitive load since it might be used later.

and I think is just as clear as this:

    response = get_response().json()

This motivated by years of watching people through code, and me working with deeply non-software engineers, and is always very much appreciated.


    get_response().json() 
is ideal, and I'm assuming yoiu're writing an HTTP wrapper since decoding JSON is a sensible default.

If you need to add an intermediary variable, name it as clearly as possible:

    raw_response = get_response()
    response = raw_response.json()


> The fact that the first response is immediately overwritten proves to the reader it's not important/never used, so they can forget about it, where a temp variable would add cognitive load since it might be used later.

I strive to write code that reduces cognitive load. To me, putting it in a temp variable is more of habit of old languages, mixed with a bit of cargo cult.


> To me, putting it in a temp variable is more of habit of old languages

If you do want an intermediate variable, naming it non-deceptively will reduce cognitive load. If you don't want one, that's fine too. There's no deception with a name that doesn't exist.


It's possible for two things to be true at the same time


So now just outsource to those countries instead??


Ohio senator introduces 25% tax on companies that outsource jobs overseas - https://news.ycombinator.com/item?id=45146528 - September 2025 (68 comments)

OBBB signed: Reinstates immediate expensing for U.S.-based R&D - https://news.ycombinator.com/item?id=44469124 - July 2025 (370 comments) [15 year amortization required for international R&D]



SCMP is owned by Alibaba, which is subject to the purview of the Chinese Central Government [1].

[1]: https://www.cecc.gov/agencies-responsible-for-censorship-in-...


Lol, you really think the h1bs will go to China to work 996?


No, Chinese will stay home instead of immigrating to the US.

China draws mainly on the talents of the best of its billion+ population. But America has had its pick of the best of the world's 8 billion people. If people stop immigrating to the US, then we will surely fall behind technologically, economically and militarily, and soon we will be making t-shirts for Chinese for $5 an hour.


For big tech 100k isn’t too much of a hit to hire the best AI researchers of Chinese descent, so they won’t be impacted.


It will be too much if the worker leaves after a month, or gets hit by a truck.


If an H1B worker "leaves after a month" they get deported. Meanwhile, nothing in the world can prevent the Bus Factor so I don't see how that's even relevant.


don't respond to him, it's just a LLM posting pro-China stuff on HN


Tariffs on offshoring are next.


Wasn’t that already effectively put in place with the changes to the exemptions on how R&D is treated for tax purposes? (I’m not in the US so this may have evolved now, I’m not sure.)


> Tariffs on offshoring are next

Unlikely. America has a massive services export surplus.


Do you think that matters to them? They'll burn it all down if they think it scores a political point.


They could already outsource for cheaper than the cost of an H1B


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: