skysight-inc/HackerNews huggingface dataset:
1) This is not the case that the author presented, though - it was specifically about 3 spaces instead of 4. This tells me that the author simply doesn't hang out with python people.

2) On the substance of your concern: I think the evidence is clear (although I'm aware of no study) that having both syntactical control characters (typical curlies) and style-only indentation is more likely to lead to the outcome that you present, because the eye will always gravitate to read by indentation, whether it's syntactical or not. So have the indentation be the syntax makes this problem more easily avoided, not less.

IE:

def foo() {
nums = [...]
sum = 0
for x in nums {
print(x)
}
sum += x
}
Python name-mangles properties that start with "__" to emulate privacy. Run:

class Base:
def __init__(self):
self.__field = 1

def baseMethod(self):
print("baseMethod " + str(self.__field))

class Derived(Base):
def __init__(self):
super().__init__()
self.__field = 2

def derivedMethod(self):
print("barMethod " + str(self.__field))

d = Derived()
d.baseMethod()
d.derivedMethod()

And it prints:

baseMethod 1
barMethod 2

Ruby doesn't really have fields that are private to subclasses, but Ruby also embraces monkey-patching, so that's not entirely surprising.
Lately Siri gives me an error when setting the timer. But upon inspection has actually set the timer correctly. It's equally infuriating and comical.
The VCs don't mind, they got a great exit at the IPO. It's the employees and investors in the public markets that eventually paid for your free meals.
The honest opinion of a stranger is useless.

A summary of the opinions of many strangers has some signal.

The facts of a stranger have some utility.
My reaction would be to show some respect and humility when actual cave diving experts told me that I was on the wrong track.
Bill Bryson's "A Short History of Nearly Everything" is an amazing layman start.

It's a little dated (the first edition came out in 2004!) but to be honest, if you're interested in a "human-focused" intro and how the concepts fit together, things haven't really changed that much.
> Note how almost all languages you take as shiny examples of virtue post-date Python

That's because Python is old. It's as old as Haskell. It's older than Java and JavaScript. It's older than the Borland Delphi and C++Builder IDEs. When Python was released, C++ was only 5 years old. Python is older than Linux. Rust and Go are both older than C++ was when Python was released. Hell, when Python was released, Perl was only 3 years old.

Further, Python's age doesn't mean that we can't or shouldn't criticize it. You shouldn't get a free pass on what you could do better just because you've done other things right. We should absolutely point to what doesn't work well and lobby for improvements even if they require significant overhauls. While, yes, Guido and company have worked very hard on developer experience out of the box, it would be really nice if someone would care about system administration and the long tail, too. It's great that your engineers love your tools, but someone still has to live in the homes that they build.

It's not like anybody here is shocked or confused when they hear people complain about Python versioning being a rats nest. I'd wager we've all experienced it at least once just like we used to have problems with multiple concurrent versions of the Java Runtime Environment being installed or other fun forms of dependency hell. If virtualenv or conda are such good solutions, why do so few projects seem to use them or deploy with them? If popularity or ubiquity are the measure of what's good in the ecosystem, doesn't that suggest that there's still a problem to be solved? A language should direct programmers to styles of system design that makes system management easy and clear, and Python does not do that at all. Is there a problem with complexity? Is there a problem with lack of education?
I had friends that worked at Apple during that time.

Everyone in the Valley knew Sculley was killing apple by installing a parasitic Midwest style management class.
One of the things I've learned, watching real estate in the Bay, is that it's rarely one factor in particular that's to blame for everything. Instead it's the cumulative force of many factors shaping what does get built, where, and when.

For instance, NIMBYs requiring near-infinite shadow studies in SF. It doesn't prevent building, but by raising the costs and extending the timelines it helps reduce the amount that gets built. What does get built costs more. The result is fewer and pricier units, and what maybe could have been a 25% subsidized building is now 10% in order to make the numbers work. Or maybe a building goes from five stories to three and no longer has any affordable housing at all. At scale, lower-margin proposals go from further down the list while still being in the black to being in the red and never being built.

Which is to say that developments in progress should not be taken as proof that there are no problems with zoning or NIMBYs. Just that it's possible to overcome them if there's enough money to be made.
Good list - except for Phoenix Project - sorry you had to read it - utter insipid crap.
Not calling them a pedophile?

Additionally, what kind of hubris is it to imagine you can help with a rescue you know little to nothing about, especially in a way that could be viewed as a PR stunt for one of your companies?

The proper response would have been for Elon to say: 'We were only trying to help. I am glad everyone got out ok, and respect what the divers did to make that happen. Perhaps what we built could be used in future situations and we are prepared to work with rescue organizations to see if that is feasible.'

If he had said that, everyone would have cheered him. Instead, he really began his slide off the cliff. Happily, he seems to have calmed down lately. At least, I haven't seen any serious missteps in the last few weeks.
You only need a sprig or two of tarragon, though. The grocery store won't sell you it in that form, but for a company making a few thousand meals it's perfectly doable. A rasher or two of bacon, a quarter cup of creme-fraiche, a sprig of tarragon, and a single pie-sized circle of pastry should easily be doable for £5.
>No one gets a single peanut

You'd be surprised: https://www.youtube.com/watch?v=HoPFQm9PQ_M
I think this sarcasm has gone over some folks' heads.
Best of all I only advertise through podcast ads and Medium posts about what I learned by blowing $50k on podcast ads.
There's a limit to how much this can be accepted though - he has broken rules before and this has consequences not just for him but also other stakeholders.
>The fact that people still claim it had no effect is a PRODUCT of their efforts.

I hate to sound flippant, but circular claims like that are gonna get called out on HN.
What's the difference between an entity with a long, postitive reputation, and a new unknown entity?

Do you consider them equally attractive?
Bacon about £1.50, creme fraiche £1.00, fresh tarragon £0.70, ready pastry about £1.30, frozen peas around £1.00.

So about £5.50 with out discounting for the fact you're over buying

http://www.mysupermarket.co.uk/
You haven't taken receipt of the package by it being dumped on your doorstep. (I suppose with the exception of a delivery instruction 'leave on doorstep'...) While it may not be 'their fault', the choice of courier and their instructions is; it's also to some extent a cost of doing business.

That said, I seldom see or have stuff left outside in the UK - assuming no 'if out' instruction - the vast majority of the time it's a 'sorry we missed you' note or occasionally with a neighbour/over the wall.
I'm really disappointed in the quality of the replies to this. I would hope that HN would be just a little more fact based, instead of having people willing to argue over trivially falsifiable claims.

The fact is, booby traps which cause bodily injury (including paintball, very easily, without protective equipment) are definitively illegal in most jurisdictions. This is the truth whether you spend 5 seconds or 5 hours googling.

Do better, all of you.
No.

But there IS a large amount of hyperbole surrounding it.
Yeah, it does build up from radicals->kanji->vocab over 60 levels. I agree, for someone who knows Chinese already WaniKani is probably not the most effective way to study. But for people who are unfamiliar with the Chinese/Kanji character set learning radicals first really helps with mentally parsing characters with high stroke count. However as I’m sure you know Kanji readings can be a lot different from the Chinese characters they came from, so there is still some memorization work to be done.

Also WaniKani doesn’t touch on grammar at all, so it works as only a part of an overall study routine. I do wish there was a similar SRS service for grammar/reading. Building up your own decks is such a huge amount of work, and for someone who is just learning it’s nice to have a curated deck that is verified for correctness. Sounds like you have an awesome system that’s working for you though.
It depends on your definition of "deep".

Imagine an if, inside of a foreach, inside of a function definition, inside of a class. This is not terrible code, it's perfectly reasonable.

Now you're indented four levels in. Now combine this with some rather unreasonable and outdated assumptions that PEP8 (automatically enforced in many shops and OSS projects) has, like pretending that people are still on glass terminals and that anything longer than 79 characters is a problem. It also insists on four-space tabs, so this very simple construct has eaten 20% of your line budget.

..not to mention how it makes your code harder to read. I also share the author's concern about how you're less able to separate your debug code from your actual code.
Been a while since I’ve had it but recall liking one of their burritos.
So you're saying what, that he should have hired mercenaries to kill the guy and get his stuff back?
Easy for simple code for middle schoolers. For grownups with large codebases to develop and maintain, it's not optimal.

Yes, like the tiny puny baby middle-school children who built microscopic useless toy "programs" (not even worthy of the name) at Instagram, YouTube, Dropbox...

What I really, really hate is the lack of static typechecking.

Then don't use dynamically-typed languages. Not everyone shares your tastes, nor do they have to.

And just as bad the fact it is impossible to encapsulate code.

The more you write here, the more I think C# is a great language for you. And I don't dislike C#! But you want a nice statically-typed object-oriented language with data hiding. C# is an example of one. Python is not.

And then the GIL!!

I've written at length about how the existence of the GIL is the result of tradeoffs that seemed perfectly reasonable at the time (keeping in mind that Python is older than Java, and I suspect older than the average HN commenter). With 20/20 hindsight would a different approach have been better? Sure, but if they'd had the ability to see the future in enough detail, the folks who chose those tradeoffs probably would have bought lottery tickets instead of building Python.
We could accelerate the inevitable consequences of this approach by curating a list of which areas police don't give af, then publish it for enterprising criminals and anyone considering living there.
It seems completely obvious to me that we continue to find new types of life. Given that "More than eighty percent of our ocean is unmapped, unobserved, and unexplored". I could not find a number that represents unexplored mud and muck, where this specimen was found. My guess is something very close to 100.
Extreme heat wipes out almost one third of Australia's spectacled flying foxes
Tbf, I have done one of those boxes(Hello Fresh) for nearly 2 years and I has absolutely definitely taught me how to cook, purely through repeated experience. It goes beyond being able to follow a recipe - after cooking nearly 500 meals I have enough experience to make delicious meals without looking at timers or measuring everything down to a gram.

Plus, each meal works out much cheaper than eating out. So for me personally this was money extremely well spent. I also live in the UK.
Penny Marshall, TV Sitcom Star and Hollywood Director, Dies at 75
Criticism can be good or bad. Which one it is depends in large part on how its presented.
I've added Codepen's MIT License [0] to your name to credit you correctly at the right spot on our CSS. New build will be rolled out in a couple of hours so kindly check back again.

If however you're still uncomfortable about us using this experiment without a coffee, do let me know and we'll remove it from Bubblin completely. Just kidding, we'll sponsor you a coffee as well ;-)

[0] https://blog.codepen.io/legal/licensing/
How I tried and failed to quit Google
Algorithms Are Robbing Markets of Trade Signals
Just wondering, other than the visualization - what other functionalities/use-cases does this differ from say node_exporter -> prometheus -> grafana?
Are you communicating with someone at netflix? Or how hard would it be to filter that traffic out.
Turning on reader mode has it display the massive GDPR waiver / "partners list" instead of the actual article :)
Tinder fires its head of comms following participation in a $2B lawsuit
Dependent typing generally doesn't play well with type inference (leading to things being all kinds of undecidable). I doubt it will ever make it's way into f#. GADT might, which provides a subset of the nice things of DT, but is much much easier to implement.

F* has dependent types though.
No easy way to remove the package.

"pip uninstall" has been around as long as pip has.

Theoretically, it can upgrade the version but the user mostly don't.

In practice, people deploy to a virtualenv that gets recreated on each deployment, and tend to treat a virtualenv as an ephemeral thing.
Why is it still taught as a tree, then? That seems like a pretty big discrepancy to just be a matter of "simplifying". Would also be more inspiring to students to know there is so much more to discover, as you point out.
It takes roughly the same amount of time.
Not to mention the immediate flagging of any such post. Sure, political posts are frowned upon here but this is an extensive report on a widespread disinformation campaign utilizing the tech that no doubt a number of HN readers helped create, or help maintain.

I wonder who would benefit from flagging this off the frontpage as quickly as possible?
Dynamicland

https://dynamicland.org/
Dotnet core on Linux and macOS has been a good experience for me so far.
Events like this are occurring again and again, at increasing frequencies, all over our world. Australia, one of the world's great enthusiasts for human population increase and fake "economic growth", is still in denial about its past and present.

Human history has imposed on us a task we are failing to meet.
is there any easy way to give each user their own docker runtime? I always thought it would be very useful, this way you can give all of your users the ability to easily run all the software they want.
I am not debating the mechanism of capitalism, its ability to allocate goods and how or whether it creates prosperity. For the record, it seems to me the most natural way for humans to interact with each other.

My point is that to think that one knows what is best for society is similar to thinking that one knows how best to allocate goods. It just isn’t possible to know. Any capitalist will surely agree that value is purely subjective.
Picking up pennies in front of a steamroller
2018 statistic of the year: Plastic waste fact tops list
Or maybe they just didn't know the jargon for these things. This industry is filled with individuals having no formal training and it is filled with plenty of non-standard jargon. It isn't unreasonable to ask that said jargon not appear in the one-liner when the intent is to sell, so to say, the framework.
I think ~100 years ago they really got into vertical construction but other than that (and possibly central plumbing) your point stands..
"To concatenate a Stream of Strings, call .collect(Collectors.joining())"

"References to missing variables will be sent to the output stream, unless you use quiet reference notation"

"You need jetty-web.xml and web.xml files in your JAR to register a servlet with the server"

Language/file syntax of any sort. Names of things (classes, methods, functions, commands, parameters, magic variables, magic files). Steps you need to take to get something running.

Isn't it ridiculous that some people are considered "experts" simply because they memorized a bunch of poorly documented names for a piece of software?
The irony is I’m born and raised in Miami (where the car break in happened), but believe it or not I had to travel to the 9th safest city in the US to get kidnapped (more accurately that’s where I escaped, and the kidnapping happened in a small beach town 30 minutes south).
The correct sort for that situation is a most-significant-digit-first variant of a radix sort. Arrange the documents into 10 piles based on hundreds digit. Pile up all of them except the zeroes, then sort the zeroes recursively. Then pull the next segment out of the pile, and sort it recursively. And so on.

This is often the most efficient way to sort physical items when you have a constrained range and working space, without custom equipment.

And yes, it really helps to know about variants like the American Flag Sort to realize that you can mix and match algorithm properties. AFS is an in-place sort, which is horribly inefficient for physical objects, but the observation that you can do a radix sort in MSD order is a refreshing additional observation vs "radix sort is always LSD first" the way card sorters work.
This article say it all https://www.theinformation.com/articles/the-seven-year-itch-...
When I was a kid I used screen capture software to do what handbrake does today. Considering how much lower quality DVD quality is, it should be fine. This is incredibly time consuming though.
Good list! You should add Orientalism by Said and Open Society and Its Enemies by Popper - both classics!
It is a review of a graphical dictionary of gestures.

https://mitpress.mit.edu/books/dictionary-gestures
Holy shit. Was this in the US? What city? Can you share more of the story?
But it is an issue because it's tax dollars, and people don't like paying taxes.
Purism Ships Libre 5 Development Kits
What "fundamentals" exist for Eth that allow it to be valued at a specific price point? Eth has no earnings, no assets, and no liabilities. Its intrinsic value is close to 0. It could be totally wiped off the planet tommorow and almost nobody besides crypto traders would care. Crypto trading should be based on technical analysis not "fundamentals".
Meanwhile today Trump did 180 on his promise to save Second Amendment, and bump stocks got banned. Next will be any gun with more than nine round. Next... well you get it.

I know I don't come with much help (but been there before - had $3,000 stolen from my car and cops couldn't care), it even more important for you to vote in 2020 ! Your vote is frankly the best deterrent that you have!
This is what excites me about science - the discovery of the previously unknown and the revision of what we previously thought we knew.

I wish our education system promoted this idea - "what we know about science will change in your life time. It's likely that in the future, most of what you're learning today will be outdated. It doesn't mean what we're teaching you is 'wrong,' but rather, it's the best of what we know now. You're about to enter on a glorious adventure of discovery that will not end at graduation. Science is about hypothesis, iteration, and testing...and the discovery of unanticipated results."

Instead, what's taught is a static version of reality: What we know today is all that is worth knowing for the rest of your life.
probably needs written in C because built-in types are closed

"Everything is an object" does not necessarily imply "all objects are always infinitely monkeypatchable at all times". It also doesn't necessarily imply "you can change how the parser interprets literals".

You're also going to be really mad when you learn about __init_subclass__ and the fact that Python lets you write a class that can't be subclassed!
They are not just static and rigid, Haskell has type inference , which is what ihmo makes it superior
Underlying this perspective is an implicit assumption that conventional social filtering - a practice as old as we can remember - serves no social good; that it's all just smoke and mirrors.

At the very least that's a remarkable assumption. We've been doing this for essentially ever, and it impacts all kinds of stuff. In some sense, musk is to CEO's what trump is to the presidency: all that diplomacy is just nonsense.

And - perhaps there's a kernel of truth to that; after all, the way we communicate has changed more radically than I think we really like to admit. I don't just mean the technology and the means, nor the social fashions: just read (transcripts of) old communication: I think we really think differently now than a few generations back. So perhaps old norms no longer apply completely.

But I'm not quite willing to assume that without at least some careful thought. I think it's at least as plausible that trump and musk (to be fair to musk: they differ in most ways, and trump is way more extreme) simply don't communicate very strategically at all. Despite all the hot air there's little upside; it's mostly mess.

Sure, it's entertaining. And as entertainment, that's fine. But would you want to actually deal with people like that? And if the world has changed in many ways, what hasn't is that you're going pretty much nowhere alone. You need cooperation and help to amount to anything constructive.

So: maybe there's a small chance this is the new norm and humanity has changed in pretty basic ways under the influence of todays pressures and technology. But there's also a considerable chance it hasn't.
I don't expect reimbursement, I expect the company to buy the tickets and pay for the hotel room upfront. Ground transportation and meals are negotiable, I suppose.
Best thing? Find another job. Pick up some currently-useful skills (AWS certification is great if you aren't currently working with it).

My rule of thumb is to not stay more than five years anywhere, if you want to make sure you can move when needed.
I have used pipenv, virtualenv, pip, poetry, xyz. I still have consistent problems with package versions and the like.

I like the library `invoke` for scripting A LOT, I just prefer to write my larger software in other languages.
I'm a C# and Typescript guy, and recently spent a day with each of Elixir and F#.

I loved them both!

Elixir has a great 'getting started' site, which was really well put together, and similarly the 'F# for Fun and Profit' site was great too, so I feel like I had equally good resources to introduce me to them both.

I'd love to spend more time with both of them, but in general I'm more comfortable with static typing, so if I progress further with either, it'll be F#.

I only wish that Microsoft would start treating F# as a first-class citizen alongside C# :/
> Take a blue apron recipe with you to a grocery store, and I bet you can buy all the ingredients for $2.5 a meal

Where the hell are you shopping that you can self-construct a blue apron meal for $2.50?

$2.50 will get you the basil to use in the recipe and that is about it. Then you need the chicken ($7 minimum) and produce ($5-$7). The starches ($2-$5). Any one-off spices (could be $1 or $15 depending).

Sorry, but people who brag about eating for $2.50/meal either live in places with a dirt cheap cost of living or don't know how to add.
F# async and mailbox provide a decent actor model.

Writing an F# wrapper on c# libraries is usually very easy. You can also call c# code directly and it doesn’t look too bad.

Computation expressions can fulfil the needs of macros in many cases in a controlled way.