skysight-inc/HackerNews huggingface dataset:
Yes, I was thinking that too. Hell, you can write:

do_x if a.y?

Unfortunately (or fortunately, depending on perspectiven- great power and all that), Ruby allows things that Python doesn't and it's not hard to find yourself in a write-once mud bath.

I do like Python's modules over how Ruby handles them too. Ruby's import (require) is akin to C/C++, with modules as a separate idea. I prefer the style of importing exactly what you need.

But I know Ruby better so it's my go-to.
takes out a screw-driver, begins lengthy and conspicuous disassembly process (-:
I've really enjoyed

https://www.manning.com/books/get-programming-with-f-sharp

Think it gives a good overview of the language and it's easy to read. Considering that after a day of working I'm not that sharp anymore it was a good read for me.

Also mentioned in the article, but Scott Wlaschin book really show the strengths of the language. Most of his stuff is great actually, but his website (FSharp for fun and profit) is not the most coherent read, I love using it as reference. I also recommend his conference talks, it has quite a bit wide range of topics.

https://pragprog.com/book/swdddf/domain-modeling-made-functi...

There are also few courses on pluralsight, but cannot remember which ones I really enjoyed.
Using ES modules to skip JavaScript build in large web app development
I get your point, but do those other languages not often have differing versions available as well? Its equally possible to install many different major and minor versions of Java, for example.

And I regularly run into issues with people using non-distribution Java packages that don't really integrate as well with the OS as the packaged one would.

I feel like some of his complaints about the ecosystem there were really just complaints about his specific setup.
What does "full integration" mean, and why couldn't that be achieved with some macros? He already showed how he used macros to achieve nice integration with LLVM (written in C++) for his interpreter.

Worst case, you'd have to write a name mangler, to teach your FFI about C++ symbols, but I imagine that would be at least an order of magnitude easier than an entire compiler (150K lines C++, 85K lines CL).
Wasn't one of the reason Waymo (Google) figured out he took the files because one of the vendors accidentally contacted Waymo instead of Uber when they did an RFQ (since the designs were almost the same). I wonder how different things would be if that didn't happen.
Yup, broader costs. Losers often pay quite a substantial part of the legal fees of the winner. A comparatively extreme example: in liability cases with injuries, the judge will often allow quite broad legal costs (about 25% of total claims is legal costs). It's an extreme example since registered attorneys cannot work on that basis, but goes to show that substantial costs to the loser does happen.
Because when you're paying $10 for one meal you kind of hope it goes a little further.

To put this in perspective, if I go to the store and buy a 10 dollar meal, I'll be eating: porter house, slathered in butter and olive oil, asparagus fried in the juices, with a baked potato. I'll have also a side of chilean grapes and a slice of cheese cake for desert.

10 dollars is a crazy amount for a dinner. (Ok that might cost more like $15)
Ahh yes, that homogeneous block known only as 'Themedia'.
Most people look at reviews to see whether the thing actually is what it claims to be, so reviews saying that it is in fact what it claims to be are useful.

Doesn't mean you have to, just means that it'd be more helpful to others if you write "it actually is what it claims to be" reviews.
> I wish python had some equivalent to the switch statement that didn't involve workarounds with dictionaries, because sometimes you just want a clean way to deal with a value that can take 7 different forms.

I am with you there. I have often wished for a C-like switch(). That said, I think the best Python leans towards the functional, so instead of a switch(), it probably would be better to come up with some kind of multi-arm match more in line with modern functional language semantics. That could also be more flexible with respect to the type of the tested expression. Maybe something akin to the Rust match syntax.

> I regularly wish python required some sort type indication for function parameters, because dealing with libraries that take complex objects as function parameters can be an absolute nightmare.

Well, of course Python has type annotations. TBH, I don't use them. I tend to be rather pedantic about Sphinx doc for functions, most especially __init__() constructors. Kind of old-school and manual, but it works -- make doc and read it in your browser. The other thing I do in constructors is 1) make them very tolerant of what gets passed as a parameter, and 2) be very pedantic about raising ValueError in the right place, at the right time, with a clear message.

I have a good friend that I argue with regularly -- now this guy is a compiler front-end guru -- ex-Sun senior staff level C/C++ compiler tech lead, very smart -- but we argue regularly about Python idiom. He litters his Python with extremely un-idiomatic assert(isinstance()) to check incoming parameters. I think C poisoned this man's brain with respect to type checking.

There are two things wrong with his code: 1) It raises the wrong exception, the correct exception is TypeError, not AssertError. 2) It totally breaks __int__, __float__, etc, so I can't implement those on custom classes.

In my constructors, to the extent possible, I do "type checking by re-construction" -- parameters i and p gets run through something like:

self.i = int(i)
self.p = PClass(p)

So if you send me a string for i or something weird that implements __int__(), everything is cool. And PClass.__init__(self, x) is responsible for turning p into an instance of PClass, leaving it alone if it already is a PClass, or raises ValueError. This idiom makes type checking as tight as you want it to be, but doesn't break Python Zen.
I cook meals in SF most nights for way less than $20 for 2 people without trying, meat or seafood and veggies.
Came to a similar conclusion. I use Python a lot, and it certainly has its problems. However, the article's analysis doesn't even begin to scratch the surface of this topic in an informed manner.

Instead, we're presented with paragraphs written by someone who can't read a stack trace:

In [7]: def foo():
...: print('foo')
...: print('bar')

File "<ipython-input-7-47f5b52e9e07>", line 3
print('bar')
^
IndentationError: unexpected indent
That's exactly the point though - it's an indie renaissance for consumers, but for creators it gets harder and harder. As creating games gets easier, competing against everyone else to make them gets harder. It's the same reason as why creating a best-selling book is hard, because everyone can and wants to write a book.
We aren't but you all acting like snowflakes over DVs is absurd, and you're replying to a 25-day old account. I don't give a shit at all about this drama; my preference is that you contain your meltdowns to reddit.
Amen a billion times to that. And then some.
But it's not about you. Just being on this forum puts you in the critical thinking 1%.

538 fails in that most people think that the daily stats are Silver's betting positions. He "predicted the 2008 election."

We understand the difference, but the crying campaign staffers last November did not.
SRS is very helpful for learning. I've been using it to study different technical fields and languages.

Nicky Case recently made this interactive explanation of how it works, which is itself an SRS system: https://ncase.me/remember/
It's amazing how many people just use their cars to steal packages. If the camera angle was slightly different, it should be trivial to track them down (license plate).

I wish police would track down thieves more effectively...
You could even put this stuff inside of the glitter-dispenser: http://bernews.com/2010/04/police-tasers-anti-felon-confetti...
I find the narrow column very unpleasant; on my screen it forces a lot more scrolling than should actually be necessary for how much content there is.
I've had better luck if I give Pandora a bit more input data (try the "add variety" button).

That being said, I used to listen to Death Cab and I'm not sure what to recommend either. Maybe Andrew Bird?

I think the lesson to be learned here is that recommendation engines are difficult.
Have we really gotten to the point where "some dude quit Facebook" is considered news? The fact that the NYT has degenerated to this is disappointing. While there are certainly fair criticisms of Facebook, this trigger friendly news coverage of the company is becoming outrageous and is detracting from any previous viable points.
Gossip is P2P. The protocols can be hidden as if they were SSL or some other widely used protocols, but without the PKI and the centralization problems that has. Evading the censors will probably be a continuous effort. The great firewall has not succeeded in preventing the use of proxying services and VPNs, despite the efforts.

If internet censorship becomes too widespread, people will use other communication mechanism to conduct trade. As I mentioned, Bitcoin is broadcast over satellite and radio in some locations. You can send a transaction as an SMS message. A bitcoin transaction is ~250 bytes and can be encoded as a sequence of 16 emojis. I can print a bitcoin transaction on paper and the recipient can scan it.
> I thought the Blue Apron recipes were too complicated, used too many pans to wash, and wasted too much packaging material.

I've rarely seen a BA recipe use more than one pot and one pan, most, IME, use a single pan (often with a wipe-and-reuse step to do that.)

If anything, BA goes out of their way to minimize the required cooking vessels compared to most recipe sources (even America’s Test Kitchen, which is actually pretty good about not gratuitously using cookware.)
That HN is downvoting you this hard is near-conclusive proof that the whole thing will be revealed as a hoax within a few weeks.
In that case they are not competitors. Either they are 9+ years behind or they are not even in the same race.

That’s not a bad thing. Boeing for example is also a profitable aerospace company, but they don’t launch to GEO. You basicly pay a near constant rate per lb to orbit and most of the money is from the large side of thing.
Blaming Mocks for Bad Design
Great thinking. If you steal someone’s camera, and move it, and film yourself in a private location doing an indecent act, can you turn around and sue the owner of the camera for breaching your privacy? You had no permission to move the camera in the first place.
Ah, you and your fancy non-OCD brain.
> I've always thought there's a much simpler language struggling to get out of Python [...]

I tend to assume that about all languages now, and when I need to use a new language I try to just learn that simpler language initially. I skim the documentation for the rest, but don't learn it until I actually need it (either because the functionality is necessary, or it can make the code better).

It can take a surprisingly long time to need more than the simple language.
This excellent,can't have enough articles like this. Reminds me of all the corelan.be articles that cover similar topics.
I heard F# supports this newish thing called dependent typing which allows the type checker to not only check for type correctness but logic correctness as well.

I've never worked with dependent typing but is it true? Does the F# really take away the need for all unit testing on a project?
>We go back to a world where connections and your parents determine how far you can go?

go back? I don't believe we ever left such a world behind. but this probably varies across different cultures.
Yeah at my store they have prepackaged sides and preseasoned meats, you just stick it in the oven really.
The window watchers is an intetesting phenomenon, and you have a point in that in a way it’s like keeping useless employees out of the way. However, I would hesitate to say they are actually useless, but rather the labor market in Japan is such that it’s extremely difficult for a good employable person to “hop” jobs. Once hired out of University, which is the main avenue for hiring for the sarariiman, workers have little chance to change jobs. In that atmosphere and culture, it’s nigh impossible to have your window watchers go out and find a job where they could actually be productive. Many of them (most?) are able and productive but the company has moved on to other things, or refocused, realigned, reorganized and these people get trapped.
I asked a "C all the things!" developer a while back why he hated Python's enforced indentation and in a whole lot of words he basically said that it makes it difficult to visually track scope when you have long chains of conditionals.

The standard Python developer response to that is, "Aha! You like braces because they enable your bad programming practices!"

However, I found the best way to illustrate that point is this: I asked him, "If you're never allowed to use a text editor/IDE that highlights braces or the space between them ever again would you still prefer braces to indentation?"

I had to re-explain this concept several times but eventually I think he understood my point at least a little bit...

"Aha! You're using spaces because Python lacks decent development tools! In fact, because there's no static typing you can't even make a decent IDE for Python! Spaces are a crutch!"

Sigh.
Yeah and no jury is going to convict someone for this.
There is a little more to the story, I just shortened the story for the sake of brevity. Cause technically I'm supposed be working on an API issue.

I value all my wife does around the house and for the family.
>certain branches of the project (usually the factors the respondee is responsible for) are more worthy of merit than others

The same exact thing would happen in a world of "pure equality of opportunity".
"It does hinder affordability for the people living in the apartment as well."

You're arguing that people staying in affordable apartments makes their own apartment less affordable. Really. I love the logical backflips people will do to justify an ideological belief.

Do I really need to state the obvious? If someone is living in an undesirable situation solely because the rent is low, it's likely because they can't afford something better.
And isn't Tesla also already doing this at a large scale (with owners being forced to give up their driving data)? And probably other car makers, but more quietly?

And what's the advantage over also using extensive simulation to add tons of experience quicky?
Innocence in this sense isn't binary.

Is the death penalty issued for thievery?
> Most ISS components were less than the Falcon 9's capacity.

I want to see the attempt of building the ISS with a Falcon 9. Some assembly launches would be within lift capacity (especially on the expendable configuration). Some payloads would actually fit in the fairing. But when you have it in orbit - what then? The Space Shuttle not only lifted the modules into space, it berthed them to the station, and carried the crew together with the payload to execute the assembly operations and be able to react in time.

As much as I agree that the Space Shuttle was way too expensive, it was irreplaceable for building the ISS, and had it existed back then, the Falcon 9 wouldn't have changed that.
I'd begin by adding a new architecture, and merging an existing library which can convert expressions to GPU kernels -- same as he's doing now with his LLVM-based one. Why would it be any different? Is LLVM so GPU-friendly that it's worth it to write 250K lines of code just to be able to call it a bit more easily?
AdNauseam Clicking ads so you don't have to

https://adnauseam.io/
> 1 (versions) and 2 (installation) have to do with the ecosystem, not the language. Unsigned packages are a real problem, but hating on community-maintained software is just weird. Most software in your local Linux distro's repository is maintained by a "community" that might just be one person working in their spare time.

Regarding 1: I'm sick of people saying that the ecosystem != the language. No one is going to be able to prop up an alternative ecosystem and get more traction than the language's own ecosystem, so you are basically always stuck with whatever crazy ecosystem comes with the language. Most of what people care about is the ecosystem and the syntactic sugar relationship the ecosystem has with the language, so it is a very real criticism imo if a major programming language has a bad ecosystem.

You are stuck with the ecosystem you ship with the language, so get it right the first time.
That's an interesting perspective, one I had never thought about yet rings absolutely true.
I propose Equivalence of state machines and everything that possibly happens in your computer, using any language, any framework, any stack of libraries, ...
As a former certified Java programmer, moving to Python was a breath of fresh air. More concise syntax, no more braces all over the place, much less boilerplate (think getter, setter, public static void main(String[] args)) and not everything has to be an object. First-class functions, yay ! (I haven’t used Java seriously since 1.6 so I don’t know how much the language has evolved since then). The only reason I’ve had to go back to Java is specific libraries, and speed.

Python’s philosophy of convention rather than constraint is a nice chance from Java’s corseted mindset.
But I’ve never had to use Python in a large development team, so I don’t know how well it holds up with a large group of devs.

As an aside, if you have fun with comprehensions, itertools and lambdas, I urge you to take a look at functional programming!
I'm interested to learn how was it done? Works as expected, great work OP. People like you make me always hungry for information
Making judgements about people with whom you're doing business with based on their values and actions is perfectly fine. What isn't fine is making those judgements based on identity or on a general swath of people.
> After 10 years of marriage, my wife thought it would be helpful for me to start cooking, as she was getting stressed out with our 2 years old.

After 10 years of marriage your wife had to be the one to bring up that you should probably be helping with basis household chores??

> I can't tell you how much time we save in planning meals and trips to the store.

Is it because you haven't really saved the time? Also People VASTLY overestimate the value of their time in my experience. And they also VASTLY overestimate how much time it takes to plan and shop.

> My wife doesn't have nag me about what I what I want for the week's dinner.

Well if your opening line didn't cement my opinion for me this one did. As the person who plans meals in my household let me let you in on a little secret. She ASKS you what you want because she wants to make you happy and/or wants you to like what she makes. You've placed her in a no-win situation, if she asks you what you want she is nagging but if she doesn't and you don't like the food she also feels bad. The fact that you call it "nagging" is just crazy, wow, the nerve of your wife wasting all of your valuable time trying to make you happy. What a bitch. (/s if that was PAINFULLY obvious)

> The quality of the food and the time saved is well worth the price.

False

> I know there are some disadvantages about Blue Apron such as waste, carbon food print etc...

How nice of you to throw in a one line disclaimer, I'm sorry but that's not enough and undersells the horrible underbelly of this industry.

> Out of 100 meals I would say that we only had maybe one that was mediocre.

I don't believe this for 1 second.

> I suspect Blue Apron will survive as it will probably be taken over or bought out. It's kinda the leader of the pack and the market will eventually consolidate.

Oh, can't wait for them to consolidate and raise their prices up to realistic levels. If you think their prices are high now I can't wait to see what you think about their prices when they've killed off or merged with all their competition. Investors aren't going to subsidize it for forever.

> It also helps that I might have helped I bought about $1000 discounted gift cards at Costco.

What does this even mean??
I think Blue Apron recipes are generally too fancy: check out Sun Basket. I like them more, and they are pretty good on the timings (if it says 20 mins, it's actually 20 mins).
> Most programming languages pass function parameters by value

The biggest irony here is that if you wrote your code in C instead, you would actually pass more arguments by reference than in equivalent python, because you're going to use pointers for everything but primitive integer values.
What kind of neighborhood do you live in? What's the average house price there? What's the racial demographic look like?
Yeah, we had a package stolen off our porch, so we did that. It's a bench with a liftable top. The plan was to put a padlock on it. All of our packages are addressed to:

Shaftway
Place in Bench - Code 1234
24601 Where I Live St.
My City, ST, ZipZipZip

We order a lot of stuff, and probably average 3 deliveries per day. In the last 3 months we've had exactly one package placed in the bench. And we never even got around to putting the padlock on it. All a delivery person has to do is lift the lid. Delivery people don't care. I probably wouldn't either if I were one. I'm not going to read the boxes I'm delivering for instructions; I'm just going to leave it on the porch like I do with 99.99% of other boxes.
What countries have widespread online grocery shopping? I've seen it advertised a bit in the US (more and more recently), but haven't seen it gain a strong foothold yet. I've had some friends that used Amazon Fresh. I've used it once or twice, but wasn't confident it was price competitive and also didn't want to wait the day or two when I could just pick it up for dinner tonight. For me it's just an expectation and familiarity thing (I get confused about all the Amazon services and forget that most of them exist).

I've heard some people talk about why grocery delivery "won't work" in the US. There's a huge last-mile problem. For the first few years, Blue Apron was northern east-coast, then west-coast only. It took awhile to get most states covered. Another argument I've heard is that people like to pick their food. They're worried they'll get stuck with blemished/bruised food.
>Python forces the indent to match the semantics.

It sounds great in theory, but it leads to problems in practice. If you copy and paste code from any language with C style syntax, it's trivial to fix the formatting based on where the braces are, and your editor can help. With python, testing a 10 line example program from a forum post can turn out to be quite difficult. Not to mention, if a tab character ends up anywhere in your program, you now have a syntax error that's completely invisible to the eye. Lastly, it makes it difficult to have clean syntax for multi-line statements.
I agree with a lot of these points. To get around them I created https://github.com/c11z/python-mk which is a make file that contains the seed of a python development environment. It uses docker containers to get around most of the issues this article brings up.
I've previously used Ocaml at my last job and use Scala at my current one, it's interesting that F# (just judging from this blog post) looks more similar to Ocaml than to Scala - like they've more aggressively pulled out syntax and embraced partial application etc.

I'd always assumed F# was to C# what Scala is to Java - and I think that probably does represent their design goals, so I wonder what the different considerations were that led to them being relatively quite far apart.
That's like saying being a mathematician involves how well you can sell yourself, therefore marketing and networking are core skills in math. Marketing and networking are core skills of life no matter where you are.
What service is that?