skysight-inc/HackerNews huggingface dataset:
> I agree, but instead I would use the term "path-dependent" for hash tables rather than "non-deterministic" because, after all, unless you salt your hash functions, there is really no randomness anywhere. What you think of as non-deterministic really is deterministic but it is determined by the precise order of insertion. This is sometimes also called memorylessness.

You are right that non-deterministic is not strictly correct for non-salted hash functions. That makes it even more annoying, since it is deterministic enough that you might accidentally rely on the order. It is close enough to nondeterministic since iteration order can change when the hash function changes, but also when some minor internal parameter of the hashtable changes.

> Even though tree-based data structures give you an iteration order that is predictable and useful, the structure itself is still not fully memoryless. For example in a red-black tree if you insert an element smaller than all preexisting elements and then immediately delete the minimum, the tree could be different.

Yes, I am aware and a very big fan of data structures that are actually fully memoryless, such as all kinds of binary tries, radix trees, or just wrapped sorted arrays. The latter are totally underrated, since they have very compact in memory representation (just the elements, single piece of heap) and have very competitive lookup performance.

They of course totally suck when you want to do random single element updates, but then just use something else...

I am going to release an entire collections library based on sorted arrays for rust over Christmas...
I don't drink alcohol, but I do drink two cups of coffee a day - one in the morning, and a second after lunch. The first cup is to wake me up in the morning and it makes me highly productive. The second is to avoid the food coma.

If I ever feel stressed, I know I can go for a walk to exercise off the coffee. But most times I'm not.
It just has to detect them.
That's why we invented remote work.
* Learn to think about types first, and the algorithms as a natural consequence of the structure of your data. Richard Feldman: https://www.youtube.com/watch?v=IcgmSRJHu_8,

* Use a statically typed language that allows fast refactoring. Ideally a typed functional language like Elm, Reason, OCaml, or Haskell.

I recently shipped a complex Javascript project (without types) and it is one of the few instances of my decade-old professional career where I had that level of confidence in the robustness of a piece of code I wrote. It remained sturdy in production even in the presence of unforeseen conditions. This was thanks to the habits I picked up from typed FP: parsing and validating all data at the boundaries of the system, better design by modelling data to make inconsistent states impossible, and automatically handling all edge-cases at all times.

So even if you don't actively use such a language in your workplace, there really is a payoff to learning it in making you a better programmer overall.
Context: I stopped drinking alcohol and coffee 5 months ago.

Even though tea also contains caffeine, you can drink quite a bit of it and not get the same effects as you get with coffee – increased anxiety, jittery hands, overwhelming feeling of tiredness when you're on your way down from a caffeine high, etc.

Coffee is caffeine and tea is caffeine, but one is much more potent than the other. I've never been able to push myself over the edge, even when drinking tea.
This is a total nothingburger, a long paragraph attacking a strawman of an argument you haven't even solicited the details of
This shouldn't be news. In the sense that it should be just as commonplace as a bunch of 70 year old men being in charge.
Remove alcohol, caffeine and sugar though and your drink choices are slim to none.
Yeh and what about listening to tv while trying to fall a sleep ?
There is also a difference in how body absorbs caffeine.

With coffee there are spikes in the energy while with the tea the caffeine is absorbed over a greater period of time.

I've stopped drinking coffee for that reason, now having a cup or two only on Sunday. Before I was drinking two, three sometimes more cups during the day and was really anxious. Came back to green tea and the energy is more balanced now.
Is it 4h for every person? Are there people who can do it for 12h every day, 7 days a week while delivering quality code and not getting burnt out?
The big difference is when you stop abusing things like Coffee or Alcohol, if you quit causal use of either one I can't imagine the difference for your body being that much.
The problem is that because young people in places like London and New York normally live in abject shitholes, they are forced to go out to socialise, which implies drinking and expensive food.

I’ve temporarily moved away from London to somewhere a lot smaller, but I live in a much nicer and bigger place for less than half the price.

I invite people over and am invited over. We talk and things, or sometimes watch something and talk about that. I can make a cup of tea or maybe even coffee, and I don’t have to pay through the nose for it. I can cook for a group for less than the price of a single meal outside.

No one gives a fuck if you’re not drinking in your own home. I’ve been drinking a lot less. It’s a sobering experience.
Redirector can use regex too.
I also went without alcohol for 25 months and my expererience couldn't be more different.

I never stopped going out for drinks. I always kept enjoying being with other people, it has never been about the alcohol going out. When going out for drinks, in the first couple of months I would simply order non alcoholic beverages. After a while I realized that it was unnecessarily expensive and I simply stopped ordering drinks. On this the author is right, this led to huge savings. I just got out for the fun of being with other people. As the author himself explains, the drinks are just an excuse to go out and do stuff. Unless of course someone has a problem with alcohol.

I think that the only thing that I can really relate in the article is the difficulty of explaining why I was not drinking. But even that I think is something I did very differently from the author. After a few months in which I tried to explain myself, which got the kind of arguments the author mentions, I started saying that I just didn't like to drink. That's a pretty short answer and mostly no one investigates that.

So in the end in my experience my social life was not affected in any negative way by not drinking. To be honest, if anything, I think it increased my social skills, as I was more focused and "awake" by not drinking. And this is a experience that still has positive impacts on my personality. The only reason I started to drink again is because I actually like the taste of most alcoholic beverages (wine, beer etc), so I was missing a good glass of wine with my dinner.

On the contrary, the experience of the author reminds me of someone that has made alcohol a requirement of his/her social life. Which is looking troublesome because it denotes a poor relationship with alcohol. The author should focus on what's funny in going out without alcohol, which is what matters. Alcohol should not be what makes going out funny.

I would suggest to everyone to go at least 1 year without alcohol while still going out and having a very active social life in a context where everyone else is drinking. This is a great way to better know yourself.
Disaster.radio: a disaster-resilient communications network powered by the sun
I'm the founder of a startup that focusses on tech debt. (Context: mini survey app that sits in GitHub/Lab so the team can track what needs fixing)

To underline the importance of what you're saying - one of the most interesting learnings so far from the data we've seen (~400 developers using it for the last month to log issues in their code/processes, >1,000 survey responses) is that the average developer encountering an issue loses more than twice as much time in Planning and Deployment than in Writing Code. The reason the data shows for this is that when there is an issue in Planning it wastes a very larges amount of time.

The other trend we've seen is we ask developers how each Pull Request made them feel (Happy/Neutral/Sad). We have literally not yet had someone give feedback who felt sad! So you can make your team happy just by asking and listening :)
That varies by locale
Do you limit number of commits? I set mine to 250, and even that is too big of a number, I usually don't need to see that many commits at once. By not doing it in Magit, you're missing many benefits.

Examples:
https://twitter.com/iLemming/status/1193025618742349824
https://twitter.com/iLemming/status/1058507342830923776

Also you can run any arbitrary git command from Magit dispatch, just press `!`
Creating Cross-Platform Mobile Apps Using Flutter
Have you heard of nappuccino by dan pink ?
That's why god invented tonic water with a lime
Tea also contains L-arganin, which is a nutrient depleted by caffeine. Having not enough contributes to the "jitters" people experience drinking coffee, so this is one reason tea drinking can be a bit less harsh.
what would the quantities of ethanol be in 100ml of whisky vs 100ml of beer?
I guess you can experiment, for me chelated magnesium and sometimes l-tyrosine does the trick.
Charles Bryce Perrow was an emeritus professor of sociology at Yale University with appointments at Stanford and Princeton.

He was author of numerous books, many concerning risk of complex technical systems and organisations, including Normal Accidents (1984), Complex Organizations: A Critical Essay (1972), The Next Catastrophe: Reducing Our Vulnerabilities to Natural, Industrial, and Terrorist Disasters (2011), The AIDS Disaster: The Failure of Organizations in New York and the Nation (1990), Organizing America: Wealth, Power and the Origins of American Capitalism (2002), among others.

https://en.wikipedia.org/wiki/Charles_Perrow

He's also mentioned in the episode "LaLa Land: Gallileo's Warning" of Tim Harford's Cautionary Tales podcast. Both the episode and the podcast are an excellent catalogue and analysis of disaster.

http://timharford.com/2019/11/cautionary-tales-ep-3-lala-lan...
Can’t really judge the kind of feedback you’re getting but larger companies have their own set of standards partially driven by problems they had to solve partially driven by whatever the alpha programmer(s) decided upon.

That means that a PR could be approved by Facebook and exactly the same code outright rejected by Microsoft.

My experience is that my code can be rejected by people with 5 years experience or less while I have almost 20 (professionally) simply because they have been in the organization and with the code longer.

It can still make you insecure, especially in your trial period.
I was like $1,000 a month on coffee!? Then I saw that it’s cocktails every day.

“Some people may call that heavy drinking”. Ya think?

Also, here in Ireland, even we call $1,000 a month on alcohol pissing your money up a wall.

It’s crass, but based on a large body of evidence from our history.
Introduce functional languages to your production stack
Models are cached and not large so the setup time is very low. I'll time it when I get to a PC
Anecdotally, a lot of people in big tech do have that mindset.

I think the funnier part is that anecdotally, a lot more people think they're going to do 5 years and bounce than actually do. Because they end up getting romantically involved with and having kids with someone who also values their career, or they get a big break (e.g. promoted quickly or rsu/options exploding... try walking away from $500k/y at 28 to move somewhere where the most you could make is $100k/y). So while a lot of people have that mindset, adherence is less.

I think the differences regarding expenses aren't that much. Yes, you have to pay for rent and utilities. But you'll probably get some food at work (I get 15 meals a week). You might have a gym at work. You might have entertainment options arranged through and paid for by work. Work might pay for your public transportation or have a private transportation network. They might even pay for your internet bill and give you a phone with an unlimited plan (caveat usor).
Law firm alleges Apple, Samsung misleading public about phone radiation levels
Ask HN: Are there any command line (non-web) coding tutorials or camps?
I've been learning Javascript/Node.js with https://freecodecamp.org, and happy with their resources and my progress.

But I can't use the site consistently enough, because I don't feel comfortable having the browser open to their site during working hours when I am in front of screens.

Are there any terminal-based code camps? For example, Git repos that are designed as tutorials and can be cloned and run locally as CLI apps.

I've tried that tutorial with the Lynx browser, but rendering a web-tutorial in the terminal is not what I had in mind.

(As a side benefit, CLI tutorials would also be helpful for people to grep the basics of Unix-shells.)
I first played with L-systems using Fractint https://en.wikipedia.org/wiki/Fractint & also learned to code by writing Mandlebrots, Julias, a Sierpinski Gasket, and lots of other things in Pascal. Fun times, and a great fun way to learn.
> Same but one caveat that still bothers me about it is that it's not a scriptable package.

What are you talking about? It's written in Emacs-lisp, the possibilities are virtually limited only by Emacs's capabilities. Explain what you're trying to do, maybe post your problem to emacs.stackexchange, r/emacs. I'm sure people would be able to help you.
Boring meetings have the same effect on me. The main challenge is, not to snore.
I'm sure it depends on people to people. Everybody has different tolerance levels for both alcohol and caffeine. For me, mostly it doesn't disrupt my sleep even if I drink an hour before to go. But, the thing is decreasing anxiety level if I'm surrounded by a crowd. My focus can be easily fucked up then. While alcohol feels more comfortable at the same time.
I tried to read your "approach" and I got as far as "have to track version numbers" and gave up.

IMO you're inventing problems to justify your own preferences.

For context: I use, and am a proponent of the 'series of patches' approach for SQL migrations. I wrote a tool to apply them, because I wasn't happy having to constantly patch the existing one I'd been using.

I don't really understand what you mean about "managing versions" - you just need a naming scheme that ensures the items can be applied in order. Dates (as a prefix, with a descriptive suffix) usually works well.

I also don't see how you think having the patches over time in in the repo is a problem. If you don't like seeing the full history of changes - just remove the old ones after a while.

The "series of patches" approach also has a benefit that I don't see how your "diff" approach would solve (without some overly complex tooling): upgrading a previous version of the database to the current schema.

With our current system, I could take a database dump from 2 years and dozens of migrations ago, run the migrations on it, and it would come up to the current schema.
NHS data is a goldmine. It must be saved from big tech
Big O can b the upper bound can be for the amortized worst case though.

The other notations (small o and omega) are about scaling (small o doesn't allow constant factors) and pinching (omega means there are two constant factors, one of which forms a lower bound, and the other an upper bound.

True, the word amortized (i.e. average) is left out here, which still makes people's usage imprecise. But there is a decent argument that amortized is more meaningful than worst-case. Because amortized gives expected throughput and latency, whereas worst-case says very little about throughput and only informs you on the 99th percentile of latency.
With n = 26, the combinatorial process takes 4 times as long. 4 x 10^26 "counts". Googles SHA1 collision attack two years ago used roughly 10^19 computations. So we're off by a factor of 10^7.

I'm curious if the rise of quantum computers will make the differences between exponential and combinatorial meaningful in a practical sense.
Tonic has a ton of sugar.
Not disagreeing with you, but outside of enterprise there seems to be a pretty good amount of finance jobs in Chicago. Some of the quant firms pay competitively with the bay area for software engineers / "quant devs"
This is the trap many people (including myself, for years) fall into... You develop dependency on coffee and then you claim it is what makes you focused and productive. But if you never had a cup of coffee in your life (or if you stop and let your body adjust), you'd be as focused and as productive without ever feeling like you're missing it.
Ya, I just mean that without further qualification, it's the upper bound of the whole function that's being referred to, which is equivalent to the upper bound of the worst case.
Mostly, but there are still correlations between the satellites that are corrected by the receiver.

The Earth's gravity field is not deterministic.
Test First Design
> Depends on the type of tea, for example Roibos tea, ginger, camomile don’t contain caffeine

With "tea" I generally mean _Camelia sinensis_, and the variety of teas made from it (black, green, white, yellow, oolong, puerh, ...)
It is. Try sleeping with a smartring, smartwatch or phone app that measures your deep sleep. The difference is shocking. The sleep quality for me is about half of what it is when I'm sleeping sober.
I know, i am from the country. Came back after years of living abroad only to find a big fat deception, a culture of crime and corruption, cheap nationalism, conspiracy theories in every aspect of life, pseudo sciences, incompetence at all levels and lame “pride”. Naturally there is a handful of great people but too few to make a difference. I for one cant wait to get out of here. Oh and that german president apparently has a criminal history of buying properties illegally (he apparently lost a case in this regard), but is better than the other candidate.
Remove alcohol, caffeine and sugar though and your drink choices are slim to none.

Over the course of the year I've seen articles pop up on the supposed rise in popularity of dry bars. I've never been to one myself but I think there are a few in San Francisco and I'm sure there are some in New York. When I'm not at a bar I tend to like flavored sparkling water (a.k.a. seltzer or soda water or whatever else) but I've not seen that sort of thing in bars out here. And seltzer water has definitely not faded in popularity in New York.

Personally I'd like the THC hops stuff you can find out here, but that's typically not sold at bars and not really suitable if you're forgoing mind altering substances.
What would it take to persuade you that chemical weapons attacks were made? What would it take to persuade you that the government of Syria wanted/controlled/launched those attacks?

There seems to be lots of sources that think these things are true. The top search result for `George Monbiot chemical weapons syria` yields [0] in which the third paragraph starts : "There is nothing surprising about this. The Syrian government has a long history of chemical weapons use, and the OPCW’s conclusions concur with a wealth of witness testimony. But a major propaganda effort has sought to discredit such testimony, and characterise the atrocity as a “false-flag attack”."

[0] https://www.theguardian.com/commentisfree/2017/nov/15/lesson...
Came here to say something similar: Learn a functional language.

Not because you'll be using functional languages afterwards for work, but it changes your coding style - even in imperative languages. More towards pure functions and a cleaner separation between data and logic
To drop some personal anecdote..

By far the best sleep I've had on an aircraft was an Alitalia flight in the early 2000s, a 747 from Italy to Hong Kong, economy class. The upholstery was thin worn-down carpet, the seat felt like plywood with metal reinforcements in important places, hopes of in-flight entertainment were confined to headphones operated by a wheel-dial fixed the the seat, there was nothing as fancy as a button. But it was spacious, spacious enough to allow use of its utilitarian space having a nice sleep.

An unlikely benchmark, but a benchmark for getting it right. A simple seat, space to adjust legs, and an adjustable headrest. That's all. I am happy with carpet, plastic/fake leather padding is sticky and therefore uncomfortable, as well as taking up precious millimeters which add up. Carpet is fine.
Do you mean l-theanine?
How does Matrix/Riot accomplish this successfully then?
Are you hinting that Oracle Corporation came out of some database code that was developed at Ampex? I couldn't find anything about Ampex or the CIA on Oracle's Wikipedia page [1].

EDIT: The Wikipedia page needs to be updated! [2]

[1] https://en.wikipedia.org/wiki/Oracle_Corporation#History

[2] https://ce399fascism.wordpress.com/2010/08/02/oracle-corp-na...
SQL Server automatically replans cached queries when statistics change. It's not a complicated process too hook into stats rebuild and follow up with a concurrent replan.

Also databases are designed for SQL, not ORMs. Not using parameterized queries at this point is just archaic and there are lot more problems then query caching to deal with first. The commercial databases can also tokenize input strings and parameterize them after the fact, this is what happens when you submit things as plain text and still use a cached plan.
I mean jesus, of course family background is not independent of IQ, but assessments of family background can obviously be informative in understanding how we get from there to here. To say that, quote, "One's intelligence is not independent of one's family or genetic background" is a flaccid truism. Nonetheless particular comparisons within assessments of family background can obviously in principle be informative even if they are hard to do.

Your suggestion - with this fringe talk about "the sociologist's fallacy - is to eliminate any explanation from any study which does not assign success to invariant psychological metrics.
How does this possibly work then, if you have to review the scripts first?

You're just storing a migration script in the repo still, but it's generated and works against only a single schema "revision"... ?
I have two different sets of Logitech speakers that would buzz seconds ahead of me receiving a text message on my 2G phones.
Sorry, none of this matters. You are still putting words in OPs mouth. You should apologize for doing that and simultaneously saying they made a false claim.
Huh, I was hoping for more maths/CS theory/software architecture. What are some books that you feel really catapulted your understanding of a particular facet of programming to the next level?
Had the same reaction.
I never understood using hash tables for anything else but difficult to compare values like long strings. If you're working with numbers, trees seem like much nicer data structure.
When my house was built, I considered adding a wired intercom system. I could never think of a reason why it would be better than just yelling.
Yes i know that. So when people don't reply, I check three messages has not been delivered and try to find a why to tell my contacts how to unregister. Which is an unreasonable burden I put on people who try signal and decides it's not for them.
Don't trust cloud services. They will get shut down. Self-host or use proper, native apps that store their data in the file system. You don't lose syncing – the one great advantage of cloud-based services – just use Syncthing or one of the many services that we could call "Dropbox clones" until Dropbox decided that providing a commodity is beneath them.
I'm sure different people have different sensitivity to caffeine and certainly the author's sleep benefited from both reducing caffeine and removing alcohol entirely. But if you read e.g. the studies mentioned in "Why We Sleep" by Matthew Walker, you'll see that alcohol's effects are much graver.