Better HN
topnewbestaskshowjobs
Log inSign up

codexb

872 karma · joined Oct 4, 2022 (4y ago) · 265 submissions

Submissions

comment 3y ago · link · parent

Are you kidding? It used to be common knowledge that virtually every used car dealer was committing some sort of odometer or other fraud just 25-30 years ago. The advent of anti-tampering devices in cars, manufacturer certified pre-owned, carfax, listing of odometer values on registrations and insurance forms, and hefty fines (and even prison) for dealer fraud cut down on that.

comment 3y ago · link · parent

Ironic that the article uses Keynes as an example for an admirable virtue that Keynes didn't really employ himself. Keynes didn't actually change his mind, he simply changed his arguments to justify a consistent belief that deficit spending was the answer to virtually all economic woes.

comment 3y ago · link · parent

Yeah, I realized WHO was completely anti-science when they started publishing World Healthcare Rankings where 60% of the score was based purely on how socialist a country's healthcare system was and only 40% was based on the actual quality or results of the healthcare.

comment 3y ago · link · parent

This is the real effect of AI.

Non-permissive open source licenses have been on a slow death march for over a decade. They're effectively pointless now.

Either you decide to give your code for free to everyone or you don't. Adding a bunch of restrictions defeats the purpose of OSS.

comment 3y ago · link · parent

The example given in the article isn't verbatim.

comment 3y ago · link · parent

Are you seriously arguing that using short snippets open source code to inspire similar, yet not exactly the same, original code is "stealing code"? Human developers do that all day long. And just because a piece of code exists in a GPL project doesn't mean it originated there. Every algorithm or sort function likely originated in a more permissively licensed project before it got included in a GPL project.

comment 3y ago · link · parent

There's no reason for attribution. It's inspired code, not included code. Human coders do the same thing every day.

comment 3y ago · link · parent

AI will just make non-permissive open source licenses more pointless than they already are. The GPL and similar licenses have been on a slow death march for over a decade. AI isn't doing anything that Human Intelligence isn't already doing. Every single developer has looked at non-permissive open source code for inspiration.

comment 3y ago · link · parent

The pricing wouldn't be so bad if their offerings aligned with the market, or at least made sense. Their base level specs are uncompetitive and borderline unusable. There's too much overlap at the lower level between macbook airs and pros. I bet a lot of people are turned off by the idea of spending over $2k on a laptop that still only has a 512 GB SSD.

comment 3y ago · link · parent

OMG, I can't believe Plone is still kicking. God, please, nobody work on that. It doesn't need to exist any longer.

comment 3y ago · link · parent

Because peanuts are oily as all get out and every young kid that eats peanut butter is literally covered in it and will rub it on everything they touch, including kids that don't eat peanuts yet.

comment 3y ago · link · parent

By all accounts, most of their demand deposits were invested in US treasuries. Those treasuries are just worth less now because of interest rate hikes and so even if they didn't have to do a fire sale on billions in treasuries, it still wouldn't be enough to cover deposits.

There are no completely safe investments.

comment 3y ago · link · parent

Yeah, but curl is used to access and download all sorts of data, which are all hosted by multi-million dollar companies. Just like git downloads and uploads data to git repositories. curl and git are valuable, but so is GitHub, and websites in general. The problem is that they haven't found a way to monetize docker hub.

comment 3y ago · link · parent

To be fair, downtown Los Angeles was dying 20 years ago. Even on the busiest of days, it was dead there. There's nothing at ground level like there is in other cities. And no one takes mass transit so you don't have people walking around. The other problem is that there aren't any dense neighborhoods near downtown where people want to live. So no one wants to work there either. The people that worked there drove from the valley or Pasadena or Orange county into locked basement garages in the city and then drove out at the end of the day.

The only hope for downtown LA is to convert a giant chunk of it to residential and entertainment and restaurants and put something in downtown to draw people, like a museum or something. The only thing even close to there now is the staples center, but even that doesn't have a neighborhood or stuff to do around it.

comment 3y ago · link · parent

I can accept that people can find happiness in vastly different situations, but the "city life" is devoid of a lot of the things that people living in the suburbs and rural areas enjoy that require having a car.

People who collect things, or have a workshop in their garage, or go fishing, or hunting, or real hiking, or any outdoor activity really, or who have children (especially more than one).

If I lived in the city, I would probably get rid of my car and just rent one when I needed it. But I just don't really want to live in the city because none of the stuff I enjoy most is there.

comment 3y ago · link · parent

The problem is that making the government responsible (and liable) creates an incentive for government employees and departments to overreact and treat every situation as harshly as possible, because if they were ever to be reasonable and lenient, and a child were to be abused later, they would then be blamed.

The only real solution is to take that sort of administrative discretion out of the hands of as many government employees as possible. Leave that discretion to judges.

The problem is that whenever these types of abuses go to court, the judicial branch has consistently given wide amounts of discretion to the executive branch of government unless the legislature has explicitly limited it. We need more legislators that are willing to dictate the limits of power to the executive, but that just hasn't happened in a long time.

comment 3y ago · link · parent

Yes, that exact scenario is supported with TypedDict.

And while that is a simple pattern, it's not a good pattern, and quickly becomes unmaintainable in a program of any size. Using *kwargs because of Too-many-arguments and so you can violate the Liskov substitution principle isn't good programming. Just because it can be done doesn't mean we should start bastardizing typing to make it easier.

comment 3y ago · link · parent

Rust and Typescript are some of the most well-loved languages, and the typing semantics of python are almost identical.

Have you used VSCode? or PyCharm? Their typehinting support is pretty great. At least as good as anything for typescript.

comment 3y ago · link · parent

The GIL is already set to be optionally removable via a compile-time flag in an upcoming release. That's about as meaty a change as you can get, and it's still not going to require a 4.x release.

comment 3y ago · link · parent

Spoken like someone who's never had to step into a 2 million line python library and try to decipher or debug it.

Also, we've been using non-standard type hints for nearly all of python 2, they were just non-uniformly specified in docstrings and weren't easily referenced or introspected for tooling and IDE's to work with them.

comment 3y ago · link · parent

> Python functions have args and kwargs, which make typing significantly more complex

Not really. It's only complex when they're used with poor design decisions. There are plenty of languages that allow you to do things that aren't a good idea. Python is no exception. Type hinting just makes those shortcomings more readily apparent.

> Callable doesn't even support kwargs

PEP 544 and Protocols have existed for 5 years, and they support keyword only type hinting for callables.

comment 3y ago · link · parent

I still think python has a ton of headroom to grow. It's maxing out the data science space, and it does reasonably well in the web service space, but they really have not pushed very far into the distributable GUI and CLI space. Dependency, packaging, and distribution have been improving in leaps and bounds still for python, and type-hinting makes large projects manageable.

comment 3y ago · link · parent

His first example of python's Callable type-hinting not supporting keyword only arguments was true 5 years ago when type hinting was first catching on, but Protocols have existed since python 3.8 and they support keyword only arguments.

comment 3y ago · link · parent

#1 supports their argument that a cyclist is more likely to be involved in a vehicular accident and therefore more likely to suffer an injury with mandatory helmet laws.

Less overall cyclists means less visibility and less awareness by motorists (ie. if you encounter less bikes, you're less likely to watch out for them)

comment 4y ago · link · parent

There's nothing wise or moral about this decision.

Mandating a technology standard, purely for personal preference and convenience reasons -- not for reasons related to safety, or pollution, or security -- especially for things that change as fast as phones, is one of the most short-sighted and naive things any government could do.

There's a long history of Apple using proprietary connectors to achieve performance specifications above what the currently available standardized connectors could provide. Hell, in all likelihood, Apple is likely to ditch a charging connection altogether in favor of wireless charging in the near future. The EU is mandating technological stagnation. They will always be behind the market.

1
56789