News for hackers. Stuff that matters.

tresil

Re:The Concise TypeScript Book on Sunday January 11, 2026 @06:58AM (#46574926)
To clarify, I’m not claiming that classes have no place in Typescript. What I’m saying is that many people coming from OOP backgrounds tend to have the mistaken belief that TypeScript is best written with that paradigm. While it can be in some cases, it should not be assumed to be the best way. In fact, the documentation linked above asserts that “free functions over data” are extremely powerful, and “tend to be the preferred model for writing programs in JavaScript.”
Re:The Concise TypeScript Book on Sunday January 11, 2026 @05:12AM (#46574194)
I show people coming from object oriented backgrounds this page first in order to correct the perception that TypeScript is best used with that programming paradigm.

https://www.typescriptlang.org/docs/handbook/typescript-in-5...

Re:Go ahead, self-host Postgres on Saturday December 20, 2025 @11:23AM (#46337268)
If you’re running Kubernetes, CloudNativePG seems to be the “batteries included” HA Postgres cluster that’s becoming the standard in this area.
Re:Claude Sonnet 4.5 on Monday September 29, 2025 @06:56PM (#45419873)
I'll add another really positive review here. Sonnet 4.0 had been really struggling to implement an otel monitoring solution using grafana's lgtm stack. Sonnet 4.0 had 4 or 5 different attempts - some of them longer than 10 min - troubleshooting why metrics were supposedly being emitted from the api, but not showing up in Prometheus. Sonnet 4.5 correctly diagnosed and fixed the real issue within about 5 min. Not sure if that's the model being smarter, but I definitely saw the agent using some new approaches and seemingly managing it's context better.
Great write up. We’ve migrated to NextJs App Router where I work. While RSCs introduce a certain level of complexity, we’ve appreciated their benefits. The telemetry on the backend is something we’ve been looking to improve, and there doesn’t seem to be a lot of info out there, so this helps.
Re:Software Design Is Knowledge Building on Thursday January 02, 2025 @02:35PM (#42577892)
This is absolutely my take as well. I see the points that the author brought up as additional contributing factors. However, the leading reason for this “phenomena” is that many companies are brimming with individuals (including managers) that are simply not competent or motivated enough to meet the demands of this profession. In the author’s story, this is probably why X10 decided to leave the company, because they were tired of working with incapable co-workers.
Re: on Tuesday November 21, 2023 @09:02PM (#38373677)
> Greg's use of discriminatory language against a gender-transitioning team member. Despite many promises to address this issue, no meaningful action was taken, except for Greg simply avoiding all communication with the affected individual, effectively creating a hostile work environment. This team member was eventually terminated for alleged under-performance.

High probability this “discriminatory language” is just someone having a hard time switching pronouns. Listing very minor grievances like this give the letter less weight than it otherwise could have.

Re:Poor Sleep Drove Me Insane, and My Long Path to Recovery on Monday February 27, 2023 @12:31AM (#34953363)
Thanks for sharing what worked for you. I've been wondering if light-moderate drinking might be affecting me, and it seems to be a common thread in what I'm reading about this condition.
Re:Gitlab to lay off 7% of staff on Thursday February 09, 2023 @09:38AM (#34724552)
From a cost basis, this could possibly be true. But, with that type of attrition, you would probably see a greater percentage of high-performers go because they have good options. Then, you not only have lower producing staff, but it also becomes more difficult to hire top level talent back, because they want to work with other folks like themselves.
Re:Way fewer people are creating new podcasts these days on Monday January 23, 2023 @12:01AM (#34485669)
Agreed. Walking and listening to audio books and podcasts is magic. Great for the body and mind.
Re:Ask HN: What are some of the best podcasts for developers? on Sunday December 11, 2022 @12:44PM (#33945386)
Yup, I’ve been listening to them for a number of years. I appreciate the balance of discussing technical concepts and general banter on developer life.
Re:Manifesto for Minimalist Software Engineers on Monday November 07, 2022 @08:17AM (#33505395)
> …the world is full of situations where you get 0% of the payoff unless you've done 100% of the work.

Well stated. Deep down I’ve known this to be true, but since Pareto’s law is often over used, it’s easy to lose sight of other aspects of reality. This one is often overlooked.

Judgement must be used to understand how these two concepts can apply to a given situation or decision.

Re:Operating well – what I learned at Stripe on Saturday August 13, 2022 @09:45AM (#32449829)
The context and frequency of these types of questions is crucial. As an engineer myself, I would love to see more of these conversations as long as they’re handled the right way.
The twin study described here may interest you: https://youtu.be/yPSRgcEpfWY
I am growing more disturbed in recent years by how true this statement is in our current society. While not all behavior is hereditary, genetics plays a massive role. I wish it were not taboo to talk about this more openly. While I have found few, at least there are some people attempting to give this subject more consideration: https://youtu.be/-4VCISnwE-k

https://youtu.be/62jZENi1ed8

States like Colorado are already “giving” most of “their” water to other states. Louisiana could probably be convinced to do the same.

Reducing the flow of water in Louisiana by 5% would not have noticeable impact on the state’s environment when you consider that annual variability of water flow must be far higher than 5% for such a vast and dynamic watershed. If that kind of annual variability is not often creating headlines, outside of flooding - for which this kind of project could only help, then it’s difficult to imagine how a far smaller variance would have meaningful impact.

Big fan of HLL

Apache foundation has a fantastic DataSketches library that includes HLL and many other powerful data analytics algorithms: https://datasketches.apache.org/

Lee Rhodes has done an excellent introduction to this library - explaining some of the use cases, advantages, and things to be aware of when using these techniques: https://www.youtube.com/watch?v=nO9pauS-mGQ

Re:The welfare effects of eviction policies on Tuesday November 02, 2021 @04:48PM (#29087150)
Many properties owned by LLCs are actually small-time investors, individuals, and families. LLCs only became a popular/viable way to own real estate in the last couple decades. Now they are the recommended structure for most rental property owners - whether individuals who own 1-5 properties, or huge institutional investors who own thousands.

I would bet that a good chunk of the trend you’re asserting is just small time rental property owners increasingly using LLCs to limit their liability.

Re:Your Lifestyle Has Already Been Designed (2010) on Sunday August 01, 2021 @11:38AM (#28027042)
Agreed. There’s quite a bit of evidence that the 40hr work week has a lot to do with our human tendency to compete.

Here’s a relevant 3min podcast on the topic (also transcribed).

https://www.npr.org/2015/08/13/432122637/keynes-predicted-we...

Re:The Rise and Fall of the OLAP Cube (2020) on Monday July 05, 2021 @03:53PM (#27741289)
Could not have written this any better. I’ve been in the data business for over 10 years. A number of technologies have come and gone during that time, but dimensional modeling and solid SQL skills keep delivering remarkable value.
Re:1700 Cascadia Earthquake on Wednesday May 05, 2021 @11:59PM (#27059037)
Nick’s geology talks are a near-perfect mix of academic science, and dynamic storytelling.
Re:When Should I Interrupt Someone? on Monday March 15, 2021 @06:14PM (#26469942)
This is interesting. We’ve arrived at a very similar set of guidelines on our team. One slight difference is that sometimes people want to reach out to a senior person not so much because they’re “stuck” in the middle of something, but before they even start on some new feature or development story. They want help with design or help with even determining what approach to take. Similar to the author’s suggestion to ask them what they’ve already tried, we ask for them to do their best to propose a solution, and then we go from there. That way they’re still in the drivers seat, and we evaluate the pros and cons of their approach so they get meaningful feedback for improvement.
Re:Effective Airflow Development on Wednesday August 19, 2020 @10:31AM (#24210746)
Once you get past some learning curve and initial configuration, Airflow is great. We use third party etl tools where we can - like fivetran, stitch - but airflow still orchestrates the bulk of our etl.
So admittedly I'm not a resident of SF or California, but to address the first item on your list, housing - if it's a major problem identified by everyone, why haven't the public voted in line with that assertion? https://sf.curbed.com/2018/11/8/18075464/yimby-sf-election-v.... And trust me that's not the first group to try do something like that. For years voters have been turning down similar initiatives to ease the housing problem there.

I still hold my point that the public may get "outraged" or whine about the problem, but they won't act or vote in alignment with that outrage until it actually impacts them. The homeless/opioid epidemic finally crossed that threshold and so they did. But that just proves my point that it's the public that must act/vote and see themselves as the responsible party, and not wait for the government to solve everything.

I don't know if it's wise or helpful to lay this at the feet of government and big companies. They are big beasts that do well with defined budgets and defined directives, but they rely on their constituents and shareholders heavily for both of those two things. While that may not seem ideal, it's practical and what we have always seen in reality.

I think many in government knew this was going on, and becoming an increasing issue/epidemic in recent years, but until the public becomes outraged and is willing to support a big shift in policy and budget, what they can do is limited. It might be some of the people in government that we should feel most sorry for - they've been witnessing it for years and voicing concern, but few in the public will listen or do anything about it.

Perhaps I'm being too generous, but I see government and big institutions as behaving very much like computers, with much less intelligence and autonomy than the general public might think.

Re:Ask HN: How did you decide where to live? on Saturday December 15, 2018 @10:53AM (#18688816)
> in Jerusalem people just are.

Can you expand on that just a bit?

Also, curious if you are Jewish by birth or conversion?

Re:How not to say the wrong thing (2013) on Saturday October 06, 2018 @03:07PM (#18156689)
Interesting. The advice here reminds me of the “complaints go up” dialogue from Saving Private Ryan. https://m.youtube.com/watch?v=dKbdE5LOGNQ
Re:FrontPage 98: Elegant and Exquisite (1997) on Wednesday September 12, 2018 @04:53PM (#17973190)
Really? While I developed many sites in FrontPage, it was always looked down on by most people I knew. Many hosts outright refused to do full integration with it or run its extensions. The Generated HTML was far better than Word would generate, but it still was wonky unless you really knew what to avoid or were doing something incredibly simple.
It’s fascinating how similar your experiences are to my own. I wonder how many of us there are.

I’m also in the same place in my life where I’ve realized that I need to develop a passion for people and relationships. I have been out of balance in recent years focusing far too much on my career and technology. I think it’s an easy thing to do and offers a more measurable and explicit reward, so I gravitate toward it.

Older »