skysight-inc/HackerNews huggingface dataset:
I have been a user of Django for 15 years, I think I first used version 0.95 just after the “magic removal”.

I wouldn’t say any of these are “harmful”, there are certainly some things here that have valid arguments for doing differently, but most is rubbish. But it needs to be taken into account that Django is an incredibly mature framework with literally millions of projects built on it. Large changes are hard, and Django has had to make many of them before. All of these have been debated and haven’t changed either due to immovable technical debt, a decision that there isn’t at this time a need, or there is valid arguments on both sides.

A couple of examples: the user model, providing a default is important but it is also well documented that if you want to extend it you should subclass it from the beginning to make your life easier. There are ways to migrate later, they aren’t exactly easy, but it is doable.

Multiple small apps, this architecture is due to the history of Django and its development at LWJ. They wanted a way of being able to quickly build new websites out of pre-defined “apps”, and this system works for that. At the time the Python packaging ecosystem was very different, hence then slightly odd design. I’m sure in hindsight the founding team would have done things differently, but this is 17 years ago.

The general rule of thumb for “app” architecture now with Django is if you are a consultancy/agency building multiple similar sites for multiple clients (this is a huge use case for Django, closest to it original vision) it makes sense to package up your functionality into reusable apps. If you are a “startup” or building an internal app for a company with no need for reusability it’s best to just have one “core” app to contain all your functionality. It comes down to your personal needs, but it’s easy to make both architectures work.
> "yeah, they don't expect you to, they just want to see how you think".

And companies explicitly send prep material now. When I interviewed for Amazon, I got a whole pile of links to study.
I saw the Microwriter [1] demoed at the Nottingham Micro Computer Club forty years ago. Nothing new under the sun!

[1] https://en.wikipedia.org/wiki/Microwriter
The audience is people who will find a way, or even already have a way. In my opinion clear roadmaps aren't really on topic.
I guess they are saying that there are other options. So for example if I asked you "what is your favorite ice cream flavor, vanilla or chocolate?" you might respond to me with "that's a false dichotomy, there are more than two ice cream flavors, my favorite is banana which you have not listed as an option". At least that is my understanding of the context.
Django "apps" are sometimes reusable, but more often they aren't. For me the benefit in splitting a project into apps is that it provides a more manageable structure.

You also avoid merge conflicts in teams, especially with migrations. I'm now working with Dotnet, because I have to (nobody wants to hire me as a Django developer even though I have 10+ years experience in Django and <0.5y in .NET), and this is an ongoing problem with EF core...
Is this some kind of marketing for the mentioned movie? The article mentions documents that are supposed to substantiate it's claims but then it just goes into speculation and only linking to other articles the author wrote. The mentioned movie doesn't even seem to be publicly available. Weird to see this here.
Ah, hollier-than-thou faux-rage in behalf of others combined with reading comprehension issues, the plight of modern internet. As one who lost a number of jewish relatives in WWII (here in old Europe), I find this in bad taste.

First, I didn't compare anybody specific to anybody (even less so, "a dude who quit their job to court a woman and lift weights"). I answered the general question whether a jump of this kind (quiting your job, on a whim) is doable without being born into riches or having some big safety net. I answered in the abstract, that is, not about this particular person, and whether they lift weights or pluck their eyebrows or whatever. In fact, I didn't refer to the person in TFA at all in my answer. I gave some examples from the Baby Boom era, but also from people I know.

Second, note that I didn't write "in WWII", but "post WWII", that is, in the Baby Boom era. This isn't about Jews escaping from the war in Europe, but about (established, and much older) US Jews (and as mentioned, other ethnicities), changing states, looking for "self-realization", changing dreams, and so on.

Third, note that if I indeed had referred to the historical plight of blacks, as you understood it, it would be even better as an argument: if those people could do it while having few things in their name, with no tangible prospects awaiting them, in bad conditions, with no education, and so on, then a 2022 educated person, with a good work prior skills, with a little saved money, who can always try and get another job, can do it far more easily.
> For books authors generally get a percentage of revenue (with some caveats) which is even better.

Yes and it's very small.

Like less than 10%

You make more money by autoproducing.

Very few authors make money with books.

> Is that a necessarily positive outcome? Even if you don't believe that authors should have the right to excise creative control over their work

Please, stop using this false dichotomy and to pur words in my mouth.

You have to stop talking like what you're saying is true, what is true and what usually happens is Felix Salten that sells the story of Bambi to a movie director for a thousand dollars, the director then sell it to Disney, Disney wins 4 oscars and makes a pile of money out of it while Salten dies alone in Zurich few years later without even being mentioned in the Disney movie.

The English translation has also a complete different meaning than the original German one. Talking about creative control...

The story of the copyright of Bambi is interesting because after Salten death his daughter fought for the rights and after a few controversial rulings, her husband, that continued after Salten's daughter's death, won.

But that means two things

- nobody knows what the original author would have wanted, but others that never wrote a single line of the book claimed the rights

- with that ruling the US courts basically said that as long as someone renew the copyright, it can well be ethernal, there is no need to be authors, there is no right to creative control (which is granted BTW for being the author, that has nothing to do with copyright, you conflate the two things constantly) it's all about the money

In the end those holding the copyrights most of the times are not the authors, Disney wrote none of the stories that made him rich and famous.

So the rethoric about poor authors not being compensated it's completely fabricated, it's already happening, it always happened.

It's the "think of the children" of the publishing world.

Actual copyright laws made nothing to prevent it while also making it close to impossible for many authors to innovate over the existing material, that's why we see only (kinda boring) superheroes movies nowadays and to see something different we have to watch South Korean productions
You didn't - I said science since it's a specific subset of "many good things" in history that has a clear written record I'm familiar with. Do you think science should be excluded? If so, which fields did you have in mind? Philosophy? Political theory? Economics?
And https://historyguild.org/africas-world-war-the-congo-war/
"Friends" might be a misnomer, these are usually fraud rings/criminal organizations.
“for their own security”
Heard that one before.

Last time I bought that line I gave 5 years of my life to Uncle Sam.
Nixon's Bombing of Cambodia
It's a shame OCaml never became more popular. The language itself seems pretty fine (in my limited experience), but with popularity there would be more libraries available. And maybe if multicore OCaml would have been a thing a decade ago..
That was the dichotomy everyone had to deal with back in the day. Trying to be "unaligned" merely got you interference from both sides, with the possible exception of Switzerland.
I reckon, among other things: ambition, determination, strong character
The claim that innovative breakthroughs doesn't happen as a result of structured 9-5 work is missing a citation.
I hope this doesn't come as a surprise to anyone. At least for a lot of people outside the USA it was super obvious that the mainstream movies in the cinema are painting an overly optimistic picture of the US.
AEDs are designed to be used by people who have no medical knowledge. They typically provide simplified controls with, visual and voice prompts to attach the device to the patient's chest. After that they work automatically.

Due to their medical training, the doctor is likely to have done a better job at providing CPR than a random passing member of the public though.
I demand you submit this to Urban Dictionary. Its splendind & I'd upvote if that were a thing on HN.
Of course it will come back, you just need to wait until dynamic typing becomes fashionable again. Development time is still more important than operational speed.
Faker.js is gone, and the README says: 'What happened with Aaron Swartz?'
Anyone who spent any amount of time populating their APIs, apps and websites with temporary fake data for testing purposes, has encountered Faker.js, as of 2 days ago the code is gone from GitHub with the last commit stating 'endgame' and the README: 'What really happened with Aaron Swartz?' If you don't know who is, he was one of the co-founders of Reddit, creator of Markdown and web.py just to name a few, unfortunately he is no longer with us, you can read his life story on Wikipedia https://en.wikipedia.org/wiki/Aaron_Swartz

What does the community make of this ?
It is very frustrating that you can't set a default repo for issues to be created in for a project. Every single time you convert a draft to an issue you have to select a repo from a drop down of all possible repos you have available. A simple solution is just to remember the last issue repo you created and put that at the top of the list.
The best way to learn IMO is to find a way to force you into it.

What worked for me was switching to dvorak. With no keycaps to match the layout, I had no option but to memorize it (initially with the help of a cheatsheet on screen). Conveniently, back then, I had no idea how to revert back to qwerty without restarting X after using xmodmap to switch layout, and I'm the type to not restart my session (or computer) except for updates every few months or so.

It also helps a lot doing this "at home" when you've nothing particularly important to do on the computer (running a basic touch typing tutor program for an hour or two and again later in the evening while just chatting away on IRC or such during the day is great because you're typing but have no real pressure). Not during work. It sucks struggling to get things done, and you're very likely to switch back to the old method and that'll just stall progress.

After one day, I had more or less memorized the layout but of course typing was still slow and somewhat frustrating. After a few days, it stopped feeling frustrating but was still a little slow. In a week or two I had reached or surpassed my original qwerty speed. I never used qwerty during that period, it was learn or bust.
The old schemas will be automatically dropped when the migration is completed. So there will ever only be either one schema (current migration) or two during a deploy.

I'm not sure what you mean by maintainability and performance. It's only during a migration that Reshape will add triggers and temporary tables and such. Once a migration is completed, the tables will look just like what you expect, no Reshape stuff. The only thing Reshape adds in between migrations are the schema and some views, nothing should build up over time.
You may be confusing me with FDR.
Anyone who spent any amount of time populating their APIs, apps and websites with temporary fake data for testing purposes, has encountered Faker.js, as of 2 days ago the code is gone from GitHub with the last commit stating 'endgame' and the README: 'What really happened with Aaron Swartz?' If you don't know who is, he was one of the co-founders of Reddit, creator of Markdown and web.py just to name a few, unfortunately he is no longer with us, you can read his life story on Wikipedia https://en.wikipedia.org/wiki/Aaron_Swartz What does the community make of this ?
You can improve your PDL. Procrastination starts with a permissive thought, like "okay later" or "it isn't that bad yet" or "wait, a new episode, that's important". After thinking this, or in advance, make a list of 5-10 things you usually, in practice, do/think/feel to do your routine. E.g. I want to clean up my room, what do I usually do:

1. Get up and look around

2. Decide what goes where

3. Foreach: take it, go, put it there

4. Optimize movement by buffering items that go to the same place

5. Feel bad when you have to go the same route twice, because you forgot something at the first trip

Now mark important points and points you don't want to do. The former hides your vulnerability, the latter shows it. E.g. you have a chronic lower back pain and a low muscle tone from sitting all day, which makes you want 4 and stops from 3, because that involves bending over and feeling pain. Now guess what? You've found a problem: fix your back pain and sign up for a gym.

Now you don't want to go to gym, rinse, repeat.

Eventually you'll find out some deadlock like "I can't afford a gym and a doctor because my room demotivates me to get a job", but at least now you are aware of the issue. Or you may conclude that you don't really like your physician and maybe it's time to go check another one.
Ask HN: Does anyone procrastinate on going to sleep? Any solutions?
Kubernetes Network Hardening Tutorial
The author names three 'harmful' defaults:

1. Relying on implicit SQL queries

2. Using the default User model

3. Using automatic migration names

4. Relying on automatic database table names

5. Using multiple tiny apps

6. Dumping apps in the root directory

I wouldn't call those harmful. Most are non-issues, while others are "unfortunate" at best.

1. I found that the ORM works quite well and it's easy to optimize later. Using `prefetch_related` or `select_related` in the ORM still feels weird (they're just joins), but I wouldn't call them harmful.

2. I found it unfortunate that the info on how to change the User model is hidden so deep in the Documentation. I don't like to RTFM, but with Django it sure is worth it; same goes for 1.

3. I occasionally do it, but most of the time, I don't and never had an issue.

4. It do rely on that and found django's naming scheme to be a non-issue. I guess this might be more important if you need to change your database out of band (out of django band, that is)

5. This point is unsubstantiated. Apps aren't mere packages but also define a scope for the admin tool (which I use a lot and think is an integral part of Django) so that it will group models and allow individual access (i.e. apps also provide scope for your permissions). I use tons of apps but I wouldn't call it a harmful default.

6. Yeah, dynamic languages might produce naming collisions. Still beats imports like `org.example.publib.boulder.yourmoms.maidenname.models.impl.Account`
I meant I got high-quality blog posts from real people rather than copied/mass generated/spammy content, sorry.
The amount of small but needed tools/drivers/patches/workarounds R.Loew produced is so relevant that we can say that he almost single handedly prolonged Windows 9x/Me life for several years.

the obituary thread on MSFN :

https://msfn.org/board/topic/180215-rloew-1952-2019-has-pass...
Well, do you also understand that that was the only environment they knew, with their family and community around, and they had way less skills, education, etc. to make it wherever they ended (and many didn't make it) than an average person today.

Compared to that leaving a modern job and - if things don't work - try to find another later is nothing...
The best advice I think I've heard so far against procrastination is: First, find a small sub-task of the thing you want to do, and lay it out clearly. Then commit a small amount of time to starting on that sub-task. Not on finishing it, just on starting it. Usually once you started the thing, you will have no trouble seeing it through in time. Rinse, repeat.
DMCA in 3, 2, 1, ... ?
You can check this post about Dart event loop and Isolates (which also has a video explaining it): https://medium.com/dartlang/dart-asynchronous-programming-is...

And the Dart 2.15 announcement (latest version as of today), which had a focus on making Isolates fast: https://medium.com/dartlang/dart-2-15-7e7a598e508a

EDIT: the main article about concurrency in Dart is actually this one: https://dart.dev/guides/language/concurrency
I'm currently interviewing for a new role, and I've already been told my expected salary is too low for me to be a senior engineer. Hardly my fault I didn't know to ask for a higher amount?!

Will obviously be challenging this if I get an offer...
A company I work with was recently acquired by a US company (I'm British). I was quite confused when, in a meeting, all of the Americans suggested that the company should implement mental health days several times a month. My thought was: isn't that what the weekends and holidays are for? It would be quite unusual for British employees to demand mental health days. Perhaps the lack of paid vacation explains the difference (Although, I haven't had a full week off since 2014 because I'm a freelancer, so maybe they have a point).
This was an unnecessarily devisive comment.
This is a good way to get an insight on almost all transformations.
In Norway tax return and salary is a public information available to everyone, handled by the government.
Japan does not have a system of law. They were forced by the US after WW2 to pretend they care about these things, so they just looked what other countries have, translated it, and from then on they were able to show anyone who asked "see here we have these huge volumes with lots of written down laws, what do you want from us?"
But in reality, laws are extremely relative in Japan, much more so than in any stable Western country.
> Also every other country does the exact same thing afaik

Not true. US, Russia, China, North Korea - sure. Can you name any other countries? Can you give examples for even a fraction of "all other countries"?
Hey, if they’re willing to pay that much for it; charging any less is charity
Yeah, unfortunately this is the truth (and also the definition of vendor lock-in, right? :)

IMHO GitHub Actions is the flip switch here. Eventually it will become so useful and powerful that its advantages will overshadow any migration's cost related to tools like Jira.
You can still use Web 3.0 for that. Alternatively you might use Web0

See: https://news.ycombinator.com/item?id=29767375
You simply don't get approved for a credit card if you say no. They won't even accept your application without permission to pull your data.
The movies you mention always only show the atrocities from the American side, ending up justifying, pitying and damning or saving the American protagonist.
America is just always front and center. Americans just can't help being up their own ass so deep that even when they express criticism they can't not make it all about themselves.
I'm really sorry about the generalization, but as someone living in a city where US expats come to escape and complain about their own bubble by forming another, I'm reminded on a daily basis how that generalization never fails to hold true.
Rabies can be split in terrestrial mammals and bats. Terrestrial mean wild and domestic: A fox can have rabies, but a horse or a camel can have rabies also.

Grouping it in this way is important because terrestrial mammals can be vaccinated easily.

Has been done with success in central Europe just drone seeding a zone with meat baits with oral vaccines on them. 90% of the foxes and jackals in an area can be vaccinated really fast with this system and then you repeat it each year to include also the new cubs. Then you stop messing seriously with the population to avoid empty territories and new animals moving to the area. Is perfectly doable if you have the political will of vaccinating and -not- culling the vaccinated population. Culling increases the probability of having rabies in the area.

Dogs and cats can be (or are required to be) vaccinated, so is not a big problem either. You just need to watch for stray cats and dogs and use the baits again.

Bats can't be vaccinated easily and they are big travelers, so still are the main reservoir in Europe. We still don't have a solution for this problem
People pay for VPNs but continue using the web with their normal accounts, thinking their privacy is protected.
A private search engine would be a much better way to protect the privacy.
i agree, though it's not just a bias. it's a lie, meant to keep those who don't have the capital to sit the fuck down and work for their employers like the rest of them.

especcially since time and time again those poor people who do contribute major inventions, without having much capital, have been, one could say, robbed of their invention by people who do have lots of capital.
yeah of course money was exchanged, but not in relation. yeah of course nobody can say how well an invention will lift of, but should be considered in the exchange of goods. that makes it to expensive for the buyer as they cant be sure the risk is worth it when really considering it? then you are an non-Lisper: you know the cost of everything, but the actual value of anything? nah....

money has to go. there is no other way. we need to stop valuating things with money. or rather: at all. Value is a synthetic property, imagined by have's to keep stuff away from have-not's, enforced by the state, who has a lot but is really nobody, since we made it so easy to distribute blame across periods of governance. (not saying we should embrace a kazakh model, just we should be all equal workers)

now, commence the downvoting.
The level of pessimism here seems a bit gratuitous. Working with my partner worked well for me, but I've seen people in similar situations achieve a lot of success through participating in supportive online communities (e.g. a Slack group for alumni of a coding bootcamp), or coworking with friends (whether or not everybody is working on the same stuff). Therapy can also be helpful, both in addressing the roots of the problem and in providing some external accountability. And there are doubtless many other options if you look around a little.
In a world full of defib drones swarming the skies surely donut sales would plummet.
Yeah, it may just be me, but I was looking into WebDriver crates yesterday to try and control browser engines, and there are non-async ones, but async ones seem more common (at least in terms of blog posts talking about them).

The examples they give to use the API using async, I really don't understand, and I can only assume I'm missing something: the example steps of going to a URL, finding a resultant element, entering text, then clicking the search button, then finding another element and then capturing a .png snapshot image for the result are in my mind all sequential, and depend on the previous step: I really struggle to understand how async helps in this case (at least the basic one), as I don't see how any of those steps can be parallelised.
Yes, I think not having keycaps helps enormously. Force you to memorize the layout and you can't get lazy about it. https://news.ycombinator.com/item?id=29837101
I hope you'll fully recover soon! Most people hoping COVID-19 burns through the entire population are not considering the ramifications of wide-spread long-covid.