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

The state could request proof of a stock of parts before allowing something to pass customs.


Absurd bureaucracy, and what are you gonna do when it ceases to exist after the paperwork is filed and hte aprts are just funneled back into manufacturing? Making manufacturers bank the schematics and auto-releasing them after manufacture ends is less work for the manufacturer and easier for the market.


Customs for a state? I don't think that exists, or would even be legal to exist.


Relevant section of the constitution. Don’t know if this would fall under inspection:

> No State shall, without the Consent of the Congress, lay any Imposts or Duties on Imports or Exports, except what may be absolutely necessary for executing it's inspection Laws: and the net Produce of all Duties and Imposts, laid by any State on Imports or Exports, shall be for the Use of the Treasury of the United States; and all such Laws shall be subject to the Revision and Controul of the Congress.


I've always wondered about the constitutionality of California's state-to-state border stations where they check every car for produce. Seems iffy.


https://en.m.wikipedia.org/wiki/Maine_v._Taylor

SCOTUS has ruled that, with specific and compelling reasons, states can implement these kinds of interstate restrictions. If Congress wanted to, they could pass a federal law that would pre-empt the state law, but has not done so.


it would also mean that the FedGov would have to evaluate or interact with every sort of intra-state interaction, which would get onerous and expensive quickly.


> FedGov would have to evaluate or interact with every sort of intra-state interaction

I don't think that's the case. It would be up to Congress. They have the authority to pass a law that says: "No state may put up any intra-state barriers to commerce at all", and that would be that.

Or they could choose to pass a law that's a lot more specific, in which case they would need to deal with each intra-state interaction.


It says right there they can do what is needed to execute inspection laws. They just can't charge you to import. California had serious problems with Mediterranean fruit flies destroying crops from the 50s onward, which is why they started doing this.


Yeah, just encountered those on a road trip and wondered how they were legal. Was right on the Cali/Oregon border for a couple of days and those checkpoints were also only sporadicly staffed, so I don't understand the point anyways.


Ah, right, it's the US, states are not countries.


I do this, but regularly get annoyed with the date, comment, trailing comma, mandatory key quotes, etc


Maybe you'd like jsonnet: https://jsonnet.org/

I find it particularly useful for configurations that often have repeated boilerplate, like ansible playbooks or deploying a bunch of "similar-but" services to kubernetes (with https://tanka.dev).

Dhall is also quite interesting, with some tradeoffs: https://dhall-lang.org/

A few years ago I did a small comparison by re-implementing one of my simpler ansible playbooks: https://github.com/retzkek/ansible-dhall-jsonnet


If I have to use a better format, I will use toml or cue.

The whole point of the parent is that JSON is the Pareto solution, which I agree with.

But it does grind my gear.


jsonnet is turing complete.

It's configuration with a build step. Which is an option, but that's pretty different than JSON, YAML, TOML, etc.


Let'add another one: CUE

https://cuelang.org


While this is a good example of all the good stuff raw django brings to the table, if you build a blog with django, you should go for wagtail in 2023:

https://wagtail.org

- It's incredibly more productive.

- Seamlessly integrates with any django website, or hold your hand to create one from scratch.

- Play nice with the whole django ecosystem.

- Is easy to pick up because under the hood "it's just django". It uses django models, routing, auth, etc. It's uses standards, best practices, and is a good citizen.

- The blog admin and the provided block editor are good out of the box.

- It still gives you all the flexibility you want: it doesn't force any template on you, any page structure, workflow, nothing. You get to decide how simple or complex you blog is.

- The team behind it is super nice.


We moved away from wagtail and it was a bit of a mess to maintain after using it for a couple of years for our marketing website. I think I'd have stayed with native Django if I had gone back in time. In the meantime the team that manages this switched to next.js instead and it's been the most stable / productive setup so far for our marketing website. This being the 4th tool in 8 years (marketing people change their minds a lot).


Thanks for the comments. Did not know much about wagtail until now. Looks worthy of consideration for a side project I am considering.

If you don't mind answering a couple of questions:

- I have a requirement for basically a CMS with the capability of serious extensibility, built in either python or javascript (I considered ghost but it does meet my requirments). Main job is for a membership based cms but to potentially add functionality outside of standard cms stuff. Would you say wagtail / django combo would meet that requirement? (Sounds like "yes")

- How does wagtail compare to django cms? (Less interested in feature comparisons, more interested in your developer experience with both)

Thx in advanced!


Wagtail is not your usual CMS is that unlike the competition (such as django cms), it doesn't come with any kind of structure.

On one hand that means you have to do more work: define exactly what you want, then declare it in code, then build the templates.

On the other hand it means you can do exactly what you want, including the requirements you just mentioned.


Will wagtail work in 10 years from now? Being Python and Django, it just might. In the node ecosystem, things are broken after 10 weeks or 10 months.

The benefits of static site generations...


Wagtail first shipped 9 years ago in 2014. It's already old/boring, and great!


The best reason against it is the fact many website, because of stupid policies or incompetent engineers, will reject the address as invalid.

Happens to me regularly and makes my life difficult.

I still like better than the alternative though. I got locked out of google accounts twice in my life and had one other email provider close entirely.


Agreed, but it depends which TLD you use.

I used to have a .name domain which gave me trouble with less than 1% of every service I've ever used it with over 15 years.

I switched to a .net domain for my email last year, and I would be very surprised if I ever had any trouble with it.


.net domains are as good as .com ones when it comes to recognition because they are very old.


Really? There are millions of @companyname.com and @randomschool.edu domains. They can’t all have been whitelisted.

Where are you running into this issue?


It's very tld dependant. .com and .edu have been there forever, so there are no problems.

But .xyz are usually spammy domains, so they are rejected by default.

My personnal .email address is also often rejected because the tld is quite recent.

The sites I have the most problems with are:

- small shops

- state own ones

- public utilities

Some bugs are not even pure rejection. E.G: my electricity provider, for the longest time, accepted my email when subscribing or using "forget password", but not when login.

On site once tried to autocorrect my email (!), to "fix" the tld.


Oh right, sorry, I hadn’t even thought about other TLDs. I wonder if the rising popularity of .io and .ai domains has shone some light on this issue? Though they are ccTLDs…


I’ve had a .me tld for 5 years and am yet to come across a single site that rejects it.


It's really dependant on the tld. I have [email protected] for the https://bitecode.dev blog that never has any issue.

But my firstnamelastname.email regularly is rejected.


Same, going on 10 years now. I used to get weird looks from people when I told them my email but now I don't even get those anymore.


If your users needs to communicate an ID orally to you, you already failed in numerous ways.


That's just a gif joke. Don't take it seriously.


They are pretty much the equivalent to the BBC or CNN: a lot of it is alright, but they are still tools for their own gov propaganda.

Because they are different govs, with different agendas, each of them see the propaganda of others as evil, but it's still all very much propaganda.

Remember CNN diffused many bits on how WMD were in Irak to justify the war the UN voted against. The USA went to war anyway, and we learned there were no WMD.

Al Jazeera does the same, but for their side.

It is, nevertheless, quite qualitative content for many topics, and give you another points of on the world events than our own medias outlet.


> They are pretty much the equivalent to the BBC

I am sorry, but they aren't. This is just false equivalence, you can just go read BBC's coverage of UK politics and you will see criticism of their government


Yeah thats not true.

All you have to do is just compare bbc coverage on palestine and ukraine.

The BBC is absolutely biased.


Indeed, the conservative government has been trying to get rid of the bbc precisely because the bbc criticises it more than everyone else!


That can be tied to once aspect of vipassana meditation: observe the bodily sensations, as they are tightly linked to your mind state.


Let's all remember that correlation is not causation. Although we all know it was dangerous to work with a toxic product for so long.


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

Search: