skysight-inc/HackerNews huggingface dataset:
The standard is usually

if err != nil {
return (whatever null type), err
}

The error will propagate up, since all calls to a function returning err should be checking for the err. In a not-so-ideal world, just return err up. In a relatively more sane world, you can send "up" extra information along the error (just creating a new error with extra info) to know the error path. The first caller will/should handle this error then.
I know it's crazy talk, but glancing at my own profile, I count maybe 100 bytes of data? Yet to represent that data in memory, it's going to blow up to 4096 bytes plus structs to represent the inode and directory entry/entries because you put each profile in its own file.

By that count, you might get somewhere near a 40x cache utilization improvement if you just used a real database like the rest of us do - even just an embedded database.

This of course before saying anything about transactional safety of writing directly to the filesystem
Here's the W3C draft doc on the `will-change` module: http://dev.w3.org/csswg/css-will-change/
Yep, lots of good tutorials, and the creator of the board is quite helpful on email.
How to Promote Your Landing Pages with Paid Advertising
I would disagree: it's certainly uneducated to use Occam's Razor as an excuse to be lazy, or perhaps to ruin another person's life based on one piece of evidence. The children's father vouched for her, she has witnesses to the birth of these children, etc. In fact, everything lines up with the children being hers except the DNA test results.

I would argue Occam's Razor decides against such a large conspiracy and, instead, points to problems with the test.
There is no one best language.

Numpy is not something Go is going to do (Correct em if I am wrong). Julia would be the faster language to switch to, but personally I switched from Python to R due to the fact that I like languages that are made for what I am doing. Python always feels second best to whatever I am doing and I have branched away from Python. So R for statistics is great for me.
This. Or, similarly, just put all your dependencies in a path relative to your executable. Problem solved.

I'm an enormous fan of docker for solving linux sysad woes (stacking up magic numbers in /etc/passwd, etc), and it's also great as an asylum for badly designed or badly packaged applications, but let's not forget the utter magic of paths beginning in "./".
Did he say that people looking for faster build times than C++ went to java? They may not have found what they were looking for, in that case...

Go does lack a quality [IMO] IDE [re: REPL use is for development], but that can still come with time.

Quality GUI bindings can also come with time [how often do you actually use Python for GUI stuff, though...but still nice to have, just not its major use I doubt]

Another thing you'll miss from Python is accidentally typo'ing variable names and having to discover that only at runtime :)

Just my rebuttal :)
"The 'opt out' if you don't want to, in combination with a high change of poor black males being the guinea pig... Not so much."

My understanding is that they only use this procedure if your chances of otherwise surviving without this are very slim, per the article the injuries are the kind where "Less than 1 in 10 survive". As for the opt-out/opt-in, you cannot really opt-in to any procedure if you're undergoing cardiac arrest, so perhaps we should let anyone in this scenario die since they cannot truly consent?
Well it seems to me that it would be an considered accidental death. Of course, if 75% of egg fertilizations result in the death of a person, then having unprotected sex shows a callous disregard for human life.
Construct HTML landing pages in seconds
OTOH, if you follow Go's idioms and handle every error where it happens, your code will look like having a lot of boilerplate at first, but you end up with better error handling.
It's the same as putting a try-except catchall around every single call in python, because in python you can never be sure (without reading the source) what kind of exceptions something will throw.

For request based services and something where some big ass operation will either fail in some way (and i don't care where exactly) or be successful, exceptions are fine. If something goes wrong somewhere, log it and reply with HTTP 500. But for servers with data i care about, i most likely want to recover right where the error happened, and actively decide if i want to abort and push the error to the next layer. Not having exceptions makes this more intuitive.
Paid landing page promotion techniques
There are some Python programmers who sometimes regret Python doesn't have some static typing.

Go has that and also provides an easy way to be quite dynamic when that's wished for (or even when not - without generics one'll have to resort to `interface{}` even if that's not desired, huh).
New invisibility cloak works for diffuse light
The readConfig example is not really an issue in go. Just return the io error and type switch after the readConfig.

if config, err := readConfig(ioReader); err != nil {
switch err.(type) {
case io.ErrClosedPipe:
// do one thing
case ParseError:
// do something else
case ...
}
}
I honestly can't imagine why NASA even acknowledges the idea of FTL travel - Is there some kind of propeller beanie PAC forcing their hand?

They should just have a page that says: "FTL is impossible, but that's fine, once you get used to the way things are."
The secret behind my superpowers. 4 habits that could make you win.
This is as good an idea as a Jump to Conclusions mat.
Why haven’t we encountered aliens yet? The answer could be climate change
Goji does very well given it includes a request context implementation as well. I've been porting over an existing net/http + gorilla/mux app and like its design.
That said, I do agree with the sentiment expressed here: it is pretty amazing that a site that is really a nexus of high-tech Silicon Valley companies and figures -- quite possibly the most popular one in that segment -- still has downtime and a web interface reminiscent of the 1990s.

I actually like the UI. It's simple, doesn't use tons of bandwidth, and gets the job done.
Regularly employed, but not in the US. I believe the remedy is monetary on both sides; they can't get a court order to literally drag you back into the building and make you work, and you can't get a court order to force them to let you into it, either. I don't know of anyone who's violated such a period and haven't looked in detail into what would happen, so the details are sketchy to me. But I believe there would be some kind of court or arbitration hearing, where the company alleges damages from the disruption due to breach of the employment contract, and the person may be ordered to pay any damages that stem from the too-short notice.
Perry Marshall Interview – Brutal tales of an Entrepreneur, and Business Improv
"it takes a lot of work to do minor update to large site" — could you elaborate? I'm not the OP but I've been considering switching to Jekyll for my blog, so I'd like to know the downsides.
I'm a bit skeptical about this new property.

In this basic example,

.element:hover {
will-change: transform;
}
.element:active {
transform: rotateY(180deg);
}

it seems very predictable. I don't get why the browser couldn't guess (with some heuristics) what to prepare.

Also I feel we will misuse this feature and tend to make the performance worth than if the browser would detect what are the "will-change"s.
I wish the MBTA was more transparent with this type of data and visualization. If they themselves charted things like this for the public, and then made commitments to improve (or at least not get worse) based on metrics that the community agrees are important, then I think that would be a significant move forward. The GM of the MBTA right now just doesn't seem to really care about addressing these issues in a clear and accountable way (ie. fire the people who cause systemic issues).

There are some absurdly obvious ways to improve the T. One study was done in NYC which showed that making the busses free would actually save them money, as the gas/time spent idling (and delayed) actually cost them more than fares. I wouldn't go this far, but I'd say that if there are 50 people in line to get on a bus, that they shouldn't charge a fare to just get things on-time. As-is, I see bus drivers hold up things all the time for one person counting their nickles to get on the bus; that is simply inefficient. - http://www.economist.com/blogs/gulliver/2013/06/fares

Other places like Park St could be massively improved. Have one side of the platform (outer side), be the side that people get on the trains from, and the center area be the place that people get off the train. This would streamline foot traffic in the station. Make some stairways one-way to additionally streamline foot traffic.

For some reason, Boston never planned for bypass capability, for trains to be able to get around stations, run express or in parallel. NYC did it, and it helps a great deal with construction, disabled trains, express trains, etc... Not all the the T is 100+ years old, and for newer lines/stations such certainly could have been done.

I could probably sit here all day and think of basic improvements to help with things like this, but it takes the T forever to implement anything. How many years did it take to get the signs on the Red/Green lines operational for tracking train positions (a trivial problem in my mind, from an electrical and implementation side. These days, I'd just use iBeacons...)

And, you might have missed at the bottom of the page... here's a realtime version: https://mbta.meteor.com/
Spot on. A quick perusal of many cognitive enhancement-centered communities (/r/Nootropics, Longecity, Bluelight, etc) will reveal that sleep and mindfulness are the first things that need to be improved, not last.
Honeywell turns up the heat with new Nest clone
How about "look ahead"? If there are transition or keyframe properties related to variations of the selector, why not do this automatically? I understand the overhead, but from the standpoint of hackiness this would be the technology working as expected.
Implementing a Reactive Queue with Akka Reactive Streams
George Nash (Beautiful Mind) stopped doing anything significant after they zapped his brain. I wouldnt gamble on this.
I hadn't heard about this before; I'm clearly out of the loop these days. With buy-in from smart people at Webkit and Mozilla, I've got to assume that it really will be an improvement over the status quo.

But, boy, it feels awkward at first sight. To my eye, it's weird to see what is essentially a low-level optimization instruction as part of CSS (which is usually all about presentation rather than implementation). Also, the article makes it clear that there are a lot of ways that people could mistakenly use this property in unhelpful ways. And I'm still not entirely clear on what they mean by "It’s not possible to remove will-change if it is declared in the style sheet": is this really a CSS property that can be turned on without scripting but never turned off without it? That makes me uncomfortable.

So why isn't this a case where we just need browsers to get smarter? In the same sense that an optimizing compiler can in most cases produce better performance than a human writing machine code by hand realistically could, can't we expect browsers to gradually get better and better at spotting these rendering optimizations? (To take an example from the article, couldn't the browser recognize that there's a transform rule for :active and automatically enable something equivalent to will-change for :hover itself?)
I'm not sure what you mean by "syntactically a mess" but Racket provides `mlist` which sounds like exactly what you want [1].

[1] http://docs.racket-lang.org/compatibility/mlists.html
>. Then again, Pinker is a philosopher (don't get me wrong, a wonderful one),

He is a bit of a philosopher, but his ph.d. is in experimental psychology. In other words, he's not just thinking here, but probably has a basis for what he's saying in empirical tests. He is very much an empiricist.
This kind of thing just makes me happy. I hope it takes off, and wish the best to the founders.
It's ironic that the author dismisses C++ to a small niche:

> Those who still stick to C++, after all these years, either really can't live with the "overheads" (real time apps - those are waiting for Rust to mature), or think they can't (and nothing will convince them except a competitor eventually forcing their employer out of business).

Yet later he gives a good example for an important area where C++ is still unbeaten: scientific computing libraries.

If you want/need maximum performance, then right now, there's no other language that has no overhead and zero-cost abstractions (to the degree that C++, especially C++11, has them). Hopefully Rust will get there eventually, but as of today, you have three choices: Fortran, C, and C++ – and neither C nor Fortran offer any abstractions worth mentioning.
Wow, I didn't realize how badly the Government Center station shutdown was affecting people. I presume you're talking about coming in on the Blue line and trying to get to the green. What's the best strategy- get out at State and walk to Park street? Or take the Orange to Downtown Crossing and walk the tunnel to Park?

Boston's really into transit-disrupting projects. Big Dig aside, the Longfellow is (mostly) out of commission for... three...years...
It depends on what you're using the indexing for.

Having played around with Lua (In a mod for Minecraft, of all things), I'll say that 1-based indexing is better for some things, while zero-based indexing is good for other things.

One of the nice things about 1-based indexing is that for basic "display a list to the user with indexes" purposes, you don't need to add one all over the place. But at the same time with 0-based indexing you don't need to check the lower bound in a lot of cases.
I guess even most persistent embedded databases are on top of a good auld FS... SCNR...
Suppose they want to change platforms in the future or release the codebase for others to use. It was apparently an easy enough change to implement now, so why not?
I checked out the solution on github, but my results were not like advertised in the video. On my laptop it sounded like a dying cat of some sort.
Was Office Space shown on a major network last night? That's the second reference in as many posts.
Putting performance optimization hints in my presentation code feels wrong. I think I'd use a separate css file for will-change.
But what is it? As far as I can tell there's no actual description of the product.
first thing it mentions in the readme: this package is very much incomplete
GravitySketch Tablet Is a Portable 3D Augmented Reality Sketchpad For Designers
It's Time to Talk about Free Software Again (1999)
> Just return the io error

Manually, on every function call that may fail - that was my only point why exceptions may result in a clearer code.

section, err := parseSection(ioReader)
if err != nil { return nil, err }

Has some boilerplate, as compared to a typical exception-based

section = parseSection(reader) // throws IOError
Evidently porn star didn't have mentors either. Have to admit, if you're going to put this up on the web, most every 18-21 year old guy I know is going to put that in. Perhaps you need to put in a few "keep dreaming" on certain terms.
Could you elaborate on why using the repl was a mistake? I don't really miss python's repl, but coming from the Lisp repl, the playground doesn't seem to cut it. Now, if anyone has written an emacs mode that lets you interact with the playground by loading a buffer- I think I'd be much happier.
Optimistic Software Design at Netflix
I played around with it, it is nowhere near Qt, not even like 5% close. Qt isn't just a GUI library, it's everything you need to build a application in a nice large bundle. But it's a nice start...

However I feel that Go is not really intended to be used for desktop applications, I would much rather see a Rust GUI library.
It doesn't get as many updates these days but we made Kousek (https://itunes.apple.com/us/app/kousek/id460437737?mt=12) send a message on twitter (@skorecky) and I'll give you a promo code.
How online 'chatbots' are already tricking you
No idea what this is. Looks like I can buy bootstrap, but why would I do such a thing.
How do these "legitimate" ideas for FTL deal with causality? I've always wondered that.

People always use causality to argue against FTL, but then readily acknowledge that wormholes or Albicurie might allow it. I'm not getting that disconnect?
Is the Lua stuff going away? What are your opinions of Go vs Lua?
"Theory for a faster-than-light "warp drive" consistent with general relativity."

For real?
Facebook for USSD
I don't consider error handling to be unnecessary, but it is boilerplate, no matter how or where it's implemented. That's because every non-trivial program has the potential to enter an error state. That state can either be ignored (deliberately or not, the latter case being a major source of most of the angst and misconceptions around C and C++) if the language allows it or handled in some way, and that way is by boilerplate "if/else" or "try/catch".
The argument "would have switched to X before" seems to not consider the possibility of new adoptions.

If I didn't need the things that Go provides before, that does not mean I do not need them today or tomorrow.
Most of the GUIs are done on a main thread which makes some of Go's advantages unneeded. Don't build GUI in Go, ever.

Error handling is a way of thinking: TDD is one, Go's approach is another.

REPL is not a must, environment without REPL means you have to think more about what you want. It's a process. You should be able to read source code and figure out how things work.

Like many mentioned here, Go is great at doing system stuff, like background queues and processing. Stay with Python until you need to get thing faster, then move them to Go. That's how you should think of it.
Password Storage Locations For Popular Windows Applications
Could you go with Dash and then somehow script a sync between the Dropbox library and Gists?
Have you heard of the idea of running a current through a long wire to propel a spacecraft against the earth's magnetic field?

I remember reading about it somewhere, but I can never find it again.
Scientists, rightly so, are a little leery of stating "we know everything". There's no guarantees our current theories are perfect - in fact, it's extraordinarily unlikely that they are.

Also of note: https://en.wikipedia.org/wiki/Alcubierre_drive
Bureaucrat A: We've found something slightly odd about this family.

Bureaucrat B: Thank you for bringing this to our attention. We will now completely fuck up their lives.
Which works fine in a CSS-only environment. But a lot of the time these properties are being set in JS, which is going to be very difficult to predict.
>They should just have a page that says: "FTL is impossible, but that's fine, once you get used to the way things are."

No offense intended to you, but I feel this is a disastrously negative attitude to have. Except where morals dictate otherwise (which are outside the scope of science anyway) nothing is banned from exploration. Suggesting otherwise implies that we know all there is to know about a subject; to me, this is analogous to willful ignorance. Science is dedicated to removing ignorance, not enforcing it.
> That's terminology straight from Turing's paper introducing the game.

Hi DanBC.

My choice of words was coincidental. I was not aware that Turing used the same terminology, so I am pleasantly surprised. Recently, I have been experiencing a lot of coincidences on HN, bizarre.
Project driven VS product driven IT organisations
How I Got My First Web Development Gig
Do you integrate with Mailchimp?
Back in the late 80s and early 90s it was still possible to regularly beat the stock compilers with hand written assembler (could that personally). The story used to produce a lot of awe but now it's getting doubted by those pesky best practices.
In "art culture" only those who succeed commercially are artists.
Getting a license is just the first step; you have to associate yourself with a brokerage to do the things agents do, and there's a cost to that.

If your agents haven't done anything for you but unlock doors, then you haven't had good agents. Like any other profession, there's a huge range in quality and competence, and finding a good agent requires some research and probably recommendations from past clients.
XenServer Creedence Alpha 2 Released
See https://news.ycombinator.com/item?id=7858000
Fascinating topic - glad to see it mentioned here. tDCS may be effective in improving working memory [4], treatment of depression [1], pain management [2], improved motor control [3]. You can find out how they work, how to build one, or where to get a commercial product via the r/tdcs FAQ [5].

To be fair, it does remind me of Ringworld, where 'wirehead' addicts would starve themselves to remain plugged in. Wild!

[1] http://www.ncbi.nlm.nih.gov/pmc/articles/PMC3372849/

[2] http://www.tmslab.org/publications/164.pdf

[3] http://www.researchgate.net/publication/10710628_Facilitatio...

[4] http://www.researchgate.net/publication/51068527_Improving_w...

[5] http://www.reddit.com/r/tdcs/wiki/faq
All I could understand without watching a video (yes, there are some people left in the world who do not want to consume information through videos):

1. It is almost Bootstrap
2. It is paid
3. Vistiros will not be aware that it is Bootstrap.
-1 for the strawman: The alternative to "opt-out before" is "opt-in before", not "opt-in afterwards".
Red Hat Unveils Red Hat Enterprise Linux 7
It looks like the author found the worst use case for Go in comparison to a library that Python absolutely soars in and uses that as a basis for this argument. Go does not have something as nice as numpy. For numeric computing, by all means use Python.

He then makes some crazy statements about operator overloading as if that is the essence of a good language. I disagree. I don't want operator overloading. I almost never used operator overloading in C# or Java. Maybe that's just me, but it's certainly not a reason to avoid a language.

The crux of his argument is that C++ users who switched to Java years ago are the types of programmers that Go wished to convert.

He neglects to mention deployment. He neglects to mention stability in runtime. He neglects to mention any low level meddling that you have to do in compression. The examples you posted are exactly the kind of things that Go soars in. It's very convenient to leave them out while beating your chest about how your language is a superior language because it is superior in a very specific niche.
Get online from your dumb phone
How to integrate the Java version of the GroupDocs.Viewer into a PHP app
This article describes how the GroupDocs.Viewer for Java library can be integrated into your PHP application (based on the F3 PHP framework).
"GroupDocs.Viewer is the foundation of most of the other GroupDocs applications. It is a high-fidelity HTML5 document viewer that allows you to display almost 50 types of documents within your own app or website. The viewer doesn't require any client-side installation, allows users to view documents from any HTML5-compliant
browser and comes with a convenient UI for navigating multi-page documents."