skysight-inc/HackerNews huggingface dataset:
Ask HN: Recommendations for idiomatic Go (Golang) code?
Hi,

I'm very fascinated by Go and was wondering which blogs/videos/articles/project would you recommend for "idiomatic" go coding?

I really want to learn Go and I do not want to write Java/JavaScript/whatever using go syntax
While I haven't tried that particular thing on the other two kids I have used equally unique/creative "punishments" on all of the children.

I set strong boundaries and consistent enforcement for all of them. For minor infractions, my go to punishment is to make them do a plank while we "discuss" what they did wrong. If you have ever done planks you know the agony of holding a plank for long enough. The great thing about this as a disciplinary technique is that it is good for them physically; they are building core muscles so the older the kids is the longer they can hold the plank.

For serious offenses, I always like to come up with something more unique and memorable so it really sinks in.
If you think the NYT is bad, read the BBC coverage on India :)
Are you using the Firefox with e10 enabled (go to about:support and look for "Multi-Processor Windows"). That makes a substantial difference in performance!
Best Mac Data Recovery Software 2017
I think many of us do enjoy complexity (when it works), and have a bias for complex systems that seem cool. After all, one of the reasons many of us are in engineering is that we aren't afraid of complexity, and indeed have an aptitude for it.

I'd like to say more about how we can recognize and manage this bias, but first I want to finish my general purpose AI-driven comment reply engine. I just need to finish migrating the front-end from Angular 2 to React and the backend from Ruby to Go, and then it should be pretty streamlined.
I think your notion of freedom is overly simplistic.

A freedom is the ability to choose to do something. But choosing to do some things will limit the choices of others. Therefore we must inevitably trade some freedoms against others.

Generally we agree on certain trade-offs. We agree that freedom from murder is more important than freedom to kill. We agree that freedom from slavery is more important than freedom to enslave.

But there are many cases where people do not agree on the trade-offs. If you respond to these cases by insisting that your preferred trade-offs are somehow correct by definition, you're avoiding the argument. Why are those freedoms preferable?

And freedom to control property is one of case where people disagree. In order to own property, you must deny others the ability to use that property, and in extreme cases that means denying the starving the ability to eat. Many people believe that in such cases, the freedom to survive is more important than the freedom to control property.
If you're a strong software engineer but without any particular expertise in deep learning, feel free to email me as well. brandon@cardiogr.am :)

We (Cardiogram) in particular are hiring for: mobile engineers (building an Apple Watch app used by 100,000 active users), storage and data infrastructure engineering (how are you going to store 10 billion sensor measurements those users are producing?), and machine learning engineers (now that we have the data, what can we do with it?).

In practice, many people fit multiple categories. There's a tight relationship between data infrastructure and machine learning, for instance, since new infrastructure often enables new algorithms. Likewise, building a new feature in Cardiogram for Apple Watch may give us 10x more labeled data, and therefore make the deep learning algorithm perform better. Interdisciplinary is good.
Another perspective:
The Heroism of Incremental Care – Atul Gawande
https://news.ycombinator.com/item?id=13485354
If it is provable that Coinbase is being used as a means of bypassing VISA et al's restrictions on sites like FetLife, what is stop VISA et al doing the same to Coinbase?
As far as I know, the "bottle" system is available in standard wine too (as wine prefixes), Codeweavers just provides a very fancy wrapper for the system and tools for managing the bottles. And that is definitely very handy if you want things to "just work" and dont want to fuss with prefixes yourself.
A+. Thanks for pointing that out. Pretty embarrassing on our end, but yeah we still have some work to do :)
There may be incentive soon enough, via ACOs and bundled payment programs. When dollars saved go to the bottom line, folks start trying to save dollars.
I see the distinction you're making. Thanks
You're forgetting parking structures with multiple floors. Still a lot though.
This feels like how I had to reinstall Windows98 every six months.
> Also, naming something implies it will be useful in another context, which one-off lambdas rarely are.

Not necessarily. I find it helps readability to do this:

def prunde_indices(indices, cutoff):
def match_old_index(index):
return index.timestamp < cutoff

old_indices = filter(match_old_index, indices)
# ... do things with old_indices

as opposed to using an anonymous lambda. That doesn't mean I have to reuse it outside of this function.
It's not just moralistic. Porn sites have crazy high fraud rates that make them very unpalatable from a business perspective.
A code of ethics in the FB NewsFeed that emphasizes fair and balanced distribution
My anecdote matches yours. In highschool I was one of the higher-ranked people in my class, but I got along better with guys on the lower-end of the scale. Despite getting terrible grades, they often had a surprisingly quick wit that made them a pleasure to be around. Probably because they cared more about being funny than getting good grades. I sometimes wonder if it was motivation more than actual capacity that made the difference.
I see the distinction, thanks.
What’s up with Mossberg, the pundit that time forgot?

Until about four years ago, he used to get all these exclusives based on his position at the Wall Street Journal. But those days seem long ago. Mossberg is hardly discussed today, and his page views have cratered...

;-)
So if it was a real estate transaction all the dealmaking would happen off chain and only the final details would be recorded on the smart contract?
First off, sage math looks awesome \m/. This is a great question, I'll be making sure we update our docs and pages to highlight these differences, here's a few that might be helpful for you:

From an installation standpoint you get the same Kubernetes /everywhere/. You can run this on all the public clouds, e.g. AWS, GCE, Azure, Rackspace, etc., and on private infrastructure like OpenStack, VMWare, and bare metal. And any Ubuntu machine, like a laptop, single server, etc.

CDK as a whole is really just applying operational knowledge around Kubernetes. We are not adding any additional bits to k8s, we distribute the same binaries as upstream. If you stop using our tools, you can still manage the cluster as if you'd stood it up by hand. Since we're distilling operations, and not just installation, we cover the entire breadth of lifecycle tasks. Come 1.5.3, 1.6.0 (+ etcd3), and beyond we work to make sure tasks like upgrades work reliably and consistently.

We also present a consistent interface to common maintenance tasks, so that everyone using the solution uses the same primitives for maintenance. This helps eliminate the need to SSH and hunt around for these tasks. All the operational code we produce is open source, it lives in the upstream tree, and we love contributions!

Our roadmap for features is driven almost exclusively by our users, both community and commercial.

I could probably write pages, but I think those are probably the starting points for things we're doing as a distribution of Kubernetes. If you have any specific issues while running k8s, I'm happy to help answer how we handle those, if we do.
Surely it is possible and only requires a majority to support you.
Exactly that, it feels slow. On my laptop I have chrome and nightly firefox which typically is faster than stable branch. I have tons of addons in chrome and only ublock in ff, and yet chrome feels much more responsive compared to ff.
have you ever been in a traffic accident on the freeway? It blocks up every lane. Whereas a completely different route can still proceed unaltered. Also, splitting up the traffic should theoretically reduce accidents.
Well govt changed course mid-way by allowing people to deposit money and pay fines, lock-in period etc. It effectively ensured that most money would come in because any money left after fines and all is gain to hoarders as compared to zero by not depositing at all.
You've got a resource constrained environment in your pocket right now.
See my sibling comment to yours - but care to explain your thoughts more?

Jython already fixed the GIL problem. The problem is the legacy codebase built on assumptions of non-concurrency, which is just a matter of engineer time i.e. throwing money at it, plus getting GVR to sign off on it.
Hm. Wouldn't your code reverse the order of the list?

Maybe that's right, maybe that's wrong, but it's indeterminate from the code whether it's desired, whereas a filter function and a reverse function would make it explicit.
Interesting. Wonder if the PS3 controller will be supported at some point?

I have an old PS3 I've not used in years (stopped using anything Sony when they sued GeoHot). If the controllers for that work with Steam, it might be worth digging them out and putting them to use. :)

* Update: Doing some basic DDG searching shows that it should work. I might as well see if they still hold a charge. ;)
The problem with Excel is the wall you hit once you reach a certain level of complexity. If you're looking for a pure code solution, using a data flow library (https://common-lisp.net/project/cells/) takes some of the weight of your shoulders.
> I know the science of genetics (as well as a layman should). I read Super Pigs and Wonder Corn as child. I'm actually pro-genetic engineering.

And therefore I trust you to make a reasoned decision. How about your cousin who is on deepak chopra's mailing list, though? Will she make the same reasoned decision?

All the debate is about is mandatory labels on the side of the can. How about, people who know what they're doing and can make reasoned decisions, can look up information on their smart phone or whatever- but the people who are going to make a kneejerk emotional decision that winds up penalizing GMO foods and benefiting the organic alternative for emotional reasons won't see any scary labels that exert undue influence on the marketplace- would that be a reasonable compromise?
Just downloaded it, the app is really elegant. Really nice work. I have used weight watchers in the past, so here are a few thoughts:

1. Its not totally clear to me what the goal of the app is. Is it going to help me lose weight? Help me avoid unhealthy foods? Why am I tracking? Do I get to choose why I am tracking? Tracking is a big commitment, so I would lead more with what the benefit is, to motivate me to decide to track.

2. I really love the weight watchers approach of boiling everything down to a single point count. I have been around WW long enough to see them change the meaning of the points to incentivize different behaviors. For example, raw fruits and vegetables are generally zero points, even though they clearly have calories. High sugar foods are higher in points than their calories would suggest. I find a point system much more useful than a calorie system.

Overall, if your goal is to help people lose weight, I'd suggest you look at what WW has been doing in their app, and also in how they have changed their point system over the years. I actually think WW overall (including the meetings) is an amazing system.

Interestingly, I have gotten to the point that I basically know the points of everything I eat regularly. Originally, I loved the WW app because it was so comprehensive, but now I just use a tiny notebook and pen. Its a lot faster than messing with the app.
I've found that in recent times Chrome has started to feel bloated and slow and firefox (with minimal addons) feels much more zippy. However Firefox does seem to be a bit more temperamental when something else is using significant CPU.

Ultimately I prefer Firefox.
Biggest lesson for us: Avoid putting all your logic into Jenkins templates. You're not capturing your CI/deployment logic in version control, and this can cause problems down the road (we backed up Jenkins regularly, but versioning was a weak point).

Jenkins Job Builder[1] is a great tool that solves exactly this problem. You write job definitions in yaml/json files. Then, check these yaml files into version control and run JJB to push these jobs to your Jenkins server.

JJB is great because it's purely a client. It requires no extra Jenkins plugins. Since all of your jobs are now captured in version control, you can reproduce your Jenkins jobs instantly in a local docker container or vagrant machine to dev/test change to your Jenkins jobs.

I really recommend trying it out. No more manually clicking around in Jenkins to configure things.

1: http://docs.openstack.org/infra/jenkins-job-builder/
Do threats not count as movement? What about threats that inspire (alleged) action? There has been quite a bit of both.

Does it have to be an executive action?

Traditionally, the President wasn't the one creating the laws to begin with. So if Congress passes a law and Trump signs it, is it his action then?
I don't understand your argument at all. It seems to hinge on some arbitrary obsession with gifted students. Your entire argument could be applied to at-risk students, who arguably need the help even more than gifted students and would see greater percentage gains as a result. Rather than discuss endlessly who should get what, we should rise the tide that raises all ships, no?

>"Gifted" students are not given a chance to grow, since there's no pressure for them to excel in a school...

"Regular" students are not given a chance to grow, since there's no pressure for them to excel in a school... I'll even humor you and apply this argument for "at risk" students. They, too, require pressure and engagement to excel. [1]

> Gifted students are among the most challenging for teachers to serve, as their needs lie outside the standard curriculum.

Indeed. Some gifted program curricula are simply minor modifications to standard ones, begging the question, why waste all of that money trying to barely change the curriculum? It would be better spent making school better in general. See my other sibling posts for citations.

[1] http://www.viriya.net/jabref/Academic_success_among_students...
I've been a user of Firefox for mobile since I first got a 'smartphone'. Just last night I reluctantly installed Chrome as Firefox kept crashing on my new favorite note taking app (dynalist.io if you're curious). While I know that the app should fix their code, so many modern apps seem to be almost entirely focused on developing for Chrome and don't care about Firefox, so it was the 'last straw' so to speak. I'd love to keep using Firefox, but it was just getting in the way of my day to day too much.
Great to see Mozilla backing off from quixotic tasks like building a phone OS but I still feel like they don't understand what we need them for. They are the organization that we need to keep the client side of the Internet free and open.

Here's what that will take:

- Make Firefox the best browser in the world at the fundamentals: speed, stability, standards support.

- Become the free, open, OS agnostic app platform of choice: don't cede this frontier to Chrome and Electron. Make the open web platform the best platform for more and more apps. (MAYBE take a shot at a phone OS after the Firefox App ecosystem rivals Android and iOS.)

- Following from the previous bullet, quit wasting resources on browser UX experiments - browser UX matters less every year as web apps get freed from the browser.

- Be the absolute gold standard in user privacy and freedom - the stuff Brave is doing is the trail Mozilla was supposed to blaze.

- Invest in Thunderbird again and fix the client side of email - because messaging is just as important as the web and we are losing to closed competitors hard and fast there.

Mozilla's supposed to be our champion of an open web client platform. For too long they've just been a browser in decline and a bunch of random side projects. Cleaning up the browser is a good start but we need more.

From a passionate Firefox user (even though Chrome runs faster on Linux).
It used to be impossible to pay for porn with PayPal, however last year (I think) one of the biggest names in gay porn started accepting them as a payment method, so I guess something changed.
Why not just make schools better for all, rather than replicating the educational resource hoarding that takes place in private schools?

Because we have working models for high performing specialty schools.

We already have endless infighting about improving every school.

And how do you define "better"? Is it a lower teacher to student ratio? Higher average test scores? Graduation percentage? Percentage of graduating seniors accepted at 4 year colleges? Some other measure?

I believe that I would have been better off in a separate school.

I have chosen to send my children to a charter school for that reason.
I will consider what you said distinctly from the Swiss vs other models problem (because it is only slightly relevant).

I don't know how old you are, but I am assuming you are younger than me, and I would like to offer you some advice without (I hope) sounding patronizing.

Work-life balance is not about what you love vs hate. There are not too many people hanging around in hacker news that hate what they do for work, otherwise they wouldn't be checking here most likely. I would even go ahead and venture to say, around 20% percent of the people love what they do. But work is not the only thing you can love. You can love playing the piano, spending time with your girlfriend trekking, regularly having dinner with your parents every Monday, running a few times a week so on and so forth. Your view of the word 'love' is extremely one-dimensional, and life is too short for that. If developing is the only thing that you love, be my guest. But do not restrict yourself to just that, if you have the financial means.

Work-life balance is about the multi-dimensional aspect of life. You can (and in my opinion should) love many things, because there are so many things in life to love. Then work-life balance becomes about the maximization of an objective function whose variables are the hours you spend for each thing that you love, and the constraints involve (1) the minimum surplus of money you are OK with making given that you spend the hours in the variables, (2) the minimum amount of time you would like to spend for each thing, (3) the maximum amount you can spend. That's essentially life for everyone. The weights and the (1)+(2) constraints are dependent on the person (3) is a limitation of reality. People call the weights and (1)+(2) work-life balance. I hope this gives you a new perspective.
LA is building out subways and light rail. But it's definitely still too slow.

Since there's so much sprawl, it would seem that a spoke and hub system would be most likely what needs to happen, with a few hubs.

Imagine a mass transit vehicle that can hit 100+ mph between union station and LAX? The biggest thing to ensure is that once you exit LAX or wherever that spoke ends that there is infrastructure to hold that type of capacity.

Imagine, union station to LAX in 5-8 minutes. Elon's commute might be slightly longer as he would have to take a surface street from that hub to his end location.

Have the hubs at the densest areas and have spokes for them.

Santa Monica<->Sherman Oaks
Santa Monica<->LAX
LAX<->Union Station
Santa Monica<->Union Station
Union Station<->Pasadena
Union Station<->Burbank
etc. etc.

Each hop taking just a few minutes due to the speed and no stops in between.
As an app developer pre-iphone, people certainly didn't know what apps were.

It was crazy how after apps came to the iphone suddenly people did know and there was even a little cachet to it.
Also, itunes connect still isn't allowing us to respond to reviews (which is the whole point of this post...)
That is true, but merchants with more chargebacks get punished with bad rates. It costs them real money to not know if a customer is a bad actor.
> America has lead the way for the past 4 decades in bringing the public into areas they don't have the prior knowledge to navigate.

Well, the fake news factories are also good at pushing people to take a hard stance on things they have no clue about.
I guess Scala being "the most expressive typed language on the JVM" is true in the sense that it has a ton of features (OOP, FP, Exceptions, null Java backwards compatibility, etc.), but that's just too many features for a coherent language.
As an Indian, I feel this article is overtly negative and fails to capture the real public opinion. For example, everyone in my friends + relatives circle (mix of salaried and small business owners) have been impacted, we have borne the grunt of standing in lines for 2-3 hours just to get cash, but each and everyone welcomes the change. We in fact want the govt. now to focus on the other big source of black money - real estate.

The NY times also deliberately ignores the positive outcomes e.g. housing loans are now coming to a six year low, online transactions are increasing (which increases tax inflow to the govt. by bringing previously unreported transactions to tax bracket).
There will also be cars driving around with no drivers. So even more cars!
Maintaining contact with tech (as in engineering) may not be the success criterion.
Yeah Musk needs to start listening to transportation experts and read about Induced Demand.
> By focusing on low-end phones and not Nexus- or Galaxy-class handsets, they lost sight of the fact that smartphones are aspirational devices.

Yeah, I remember when Firefox OS first came out, and when I heard of Mozilla's strategy of starting in the third world and then moving up, I knew Firefox OS was doomed.

Why? Because it reminded me of something I heard about car platforms, years ago. Back in 2002, GM introduced a pair of cars in the European market both based on the same platform: the Vauxhall Vectra and the Saab 9-3 (not the first generation of either nameplate, but the first to share a platform). GM made sure to introduce the Saab first. Why? Because Saab was a premium brand and Vauxhall wasn't. GM knew that "Saab built on Vauxhall technology" wouldn't fly -- people would see it as Saab degrading themselves by raiding a mid-level car for parts. On the other hand, "Vauxhall built on Saab technology" would go over very well -- people would see it as Vauxhall incorporating elements of a premium car.

The moral of the story is: you don't release a budget model and work your way up; you release a premium model and then bring it downmarket to cultivate the image of bringing luxury technology to the masses.
Ah. My sister was in the humanities at an Ivy, so that could be the difference.
Great results! Deep learning has been gaining track in other medicine areas as well.

One such task is lung cancer nodule detection from CT scans. A paper I recently co-authored applied many different architectures to this detection and achieved very good results. (https://arxiv.org/pdf/1612.08012.pdf)

The best combination of systems detected cancer nodules which were not even found by four experienced thoracic radiologists.
That clearly isn't an example of a manager with deep technical expertise, its a poor engineer who has been promoted and is faking it. By the measures in the study he would not have counted as a deep knowledge engineer.

Just because he was an engineer doesn't mean he has any deep skills.
I'm sympathetic to that, certainly. But how to balance it against the can of worms that opens when an election victor prosecutes an imprisons their political rival?