logging_strict

u/logging_strict@programming.dev
10 posts · 441 comments

Recent posts

Recent comments

lazy imports -- ftw!

built-in sentinel -- finally

I'm confused once py315 comes out why to stick with any previous version. As author of multiple packages, why would wait for several years before getting the benefits of lazy imports? This is not a rhetorical question, i'm requesting feedback why would you continue to wait?

This point is not clear to me.

What is the novelty of that? Did they invent mood, voice tone, computers, or coding?

Also it's against the public good. So shouldn't be protected by gov't. We don't need Minority Report childish "tech" deciding how to censor, not only our speech, but our tone of voice?

Doubt this patent could stand up to scrutiny. Is this all Meta can come up with? They better stick to buying up companies.

Remember back in the day ... raw SQL. All the children in unison say, "Woah"!

There is no avoiding the database part: model module, alembic migrations, static type checking, UDF, UDF rtyping, string PRAGMAs/SET|SHOW. And a beautiful config file to link them all!

Database work is very time consuming.

have to reevaluate if async is that important to me or not.

Why would be concerning yourself about that? Should have both [a]sync support throughout. Discussing this shouldn't even be a topic it should be the norm.

why no one is talking about Django is just rhetorical clickbait title to start a conversation about Django. You are interpreting it literally.

Once the topic of Django is discussed, may lead into the conversation about SQLAlchemy. Then comparing the two. Then complaining about one or the other.

Doubt there will be anyone experienced in both. I can talk about SQLAlchemy, but keep my mouth shut about Django. So enjoy to hear what others have to say about Django.

Let them speak!

Reply to /u/onlinepersona SQLAlchemy crocodile tears.

Really need a layer between SQLAlchemy and FastAPI (or litestar, ...). Otherwise would be messing around with SQLAlchemy/alembic internals for years. SQLAlchemy is an incredible time sink without that additional layer.

Created just such a package just never got around to publishing it:

  • static type checking throughout
  • sync and async support throughout
  • alembic support (both async and sync)
  • multiple databases. One per config file!
  • model built from dotted path of (sqlmodel and sqla mixins) components module
  • UDF (user defined functions)
  • database settings (PRAGMA, SHOW, SET, ...)
  • sqlite-[pysqlite|sqlcipher|aiosqlite] and postgresql-[psycopg2|asyncpg] supported
  • config does not store the password

Issues:

  • retire sqlite-sqlcipher PRAGMA rekey and key. Password in config unsafe
  • authentication by pulling from a password manager not implemented
  • strict validation of postgresql SHOW/SET keys incomplete

You misunderstand, the gov't cannot receive large area data at all. The judge having accepted probable cause evidence would grant warrant for specific individuals and possibly limited people within their network. No more!

The companies would then provide only that data and no more. So the search would be conducted by the company and not just sending all the data to the police. Cuz the warrant will not allow that, there will likely be a judicial review, or good bye any change of a conviction. The police will also not ask for dragnet data again cuz that'll be inadmissible or come out in discovery.

Doubt companies can or would refuse to filter the data.

The issue is with dragnet searches. Obtaining a search warrant for a very specific individual or group with sufficient cause the search warrant can be granted.

What is going on now is not specific individual or group with sufficient cause approved search warrants.

It's a dragnet or data collection without a search warrant (which is ungrantable/defendable). Anything connected with these dragnet searches cannot be used in court. If it's found out that any part of a case is based on a warrantless dragnet collection data, the case gets thrown out and there is ample cause to file civil suit against this abuse of 4A rights. Slam dunk bullet proof case.

Misinterpreting the verdict. The SCOTUS proclaimed this data to be privacy data with 4A protections. The definition matters. The win is the definition.

A lawyer will quote this definition to sue the pants off corporations abusing user privacy data.

What is the difference between Epstein and Flock? It's mass gathering of who you are fcking and who you are associating with to be used as blackmail.

Is Flock gathering privacy data to round up your children to be exported as sex slaves. For a moment, lets assume i believe this with all my heart and all my resources. For me, in my head, this is the truth. Then discovery will be a load of fun. Cuz would ask to detail all the children ever pictured and how these children info was organized and then resold. No amount of FUD is too small. No conspiracy too far fetched. And no amount of effort sufficient.

Don't see how these companies could continue financially.

Better question is Iterator or Generator?

Identify where itertools or itertools-more should be used instead.

The later question i don't have an answer to. If anyone wants to take a crack at it.

Dear OP, ideally, if you are being honest about supplying the source code than you'd also be serious about supplying the git commit history and dev environment. The download link should offer up a .git repo, not a .zip. A patch would likely cover multiple files, not be limited to one.

I'm a Python dev, not a node.js dev. So you are welcome to ignore this advice; wouldn't benefit me or you.