Readit News logoReadit News
petersellers commented on JavaScript decided my day starts at 9am   senhongo.com/blog/when-ja... · Posted by u/SenHeng
CuriousRose · a month ago
I'm building a fairly large SaaS product that will have global users and show financial reporting across different regions. Nothing gives me more anxiety as a relatively new developer than storing and recalling date/time values from my Postgres database, being converted to/from/being displayed in my app.

I have all records stored in timestampz(3), but I have no idea if what I'm doing is best practice or how to audit said functions. Using luxon at the moment, but a guide or blog post for best practices would help put my mind at ease if anyone has one. I know dates as a library are complex, but the UX managing them isn't much better.

petersellers · a month ago
When dealing with timestamps, it's easiest to store and process them in UTC for as much of your code as possible. This means pretty much all of your backend and database code. Only convert these values from UTC to other timezones when presenting this data to the user (at that point, you'd need to take the user's timezone(s) into account).
petersellers commented on Linda Yaccarino is leaving X   nytimes.com/2025/07/09/te... · Posted by u/donohoe
dinkumthinkum · 2 months ago
So, you really think there are no issues that anyone voted on? It's just that the left has no money and no audience? People like Soros and Oprah are just so unbelievably poor that they are no match? Basically, if it were not for Joe Rogan, who has a large audience but hardly captures half of the country, and other comedians, people would have been sublimely enamored with the intellectual tour de force that is "I'm a middle class kid" and "Today is the day that we will do what we do every day?" Basically, this view is that if it wasn't for podcasts and perhaps "foreign intelligence operations" people would have right realized that they agree with a litany or far left extremist positions. I guess that must be the only answer ::shrug::.
petersellers · 2 months ago
There's a lot of assumptions being made in this comment and none of them are correct.
petersellers commented on Linda Yaccarino is leaving X   nytimes.com/2025/07/09/te... · Posted by u/donohoe
ahmeneeroe-v2 · 2 months ago
>A lot of the users who X need to stay on the platform, journalists and politicians, are still there

Twitter/X is the reason DJT became President. It happened accidentally (ie against the wishes of Twitter management) in 2016, they successfully suppressed him in 2020, and then Elon gave MAGA that platform in 2024, leading to DJT's successful election.

As long as X is seen a kingmaker, someone will find it profitable to own/maintain, even if it doesn't convert Ads like Meta/Google.

petersellers · 2 months ago
> Twitter/X is the reason DJT became President.

I really don't think so, at least not in isolation. It probably contributed a small part but the right wing media machine is multi-faceted. There were a lot of podcasters (i.e. Joe Rogan), comedians and youtubers all publicly in support of a second DJT presidency and I think that had a much bigger factor overall than Twitter.

petersellers commented on Many ransomware strains will abort if they detect a Russian keyboard installed (2021)   krebsonsecurity.com/2021/... · Posted by u/air7
anonymars · 2 months ago
How does that protect against ransomware?
petersellers · 2 months ago
Limits the blast radius to only the files that the more limited user has write access to.
petersellers commented on Fun with uv and PEP 723   cottongeeks.com/articles/... · Posted by u/deepakjois
arcanemachiner · 2 months ago
The one they definitely won't have to re-learn in a few years.
petersellers · 2 months ago
It's still easier if you use virtual environments so infrequently that you have to look up how to do it every time.
petersellers commented on Fun with uv and PEP 723   cottongeeks.com/articles/... · Posted by u/deepakjois
arcanemachiner · 2 months ago
Create a virtual environment:

python3 -m venv venv

Activate the virtual environment:

source venv/bin/activate

Deactivate the virtual environment:

deactivate

petersellers · 2 months ago
Or: `uvx ruff`

Which one is easier to run, especially for someone who doesn't use python everyday?

petersellers commented on Fun with uv and PEP 723   cottongeeks.com/articles/... · Posted by u/deepakjois
4dregress · 2 months ago
I’ve been a python dev for nearly a decade and never once thought dep management was a problem.

If I’ve ever had to run a “script” in any type of deployed ENV it’s always been done in that ENVs python shell .

So I still don’t see what the fuss is about?

I work on a massive python code base and the only benefit I’ve seen from moving to UV is it has sped up dep installation which has had positive impact on local and CI setup times.

petersellers · 2 months ago
> it’s always been done in that ENVs python shell .

What if you don't have an environment set up? I'm admittedly not a python expert by any means but that's always been a pain point for me. uvx makes that so much easier.

petersellers commented on Apple announces Foundation Models and Containerization frameworks, etc   apple.com/newsroom/2025/0... · Posted by u/thm
watermelon0 · 3 months ago
Using a hypervisor means just running a Linux VM, like WSL2 does on Windows. There is nothing native about it.

Native Linux (and Docker) support would be something like WSL1, where Windows kernel implemented Linux syscalls.

petersellers · 3 months ago
Hyper-V is a type 1 hypervisor, so Linux and Windows are both running as virtual machines but they have direct access to hardware resources.

It's possible that Apple has implemented a similar hypervisor here.

petersellers commented on Cloudlflare builds OAuth with Claude and publishes all the prompts   github.com/cloudflare/wor... · Posted by u/gregorywegory
motorest · 3 months ago
> I didn't frame it that way - perhaps you are thinking of the person you replied to?

You did. You explicitly asserted the following.

> If a business has the budget for 1 or 2 engineers though, they might be able to task them with work that previously required 5-10 engineers (...).

In your own words, a project that would take 5-10 engineers is now feasible to be tackled with 1 or 2. Your own words.

> (...) The point is that making software development easier can actually increase the demand of software engineers in some cases (...)

I think that's somewhere between unrealistic and wishful thinking. Even in your problem statement, "making software development easier" lowers demand. Even if you argue that some positions might open where none existed before, the truth of the matter is that at the core of your scenario lies a drop in demand for software engineers. Shops who currently employ engineers won't need to retain as many to maintain their current level of productivity.

petersellers · 3 months ago
> In your own words, a project that would take 5-10 engineers is now feasible to be tackled with 1 or 2. Your own words.

That statement != lower demand for software engineers.

If a firm needs to perform project X that previously cost 10 engineers to do, but they only have the budget for 2, they will not tackle that project. Engineers used = 0.

However, if due to productivity enhancements with AI, the project can now be done with just 2 engineers, the company can now afford to tackle the project. Engineers used = 2.

That is the point that the person you were originally replying to was making.

> Even in your problem statement, "making software development easier" lowers demand.

Incorrect, as shown above.

> Even if you argue that some positions might open where none existed before, the truth of the matter is that at the core of your scenario lies a drop in demand for software engineers.

I see what you are trying to say, but it's not that clear cut. The fact is, no one knows what will actually happen to software engineering demand in the long run. Some scenarios will increase demand for engineers, others will decrease it. No one knows what the net demand will be, everyone is only guessing at this point.

petersellers commented on Cloudlflare builds OAuth with Claude and publishes all the prompts   github.com/cloudflare/wor... · Posted by u/gregorywegory
motorest · 3 months ago
> I'm not so sure that would work well in practice. How would the inexperienced developer know that the code created by the AI was correct?

Not a problem. The industry has evolved to tolerate buggy code that barely works. In fact, in some circles that's what's already expected from the baseline. LLMs change nothing in this regard. In fact, they arguably improve upon this problem as it becomes trivial to implement extensive automated test suites.

> What if subtle bugs are introduced that the inexperienced developer didn't catch until it went out into production?

That's what is happening in the real world without LLMs entering the picture.

petersellers · 3 months ago
I disagree strongly with this conclusion.

I've seen firsthand what happens to large software projects that collapse under their own weight of tech debt. The software literally could not function as intended - customers were lost, the product went under. Low quality being "expected" (which isn't true in my experience, either) is irrelevant when the software doesn't work at all.

The chances of all of that happening are a lot higher with a lone inexperienced engineer at the wheel. You still need experienced engineers to maintain your software, period.

> That's what is happening in the real world without LLMs entering the picture.

The difference is that most firms have experienced software engineers to fix those defects.

u/petersellers

KarmaCake day546February 1, 2014View Original