skysight-inc/HackerNews huggingface dataset:
I can't think of a language that belongs less in that dichotomy than Python. Programmers used to gush over it like crazy; they only stopped because it became ubiquitous enough that there was no point. Javascript, PHP, and C get an order of magnitude more hate.
Pattern matching is nice syntactic sugar for tablesque conditionals. Table driven decisions without the table.

As in truth tables, where the conditions are encoded in cascading if / then if / ... blocks vs captured in a precomputed 2D array.

I forget what we call that style of programming. It's mentioned in Code Complete. Though it's not a common idiom.
Confessions of a complex human episode 1
Man I used to love C# so much - and then I realized what a godsend Maven/Gradle were. I still think C# is the better language and I'm biding my time - is there a decent Maven/Gradle equivalent for C# yet?
This might be the most exciting group of new features since the beginning of C#. Those tuples...seriously sexy.

But, as much as I love C# (I changed jobs so I could work in it) this just has a pungent code smell to me:

p.GetCoordinates(out var x, out _); // I only care about x

Ug, some random underscore? I'm no language designer, but something maybe could have been done better here? It just looks fugly to me.
So, Ruby has:

consequent-expr if antecedent-expr

...which has all the same problems as the PEP308 example, as far as I can tell. Its (implicit) else-clause is just always nil.

I can't tell from the author's argument whether this condemns Ruby as well, or if something about the PEP308 style was uniquely bad.

I could see something definitely worse about the readability of this code:

{long expr} if x else {another long expr}

but the author didn't discuss that case.
Shouldn't you have a Lamborghini instead​ of a Tesla?
But "condition" is just a placeholder. A concrete example would be:

msg = if (status == 0) "done" else "error"
What is awful about:

foo = [transform(bar) for bar in baz.list() if condition(bar)] ?

Seems very readable and expressive. Or are you complaining about how they execute?

Also \ used judiciously with proper indentation can break statements over multiple lines without too much pain.
It’s a computer-era simulation of the 100 (?) year-old convention of using underline to represent emphasis in typewritten documents.

Or maybe the same convention might have even been used before typewriters, to mark up manuscripts? (A manuscript needs clear instructions to the typesetter, because someone’s handwriting might not make the distinction between Roman and Italic scripts immediately obvious.)
I agree. The more mature developer understands all languages have their strengths and weaknesses. I really like Python myself, and it's in my top three list of languages I like (Scala, Ruby and Python -- not in any order).

Even PHP, which is not a well designed language at all, has at least attempted to make core language improvements in PHP7 and has supersets like Hiphop/Hack which use the same syntax and avoid most of the insane typing pitfalls.
Comprehensions were inherited from the math and science community where such constructs are used a lot. It happens that Python is very popular in those communities.
Using the proper query (site:gao.gov "do not distribute" pdf) you get 5 results, not 40 million, none of which are documents labeled "do not distribute".
‘World’s largest fintech hub’ expands from Singapore to India
Oh, you’re with them? (2016)
Windows 10 Tip: Turn Off File Explorer Advertising
Take away the parens (which python is pretty explicit such structure should not be required to be legible).

msg = if status == 0 "done" else "error"

From a compiler perspective that's a bear to parse.
Yup. Ruby blocks, FTW.
Option types are the way to go for something like this:

public static class Parse
{
public static Option<int> TryInt(string str)
{
int value;
return Int32.TryParse(str, out value)
? Some(value)
: None;
}
}

var x = Parse.Int("123").IfNone(0);

var x = Parse.Int("456").Match(
Some: x => x * 2,
None: () => 0
);

Parse.Int("456").Iter(Console.WriteLine);

https://github.com/louthy/language-ext/blob/e6ff382a1752c7de...
Ah, and Python uses whitespace and colons to disambiguate, which would ruin the efficiency of this form.
When we start writing web browsers in WebAssembly, we shall have gone too far.
Burnaby Heights is fairly cheap. Right on the 95 B-Line, 25-35 minutes to downtown.
Belfast isn't that bad.
I've yet to see one of those "let me rant for ten pages about what's wrong with {{x}}" articles for Elixir, but it's probably just a matter of time.
is the cloud notifications something I could use for push Notifications in Android and iOS app?
It's pretty common in languages with pattern matching to use underscore as a catch-all (ML family, Haskell, etc.). I'm not sure how the underscore is a code smell; if you want wildcard patterns without throwing a bunch of unused variables into scope (which can definitely lead to non-obvious bugs), you have to use some symbol.
If anyone else is curious, this is called a ring species, and there are only four known examples: https://en.wikipedia.org/wiki/Ring_species
I mentioned this in another thread, but I wish they'd tell the Visual Studio Team not to use them, then - The SOAP and WCF tools will still happily generate code that requires out parameters.
I come from a mathematics background and when I first saw comprehensions I really liked them. They read remarkably similar to Set Builder Notation [0]. I think so long as you don't go crazy they are perfectly readable. But at the end of the day the onus is still on the developer to ensure their code is readable.

[0] https://en.wikipedia.org/wiki/Set-builder_notation
Yeah, why not "out null" or something similar? Magic characters make me sad.
For what it's worth, I'm the one of the folks that designed the original tuple class (the reference type, System.Tuple, that shipped before hand).

At the time, we picked one based indexing because we felt it sounded more natural when spoken allowed (mirroring saying something like: This is the first Item in the tuple).

I would expect that the design bled over into ValueTuple, which looks very similar to the reference version, except, of course, it is a value type.
Yeah, I flagged the story because of this. Let the mods decide what to do.
GvR seems to make readability a priority.

But my problem with

true if cond else false

is it makes impossible to chain fast choices.

I thought it was a bug, then I understood it was a feature (after talking to him).

GvR hate ternary operators, the python 3nary is midfix, it sux, but it removes the possibility for people to do long chained if/then/else in unreadable ways.

If you think I am right and it sux, understand I think forbidding this kind of operator is like hating shortcuts and goto.

Since I love shortcuts, goto and chained ift and python, I logically found ways to not care of PEP308 because it is a non problem.

Dispatch tables, and/or used wisely ... there are a lot of ways to not care about PEP308.
5 Reasons Why Every Employee Need Customer Service – Tagove
>"Also, there was a request to derive a formal proof while Ammon watched"

You were asked to drive a formal proof? Why exactly? How often is that asked at an actual tech interview?
Yea, I like list comprehensions. I mean they make sense once you're use to reading the syntax. That's just like the following in Scala:

foo = baz.list().filter{ bar => condition(bar) }.map(transform(_)).toList

If it's your first time looking at Scala, you'd probably be like, "What the fuck is that shit?" but as you learn the language, these types of patterns become common and make a lot of sense.

I mean it's not like weird rules in natural language. At least the grammars for computer languages are strict, with very few edge cases (compared to human/spoken language).
I'm going to wait for Vega, and I'm hopeful that Radeon can compete with Nvidia at the enthusiast level for once. If not, guess I'll get a 1080ti. I'm also thinking of getting a UHD monitor or QHD ultrawide. Any recommendations?
Any idea when Mono will support C# 7.0?
> You also get the bonus of being around the brightest folks from around the world and that provides great mentorship opportunities

This is actually the biggest advantage for me. I moved to the Bay Area after school because I am a technical person, but stayed because of the culture (capital and lowercase) and the large numbers of very smart people. Have lived in NYC and Bremen, but the Bay is home. While the money and weather are great, it really is ready availability of top-tier folks. (In a coffee shop on Mission St., I literally tripped over a person I later came to realize is probably the single most accomplished programmer in a particular domain, not to mention a great person to talk art with.)
The difference between Ruby and Python here is that Ruby has a perfectly functional ternary operator that works as one would expect. It also allows some other crazy syntax which can be appropriate in some cases, but it doesn't force you to use it in all cases.

Python does force you to use their awkward conditional expressions; there is no normal ternary operator.

There's a big difference between a language which lets you write hideous code, and a language which forces you to write hideous code.
I'm his co-founder and this comment is unnecessarily personal. Ammon has done over 900 technical interviews (https://www.reddit.com/r/cscareerquestions/comments/5y95x6/i...) and there's one negative reference to him specifically on this thread.
Almost, you can't declare a generic local lambda.

public void Test()
{
// Doesn't work
Func<A, string> lam = (A a) => a.ToString();

// Works
string LocalFunc<A>(A a) => a.ToString();
}

Also I think if the local function doesn't close over any variables in the containing method then there's no additional memory allocation, whereas the lambda itself must be allocated.
They have potential to add huge value for candidates. I.e., if I looked for a job, I'd appreciate somebody to take the annoying part - scheduling, initial talking/pitching, resume sending, introductions, filtering out obvious mismatches, negotiating good terms, etc. - and only do the actual interviewing and deciding. But from what I hear, most recruiters are underqualified to do that, and/or prefer to play simple numbers game - spam enough people and you may get lucky.
It's not impossible to impeach somebody.
I agree, but they sure seem to be submitted a lot, and then commented on by nyt staff. How very odd indeed.
Even more justification for my recent switch to linux. My only regret is using Windows for the last ~5 years.
Python is an imperative language. The control structure, based on indentation, is well matched to Python's imperative character. Attempts to retrofit a functional style to Python fit Python's syntax badly. Lambdas, conditionals, and list comprehensions look painful if they extend beyond one line, because the indentation assumptions of Python just don't fit.

As a practical matter, only use Python's functional features in one-liners.
> the thing I'm most excited about is pattern matching. Having used F# for a short time, that was the biggest stand-out feature; it really does make some code much more concise and expressive.

I'm all for C# getting more expressive, but what it calls "Pattern Matching" simply is not the same thing as real honest-to-goodness Pattern Matching.

C# "Pattern Matching" is little more than destructuring, or switch, on steroids.

Much like how the compiler assists you when writing subclasseses so that you've implemented all the required methods, real Pattern Matching (F#) gives you the same guarantees from the compiler that you've handled all the possible cases appropriately.

This makes real F# pattern matching much more useful than "switch with destructuring", and helps you grow your programs in a safe way.

The C# way has all the same problems as the switch statement, which gives no feedback about what cases you've handled.
I'd love to see a formal study on how often Americans "go out" for food rather than buy from a grocery and cook it themselves. In Scandinavia, the cost difference between eating-in and going-out is much, much larger than here in the USA.
Why all the moralizing, when codesmoothie is asking for a technical solution?

Yes, porn is destructive. Codesmoothie didn't ask for our feelings on it. Just answer the question.

One thing I'd recommend is using OpenDNS. They have policies that allow for blocking that kind of material.

Codesmoothie in addition to whatever technical solution you decide on, I'd recommend asking a trusted friend to hold you accountable, like someone else suggested.

Have your trusted friend put the OpenDNS settings in your router and have him set (and keep) the password for your router.
Elon Musk teaches us how to Reinvent ourselves Rapidly and Continuously
I just met an azure representative in a event and they said managed mysql is in private beta right now. It will take them around 3 months to get it out if it. Even I'm waiting for it
Nah he's right. They have a history of axing stuff with 0 care about personal or corporate users.

Search 'Google graveyard' , etc.

There may be a huge market, but your dev time will earn income for not many months/years.

I'd rather see my products live longer than that, and me focusing on growth, than constantly trying to restart development just because Google worries much more about their bottom line, than their users.

But, to each his own.
Unrelated and on same site, downvote as it's unrelated:
[The SEAL raid] "left 10 children under the age of 13 dead"
https://theintercept.com/2017/03/09/women-and-children-in-ye... !

Couldn't drones fly in instead, snip the cords off the PCs, and drag the machines out again? Build this tech sometime soon please?
Agreed. There's really truly nothing here. Here's a direct link to the correct query, and a cut-and-paste of the google search results, including snippets.

https://www.google.com/#q=site:gao.gov+%22do+not+distribute%...

[PDF]PDF, 47 pages - Government Accountability Office
www.gao.gov/assets/660/656344.pdf
Jul 30, 2013 - in the RRAP and those who did not—during the course of their PSA duties as appropriate. IP officials told us that they do not distribute non-.

[PDF]GAO-06-282 Breastfeeding - Government Accountability Office
www.gao.gov/new.items/d06282.pdf
Dec 14, 2005 - 11 Hospitals that are certified as "baby friendly" do not distribute free formula samples to new mothers. The American Academy of Pediatrics.

[PDF]View Report (PDF, 40 pages) - Government Accountability Office
www.gao.gov/assets/220/216089.pdf
Apr 20, 1992 - Other utilities generate and transmit electricity but do not distribute it. U.S. electric utilities are interconnected into three large transmission.

[PDF]Assisted Living: Examples of State Efforts to Improve Consumer ...
www.gao.gov/new.items/d04684.pdf
Apr 30, 2004 - consideration. However, these benefits depend on when the residents or their representatives receive the form. If facilities do not distribute the.

[PDF]View Report (PDF, 48 pages) - Government Accountability Office
www.gao.gov/assets/90/89534.pdf
account because they do not distribute the indirect costs in the G&A activity to each of these programs. l. Additionally, the Service does not, through FFS or any ...

[PDF]View Report (PDF, 33 pages) - Government Accountability Office
www.gao.gov/assets/670/668245.pdf
Feb 2, 2015 - shareholders and do not distribute dividends. The authorizing legislation states that each Fund shall have a board of directors that is composed ...
An Afternoon of Code Golf (in Lua) to Achieve 4x Performance in Redis
agreed. Finally a good example of "fake news".
For reference, the articles this author cites do not appear to search or reference gao.gov.

Also, the original query according to the author is: (gao.gov do not distribute pdf) which basically captures all sites that have gao.gov, do, not, distribute and pdf listed anywhere in any order.

The issue the author speaks about is both alarming and important, but unfortunately gives us a broken example.

[edit]
I also do not see the relevance of the author's including verbiage of Trump being White after discussing Obama's alleged lack of action. Are they implying it's a race issue? Or implying that Trump's followers think Trump might do something because he is White? Unclear and likely irrelevant.
I still like Google's Inbox. Which seems like a forgotten and abandoned child sometimes.... But it works great for me. Makes it easier to wage through the tons of stupid mails.

Talking about Mobile version here. The web version is not good.
Oh no, was your phone okay?

^badjoke
> A "code unit" exists in UTF-8 and UTF-32; they are not unique to UTF-16.

Technically yes. But they are only "exposed" in UTF-16. In UTF-32 code points and code units are the same size, so you only have to deal with code points. In UTF-8 you only have to deal with code points and bytes. UTF-16 is unique in having something that is neither code point nor byte but sits in between.
Local Man Discovers Hindsight Bias, Shocked By Accuracy
I'm working on it :) [1]

"Also there is support for the much more difficult higher-order polymorphic types like Monad<MA, A>. LanguageExt 2.0 provides a fully type-safe and efficient approach to working with higher order types. So yes, you can now write functions that take monads, or functors, or applicatives, and return specialised types (rather than interfaces or dynamic results). So intead of writing a function that takes an option, you can write one that takes any monadic type, bind them, join them, map them, and return the concrete type that you pushed in."

[1] https://github.com/louthy/language-ext/releases/tag/2.0.26-b...
The real benefit of pattern matching is when the compiler helps you handles the different cases and warns you about one's you've missed—which isn't provided by C# 7.0's version.
Pick up some F# and use FAKE / Paket? I'm not sure I'd call Maven a "godsend" though, it has its own class of annoyances.

http://fsharp.github.io/FAKE/

https://fsprojects.github.io/Paket/
One point to consider is that by having an increase in the supply of places to stay the overall average cost of said places to stay will go down, even if the cost of an Airbnb is similar to the hotel. Supply and demand.
Does Circularity (Self-Reference) Pose a Problem for Element Queries?
Do you think a dice roll is random?
you're right; it's not (my other comment on this page: https://news.ycombinator.com/item?id=13835765)
Mostly like if I submitted some code for review and peppered it with underscores because "I don't care about those variables" I'm pretty sure it'd come back to me with a remark about starting to care.

At the point your writing code you don't care about, something might be wrong.
Would just like to chip in and say I really appreciate plv8 and all the effort you put into it. :)
I doubt quantum indeterminism takes place at the scale of a dice

So, no
Is this just enabling the behavior?
Response header size notwithstanding, isn't this really a problem of app servers having really shitty default headers?

You make people turn off safety features manually and the rest of us are fine.
From the very article you are sharing : Chaffetz "conceded he didn’t make his remarks “as smoothly” as he could."

The argument is always the same, the idiotic part is when you need to convince an entire nation to sign up for your healthcare plan but instead blame people for having an iPhone.
Understanding Video Conferencing App Meet by Google Hangouts
snapchat DMs are used by young people; think AIM. snapchat stories is an old-people product. It fits into their existing frameworks of social networks: public broadcasts.
Also, the original query according to the author is: (gao.gov do not distribute pdf) which basically captures all sites that have gao.gov, do, not, distribute and pdf listed anywhere in any order.

I found interesting docs there .....
I think that's silly of you to do. The article has a legitimate point, especially since so many people misunderstand why Snapchat is used.
Drink mine black, thanks though.
Judging by the title of this thread, I think the GP meant to type Europans, not Europeans.
In the warrantless wiretapping of US citizens. I do not agree with the court system's rubber stamping of surveillance of the entire US population, and think it and anyone who supports it are disgusting.
Which CPU was it? I doubt Plex are using the latest ffmpeg, but I saw big jumps between the i7 920, 2600k and then finally the 6800k. That said, my current Plex box is an Atom C2758, which seems to handle 1-2 streams just fine (1 direct, 1 transcode).
I'm sorry you had a negative experience and we're working hard to make sure it doesn't happen for anyone again.

We started the company to help those people for whom manually submitting their resume to companies isn't an option. We don't use resumes as part of our screening process because we're looking to find skilled engineers without elite resume credentials. For them, submitting their resumes directly results in either silence or rejection.

We've been able to find many of these engineers jobs at companies they'd never imagined they'd be able to work at. We just had a self taught engineer working as a pizza delivery person in Cincinnati, hired by Instacart - his onsite interview was the first time he'd met another engineer in person. We helped a recent high school graduate, who didn't attend college, get hired by Apple - his dream company.

I'm the founder so I'm obviously incentivized to highlight these success stories and I don't claim that we've built a perfect process for everyone yet. We're working on a hard problem, judging the skill of other human beings in a fair way and vouching for them to companies that have maintained the same hiring process for decades and are resistant to change. Our approach is not perfect but it has had life changing outcomes for many people and we're doing our best to increase the % of all Triplebyte applicants that's true for.
I mean sure it's weird given the history but would it actually be that weird? If WA just becomes another VM like the JVM or LLVM that people can target it wouldn't surprise me to see someone port a web browser.
too much like perl?
You're right, thank you! I'll add an edit.
> And once Vancouver or any other city starts working for them, Silicon Valley will lose its exclusivity.

Silicon Valley doesn't have exclusivity. It has startup funding. It's all about the money, not weather, not talent, not Berkeley, not Stanford, not visa availability. It's about money.
> Are interlinear ruby annotation codepoints actually used for their intended purpose anywhere?

Yes

> And what are you supposed to do when you encounter one?

Nothing. Don't display them, or display some symbolic representation. You probably shouldn't make ruby happen here; if your text is intended to be rendered correctly use a markup language.

----------

Unicode is ultimately a system for describing text. Not all stored text is intended to be rendered. This is why it has things like lacuna characters and other things.

So when you come across some text using ruby, or some text with an unencodable glyph, what do you do? You use ruby annotations or IDS respectively. It lets you preserve the nature of the text without losing info.

(Ruby is inside unicode instead of being completely deferred to markup since it is used often enough in Japanese text, especially whenever an irregular (not out of the "common" list) kanji is used. You're supposed to use markup if you actually want it rendered, but if you just wanted to store the text of a manuscript you can use ruby annotations)
Why does everything have to be a big deal these days? Forgive, forget, move on.
Because women should not have to "forgive, forget, move on" when it comes to being disrespected and having their career held back.
Its crazy that this idea was invented in 1975[0], and I haven't heard of it, even after:

- 4 years of self learned programming

- 4 years of university for computer engineering

- 5 years in the industry, as a software engineer

[0] https://en.wikipedia.org/wiki/Continuation-passing_style