jkeisling/hacker-news-corpus-2007-2022 huggingface dataset:
Here are my annotations for how I'm reading these. Feel free to correct or update:

1. Faster to use dict literals than the `dict()` constructor

2. Faster to sort a list in-place than to use `sorted()`

3. Faster to use multiple assignment than multiple individual assignments

4. Faster to evaluate multiple individual conditions than a single multi-comparison condition

5. Faster to use idiomatic implied truth value than to compare to `True`

6. Faster to use `!=` than `is not`

7. Fastest way to check for empty list `a` is the idiomatic `if not a`

8. Fastest way to check that an object is not null is `if a`

9. `enumerate` is faster than doing it yourself

10. Constructing strings with `+=` is faster than string surgery

11. Fastest way to place a number in a string is "%s" (not "%d")

12. For built-in types, using built-in functions (e.g. `len`) is faster than calling methods (e.g. `a.__len__`)

13. For built-in types, using built-in operators (e.g. `+`) is faster than calling methods (e.g. `a.__add__(b)`)

14. But for custom-defined classes, the opposite of #13 is true.

15. Adding up a bunch of numbers using `+` is faster than using `sum`

16. When initializing a large list, it is faster to use list comprehensions than to append each element individually

17. The fastest way to build a large dict is to use a dictionary comprehension

18. Same as #17

19. Not sure what the author is trying to demonstrate here. That `bool(a)` is faster when `a` is an empty list?

20. Faster to use implied truth value of an expression than to compare explicitly to `True` or `False`

21. The fastest way to refer to a list is to use the list literal (duh...)

22. It is faster to perform individual comparisons than to check for membership with `in`

23. Faster to `map` the `str` function to a list of values and join, than to manually build up the string. Also, when doing this, faster to use `xrange` than `range`

24. Faster to unpack than to access each list element individually. Also, as in #1, faster to use dict literal than the `dict()` constructor.

25. Faster to just return the boolean value of an expression than to check for it and then decide what to return.

26. Faster to give explicit values to keyword arguments than to expand a dict with kwargs.

27. To switch the values of `a` and `b`, it is faster to use a third variable than to do it in-place using unpacking.

28. Multiple assignment is faster than unpacking, which is faster than multiple individual assignments.

29. Fastest way to get integer part of a real is to use `math.floor`

30. Similar to #26 - it is faster to give explicit values to positional arguments than to expand a list of args.

31. Faster to access local vars than globals.

32. When trying to safely access a key in a dictionary, it is faster to use the idiomatic `D[k] if k in D` than to use the `get` method.
Those are features, not bugs.
The big difference is that currently scientists are paid and their research equipment funded by someone else; contrasting to the earlier times where usually you could be a scientist if and only if had "passive income" (usually, inherited wealth), so that you would not need to work to earn money and could instead study (and pay for studies in a world without student loans) and research instead of that.
Ultimately the law of the land is might makes right. In a democracy that tends to lie with masses of people (sometimes counter balanced by protective laws), in other instances it tends to rest in the hands of the few.

Ultimately power has to rest somewhere. If it's nowhere then someone will come and take it.

The modern alternative isn't some panacea. It's the corporation and the indifference of rights so long as it doesn't negatively impact the bottom line.
Your blog and content look great! What theme are you using for Jekyll?
Just to make sure that I'm understanding you: [1]

You are saying that there are two issues here:

1. A power inequality that would be created if the regular people's secrets are known but powerful people's secrets were not.

2. A lack of privacy would allow people's private actions to be judged and punished by society if they fail to conform.

You are then arguing that giving everyone access to the data/surveillance would solve the first problem but not the second.

If I am correct in my understanding, then I think that's a very reasonable argument. Although I'm concerned that even problem #2 alone could create a dystopia.

[1] I know intention can be difficult to read in text so I want to make clear: I truly mean this as confirming that I am following your argument, not as an indirect way to say that I think you are wrong.
Neither did most communist states in the first three years of their existence.
Someone not spending money and being indignant at the same time is generally not too interesting. Ask any business operator.
This reminded my of a chapter from Surely You're Joking, Mr. Feynman (or perhaps its sequel).

At one point he was burned out on physics. He took a break. One day he saw a juggler spinning plates on sticks (or something like that) and started working out the physics of it, just for fun. People asked him what that was good for and he said nothing, it's just interesting. One thing led to another, and that's how he ended up with his Nobel.
Yeah I wonder if that was mentioned in the article at all. I guess I could read the article?
Number one problem is attribution. Restricting the agencies will never be effective if you cannot know which one did something.
Yes, like the amount of thinking and novel work Rich Hickey out into the immutable but fast data structures in Clojure, the use of mvcc stm for transactions when you do need to share mutable state between threads - it was there from the start. I don’t even pretend to fully understand half of the things going on in Clojure concurrency on a deep level but I find it reassuring that parallelism was deeply considered from the start. And also grew with even deeper models like core.async.

How many languages are there like this? A handful? Erlang, Scala, Haskell, Go.... Java has always been parallel but with pretty primitive concurrency tools, no?
Data-point: I went to Makers Academy (in London) and was hired eight days after telling their hiring advisor that I was ready to start looking for a job.

$100 (£65k) is very unrealistic for a junior dev in London. I was hired at £35k, which is pretty good for a junior.

Caveat: as part of a maths degree (and as a hobby) I'd done a good few chunks of (self-taught) programming, so was a long way from "never opened a text editor".
Fair, although my experience is still relevant because clients are still hiring developers that have gone through a bootcamp. There is full transparency that the clients are getting developers with limited experience, and they are still willing to pay a premium because of the bootcamp. The underlying concept is still the same - a company trains competent developers and gets a premium for doing so. The only difference is that my company is contracting out the talent instead of looking to get a commission from placements.

"If it's really possible to build a rails developer from scratch in 10 weeks, why not just just do it in-house through an internship program and avoid paying commission to these schools?"

The organizations I have worked with do not have the talent in-house to train competent software developers in a short period of time.
This is a really cool lead funnel that I'd never thought of. I'll have to take a look at these.

edit: Just took a quick look and it is interesting to me that none of these seem to have mentors for the heavier 'corporate' languages like java or C#. Do you know of any mentoring sites for those?
"Frankly, I had enjoyed the war."

The thesis behind the book, "War" [0] by Sebastian Junger. Read this interview, "Missing the Closeness of Brotherhood" to understand why ~ http://goodmenproject.com/arts/sebastian-junger-korengal-int...

[0] http://www.amazon.com/WAR-Sebastian-Junger/dp/B005K5DN5O/ref...
> Are you sure your familiy still uses computers you migrated to mac osx? Maybe after that stunt they are just afraid to ask you about anything else?

Yeah, I'm positive, since they're not entirely without problems and I still get pinged periodically. I also live relatively near them and talk to them all the time.

It's worth pointing out that while you say your issues with OS X are numerous and well documented on the Internet already, you didn't like to any of them. So it's still unjustified anecdotes. Here's a practical one I just dealt with - there's one hold out in my family on Windows, and he wants to set up a syncing calendar between his computer and iPhone. Outlook can't natively support CalDAV - the backend his company's server runs uses IMAP and Cal/CardDAV - so I could either pay for a plugin or convert him to Thunderbird. If he had a Mac, it'd have been a two minute deal since the built-in tools have CalDAV support. But that's just one example, of course.
Those "simple wrappers" are already provided to me by using jquery, etc. Why would I waste my time writing my own? (I realize a lot more is also provided.)

The getElementById is really the most simplistic example and actually does not bother me. Though just look at all the cruft required to make a AJAX call with "vanilla" JS. It's gross. Use a well known, standard library and abstract it all away.
Hacker School has people of all ability levels. I was a total novice, and I got a paid internship with a startup after I finished. Now two years later, I'm still not making 100K, but I'm pretty happy as a full-time developer! (side note: Hacker School would probably object to being called a Dev Bootcamp--their model is very different than the examples you cited and maybe not the best choice for an answer to the OP's question)
This must be less legal than Savedeo (which only creates a video link), because if the extracted audio is hosted on the servers it's very likely an illegal copy.
I'm not sure DMCA would help in this case.
I think a lot of the things you say are contradictions. There's no reason why individuals can only exist 'in a vacuum.' Saying men are 'not ONLY autonomous' is like saying the president is not ONLY elected, he is also unelected. Men are rational beings, ie. they possess the ability to reason (regardless of whether they use it properly or at all), saying men are rational but also not rational is like saying 'this car is a diesel but it is also not a diesel.' If you think irrationality has benefits for survival you need to actually state your case, give examples.

I don't think you understand very well what Rand is arguing, either - the reason I responded initially was because you said 'rationality is good' was an unsupported claim by Rand, as if she used it as an axiom but she doesn't. I'm not making any effort to 'exclude' examples that you give - you just don't seem to fully grasp that which you're criticizing, so it's no surprise that you give inappropriate examples.

And of course something cannot be rational outside of its context - in man's case the context is the environment (and his own thoughts/memories), hence 'consciousness.' Consciousness implies something to be conscious of.

Look, you can try to deny statements like 'doves can fly' (all doves? baby doves? retarded doves? doves with broken wings? doves in cages? war doves?) all you want. You seem determined to deny the basic tenets of human existence - we just think we're individuals, but we're not; we just think we perceive reality, but we don't; we just think words denote reality, but they can't; etc etc. You know, the things that let us go about our daily lives. And let's face it that's what most philosophy does, which is what leads to endless pages of borderline unintelligible and almost always completely useless treatises and critiques about 'pure reason' or 'phenomenology' or whatever. But this is not deep thinking or careful thinking... it's just a sneaky attempt to sidestep the facts of existence and hence shirk responsibility for one's decisions.
2M for an ugly house from 1940...
For general applications and as a matter of good practice, stack depth practically never gets deep enough to make a dent in 2GB.

If your stack is reaching a significant proportion of 2GB you are seriously doing something wrong and it’s likely other parts of your application will start breaking as well.
I agree with your comment above. If SARS-CoV-2 arose from a lab accident, then China might actually be less at fault in a certain sense--the WIV is potentially a lot closer to international standards for virological research than their wet markets or wildlife dealing are to international standards for agriculture.
That’s the question that I never see answered. Presumably if someone is using electricity to mine bitcoins, it’s because they couldn’t use that electricity for something more valuable (including things this commenter would probably consider more wholesome? or “valuable to society”?) like producing food.
Virginia does not have many of the things from both lists. Especially not a ban on non competes or even a fraction of the other pro labor laws.
Fortunately, stars in sql are also really bad for maintenance ;-) So I guess there is indeed no reason to use them!
> It's a couple hundred lines of very straightforward C code

Or a business card's worth of space:

https://fabiensanglard.net/rayTracing_back_of_business_card/
> You spent two days generating a hash? What a waste of resources.

It's for entertainment, and it looks like OP learned something. It's better use of resources than staring at a TV all day, which presumably you won't have an issue with.

>Am I the only one that saw all the articles talking about how bad BTC is for the environment recently?

At this point it's beating a dead horse.
I have to admire Tom Scott for his monologues. Long, edit free, pieces to camera are a really pro move, and so rare on YouTube. There is so much prep needed to make that happen. What a star.
I imagine that's not the case for tech (approximately the subject of HN) and finance (the topic of the article), so while the fact may be true on average, I'm having trouble seeing its relevance here.
I do this with Gnome.
Live and learn

https://en.wikipedia.org/wiki/Bondage_tape
Yup, this is exactly right. Facebook was the last OAuth provider I added because I don't love being tied to them, but at the end of the day some people just want the easiest way to authenticate possible, and Facebook is one of the largest authentication providers available in the world.

And to put it into perspective, yes Facebook is able to collect information about you when you use them as an authentication provider (like when you log in, how often, how long your sessions are), but beyond that it's a pretty narrow interaction.
The same issue I have with Render, I also have with this. If you have to create a config file for the environment, you aren't giving me a Heroku-like experience.

Give me an opinionated default that works well for most situations that I can then build on top of, configure further, etc..
> This is a false dichotomy. OP can be wrong with their new prediction too.

It's not "I was wrong, therefore CRDTs are the future" but "CRDTs are the future, therefore I was wrong." As you say, this new prediction, too, can be wrong, but I don't see where any sort of false dichotomy comes into it.
Sorry I’m sure that’s a great and wonderful product, but I’m so pissed off by yaml files that I can only hope one day humanity will figure out a better alternative to yaml and json for configuration files. I’m using a lot of yaml with the serverless framework and I hate that. And no, infrastructure as code like terraform or aws cdk always looked too limited or strangely designed
> People don't like ultimatums. Even if they accede to them, their trust in the person will decline, and they'll be thinking twice about putting that person in a critical role.

I disagree again. It doesn’t have to be an ultimatum. If it’s delivered as one then what you describe will likely happen.

If a valued employee has an outside offer and brings it up tactfully with their manager it doesn’t have to be so binary as you position it to be.

You can accept a counter at your current employer, erode no trust and continue to do well there. Clearly yourself and none of your colleagues have experienced what I describe which is a shame.

To be clear, if you ever bring up an offer to your current boss you should always be willing to accept it in the event negotiations to stay are not fruitful
Free? I pay the Signal Foundation $3 per month.
I've seen Telsa cars around my area in Texas.
To be fair, there are plenty of ways around it.

Also.... It's rather eye-opening that the Yahoo
community is so toxic. I don't really stick around
to check out the comments, but....Damn. It seems like a
ton of unintelligent hate-filled people congregated
to this one and are having a massive party.
Clarified, my point. If you have a source of fat then you don’t need to hunt rabbits. But, if you have a source of carbs then rabbits are a reasonable food source. Therefore if a hunter gather was eating rabbits they where also avoiding ketosis.
If they are so hot on the issue, why did they allow this to happen before this ruling?
wow, vanilla comment but this is just really inspiring. kudos to her and best wishes to y'all going forward.
No advertising agency sells your data. That would destroy all their competitive advantage. They sell access to the people they have data on. Regardless, it's irrelevant because the App Store labels aren't about selling the data, but about what is collected. (or supposed to be, as claimed by Apple)
Contrary to humans, wolves can thrive on lean meat for months

Does that imply that you feed the dog lean meat and you get to eat a fat dog in return? What does the archaeological record have to say on dog bones?
does this happen if the heavy load is at region scale? because at small scale (within a village in my experience) the voltage would drop. I didn't measure the frequency though.
Everything has flaws, but this was more about friction and marketing. People like the least path of resistance or friction and buying an anti-spam service was easiest so it won. The methods I described have some friction and require people to set things up correctly. Its a trade-off of human cost vs outsourcing cost and outsourcing often wins.
I wanted to think well of Texas, but then I found they are one of four states (out of fifty!) who don't have paper trails for all machines used in the state.

https://www.ncsl.org/research/elections-and-campaigns/voting...
Pirate Bay is a great tracker of last resort .. and when I look for something rare I can't find on a public tracker, it usually showed up on Pirate Bay.
I've long argued against people who say TDD is 'just as quick' when you get used to it. It's simply not true. I still test everything however, the payoffs are multitude. It's important to accustom your product managers to your velocity when tests are included.
Nice. How did you get around the recent lack of a Netflix API [1]?

[1] http://techcrunch.com/2014/11/16/netflix-api/
Yes they do.

It doesn't mean that their comments are interesting. The headline is an implication that Cook's ideas on the issue are interesting. They aren't - they are mundane. But Cook is looked up to. So it is an appeal to authority - it is his authority that gives his ideas weight; not his ideas that give themselves authority.
I feel like source control is a fundamental tool in software development. There have been far too many instances in my work when I just feel I've tangled my code up too much and need a fresh start. working from the past is simple with Git and has saved me from my own mistakes too many times to count.
The individuals writing "religious freedom" laws don't understand the First Amendment.
If I get the idea right, the server keeps a list of Alice's p, g and A generated in advance for a Diffie-Hellman exchange. Bob then can complete his part of the key agreement when Alice is offline and send B together with the message ciphertext. It is vulnurable to a mitm attack just like online DH, but leaking the prekeys will not compromise anything, because the are designed to be public.
"I don't think his treatment was in any way justified by setting off an explosive materials detector."

He set it off multiple times. It is likely you didn't.
He could not provide current id, anything that showed his current address, anything to prove any part of his story, etc.

Any attempt to prove any part of his story was met with no available info. His answers were plausible, but again, there was simply nothing concrete he could provide to explain anything.

I can understand the amount of questioning and length of time he was put through. I cannot understand the denial of water/etc.
Let me guess, are you white?
> You assume that all consciences will reach the same conclusion as yours. They don't. They haven't.

That was my point. I was returning the undue egoism.

> And now you're back at "might makes right" but without any ethic to get you out.

That's where we are right now. It's the definition of democracy (close enough to republican government for the pedants).

> Even granting we are killing thousands of innocents without accountability, Manning's statement is not a safe way out.

Anything that reduces our imperialistic tendencies is safer than allowing the imperialistic tendencies to grow. To throw it back at you: might doesn't make right.
> His affiliation means his facts and actual investigation of the full story are suspect.

That is one of the most blatant statements of a textbook fallacy I've seen in a while. The affiliations and motivations of the arguer do not affect the trueness of facts or the validity of arguments.
designed and built to European standards for structural soundness

But are those standards sufficient for Johannesburg?

There's a reason that building codes vary across the US: the local conditions are very different from region to region. My house in Minnesota experiences subzero (F) temperatures for days every winter and I doubt the outside temperature will go above freezing before March. But we rarely have more than 2 weeks of 90F+/high humidity. A house in South Florida would be exactly the opposite.

Anyway, that concern aside, I would also love more information because I'm always interested in ways to build cheap outbuildings. In fact, I wonder if people looking for simple building ideas for the poor & homeless wouldn't be well served by talking to a few farmers for ideas on inexpensive building structures and techniques.
Different study says Australian's work longest hours

http://www.careerfaqs.com.au/employment-news/719/Australians...
If by "beaten up" you mean "raped", actually.

A lot of people have tried solitary confinement for the reasons you bring up, but more than a couple of days of it and most of them decide it's worth taking the risk in the general population. Solitary confinement is a weird experience.
Quick thought: each byte is a printable ascii character between space (0x20) and 'Z' (0x5a) inclusive. All these bytes appear in all the encoded files. Does anything interesting happen if you interpret the files as encoded in base 59?

(Edit: obviously I'm talking about the files after they have been base64 decoded…)
Yeah not joking, hate away.

It's easy to pick up either once you learn either languages. C# is easier because visual studio is way easier to setup and configure. The language is often more susinct as well.
Nifty, but the graphs need to be labelled better; it's not always clear what exactly the colours mean or what is being graphed.
Well, in this particular case you could just use the "SSH model" - save the certificate in your browser the first time you access the admin control panel, and if it ever changes, you're being MITM'd.