News for hackers. Stuff that matters.

golangnews

Re:A remote UK community living off-grid on Monday November 19, 2018 @12:14PM (#18487859)
It is faster and more efficient on a long image-heavy page like this, because they're not loading the larger images until the user scrolls to them (try reloading the page and scrolling quickly to see). So it's not entirely pointless.
Re:EU to stop changing the clocks in 2019 on Tuesday September 18, 2018 @03:40PM (#18018473)
Yes very true that’s probably the best argument against it.
Re:US imposes new tariffs on $200B of Chinese goods on Tuesday September 18, 2018 @02:13AM (#18012892)
You seem to assume China will not retaliate, but they already have.
Re:US imposes new tariffs on $200B of Chinese goods on Tuesday September 18, 2018 @02:10AM (#18012867)
The consensus among economists is that it's a terrible idea which will hurt everyone. Often this sort of trade war is a precursor to real war.

Trade is not a zero sum game.

https://www.bloomberg.com/news/articles/2018-05-02/economist...

Re:EU to stop changing the clocks in 2019 on Tuesday September 18, 2018 @02:05AM (#18012851)
School hours are 9-3:20 where I live, so they are nowhere near in line with working hours as you need time to get to work and not many jobs finish that early. Most schools run breakfast clubs and after school clubs as a result.
Re:EU to stop changing the clocks in 2019 on Monday September 17, 2018 @04:27PM (#18009733)
It really would not be difficult to move school later - school hours are already out of sync with 9-5 of 9-6 or the other hours parents work, if anything it’d be welcome.
Re:EU to stop changing the clocks in 2019 on Monday September 17, 2018 @04:25PM (#18009715)
That’s what I meant by It would simplify a lot of coordination though, I agree zones don’t help this sort of question, if anything they hinder.

Main problem with getting rid of zones are day boundaries and people getting used to a 24 hour clock and arbitrary hours ( even the proposer here used am and pm!), so days would start at odd hours - at least the term noon would be a lot more accurate :) It would seem odd for Saturday say to start at 23:00 in some places though.

Re:EU to stop changing the clocks in 2019 on Monday September 17, 2018 @03:55PM (#18009407)
The article poses the question:

I want to call my Uncle Steve in Melbourne. What time is it there?

Google tells me it is currently 4:25am there, so I'd better not call.

The answer without time zones would be:

It's 18:30 UTC

Google tells me business hours are 23:00 to 03:00, so I'd better not call.

Abolishing time zones would make little difference to this kind of question, it will always rely on knowledge of local hours and on top of that your Uncle's schedule.

It would simplify a lot of coordination though.

Unlikely to happen any time soon IMO as people are attached to the status quo and have no big reason to change.

Re:Apple Special Event [video] on Wednesday September 12, 2018 @03:10PM (#17972054)
Days since an update:

Mac Pro, Mac mini - 1427

MacBook, iMac, MacBook Air - 464

The only thing updated recently was the MacBook Pro (to fix the keyboard).

Re:Mistakes C/C++ Devs make writing Go on Sunday September 09, 2018 @02:37PM (#17947143)
If you like C++, try rust, if you like C, try go.
So why do we need AMP at all?

Even if it were proposed in good faith, the power it gives google is too dangerous.

No. I own one and regret buying it. The fingerprint sensor is the only useful bit of the touch bar, missing esc key is annoying if you use vim, and the keyboard is pretty terrible, even if I hadn't seen different keys come off or come loose. Have another appointment to get it fixed next week.
Re:Exploring Error Handling Patterns in Go on Thursday August 16, 2018 @02:47AM (#17772476)
That's a feature, not a bug. It means I don't have to deal with anyone's 'clever' code.

It's not about saving the compiler work at all, it's about saving the hundreds of humans who have to read your code after you the work of understanding the abstractions you created.

Re:Show HN: Didyougogo – An Altavista slayer on Sunday August 12, 2018 @10:17AM (#17744453)
I really like this idea, and the very simple implementation - big things start small. We need more search engines, including ones which are not supported by advertising.

Thanks for submitting.

Re:Why decentralized social networking never makes it on Sunday August 12, 2018 @09:53AM (#17744349)
Decentralised social networks, like decentralised currencies, are solving the wrong problems.
Re:On the uses and misuses of panics in Go on Thursday August 09, 2018 @02:53PM (#17727281)
This (optional types) is one thing I'd really like them to explore for go 2.
What problems specifically did you see? Was this because the repo was too large?

I understand at google scale you'd need lots of tooling but why at a smaller scslr of merging a dozen small repos?

Re:Portable Cloud Programming with Go Cloud on Tuesday July 24, 2018 @02:43PM (#17603827)
go reflect is not commonly used, goroutines are pretty simple to pick up. I have used several large codebases with zero use of reflection. The point of go is it restricts you to 25 keywords (the basics that you sneer at above) so senior people can't get fancy and produce an impenetrable mess/marvel that beginners will take months to orient themselves in.

It is definitely easier to write well than js IMO, and harder to make a big ball of mud in.

Re:How to build an NPM worm on Friday July 13, 2018 @01:40AM (#17520744)
Importing lots of code from others is a path towards bugs and mistakes. You end up not understanding your dependencies, importing far too much (because you want function x but also get a-z), amd dealing with changes you didn't want or need which mix security fixes with features.

Better to minimise dependencies particularly for trivial functions. Not just for security but for ease of development.

If you're on coreos, probably just wait till early next year to see what the new OS will be like, then make a decision.
yes I've done that - been pretty happy so far.

Older »