skysight-inc/HackerNews huggingface dataset:
1. Harder to maintain. Your colleague will change MethodB so it now throws an ExceptionB(), and your code will crash with unhandled exception = segfault. With error codes, your colleague may return any FAILED code she finds adequate. As long as you have a standard way of showing messages, the caller doesn’t need to change a single line.

2. You can greatly simplify your return codes example with a macro, e.g.

#define CHECK( hr ) { HRESULT __hr = (hr); if( FAILED( __hr ) ) return __hr; }

Then you will be able to handle them in the upper level. Also, by changing this macro to slightly more complex variant you can very easily log failed operations (remember that __FILE__, __LINE__, #hr, etc.)

“if you build all code using the same compiler and build settings” — fine, what about using other people’s libraries you can’t or don’t want to compile? Like OS-provided API, CRT, middleware, etc? Also, what happens with your project code style consistency if you’ll decide to replace 3rd party component (that unlikely uses exceptions) with in-house, or vice versa?

P.S. I’ve written a lot of C++ as well, I’ve been developing commercial software since 2000. My experience tells me if you’re going to achieve good quality of your product, it’s seldom sufficient to just print messages to stdout or MessageBox an exception message. Depending on what exactly happened and what the code was doing when something failed, it may be necessary to do something more complex that needs rich execution context. Like write stuff to logs, send error details to the client over a network in the response, close some windows, invoke a caller-provided error handler, etc. You don’t have that context where you catch() them.
I agree - if I hadn't been writing this to fit udacity's project evaluation specs, I would probably have included fewer. (Even as it is, I guess many of them should have been smaller.)

Bike usage depends noticeably on the rain, which is the only weather feature I discover that it does depend on. Rain causes about a 20% drop. But many caveats: abs(d.num.bikes) doesn't seem to be an especially good measure of bike usage; rain is binary, not quantitative; and I'm not sure how much to trust the rain variable anyway.

Also consider that lots of people use bikes for commuting, and may not have a good alternative. (I have reasonable alternatives, but the rain is basically never at a level that makes me take them instead of cycling.) I don't think I looked at how rain interacted with weekends, but I just had a look and rain causes about a 30% drop on weekends and 15% on weekdays.

is.weekday rain mean(abs(d.num.bikes))
1 FALSE FALSE 0.4567856
2 FALSE TRUE 0.3115902
3 TRUE FALSE 0.5343955
4 TRUE TRUE 0.4595437
Check out https://github.com/quozd/awesome-dotnet :-)
Should Surgeons Keep Score?
> I cannot write an abstraction in C, which closes a file handle automatically.

Of course you can.

It's just a question of convenience, and whether the resulting style would align with idiomatic C. In my imagined implementation, it would look more like awkward JavaScript.

There are many many C codebases that are internally consistent but don't look much like textbook C. Sometimes C is the best choice even when it's less convenient.
Why Wall Art Is Essential in Interior Design
tl;dr

Woman aged 35 decides it's time to become a coder
Top-5 Trends in Big Data Analysis
Maybe productivity goes up because the female programmers are less pestered.
I am using SlickGrid on a current project and have had great results.
The book I want to read today is "Data Science with Clojure" updated to use Ashley Madison data-sets.
If you consider the effort required for this, I always wonder how reproducible the things in Docker or NixOS really are.
I think it'd be pretty easy to offer both. A simple switch to turn on/off 'curation' or whatever.
Some Features to Look Forward to with the Linux 4.3 Kernel
HP's layoffs will exceed 55,000 people, CFO says
Great point about this example being a code-size trade-off example and not an actual zero-cost example.

As for actual zero-cost optimization, Chandler Carruth who works on Clang at Google gave a talk at the 2012 LLVM Developers' Meeting warning people that C++ zero-cost abstractions are more myth than reality, and things developers expect to be zero-cost are often in-fact not. He goes into detail about how the optimizers work and what the challenges are.

http://llvm.org/devmtg/2012-11/videos/Carruth-OptimizingAbst...
actually btrfs looks pretty good on the phoronix benchmarks (note that higher is better in all those tests - go look at the write tests)

on Kent's benchmarks, something is up with the results in the thousands of MB/s - high end flash is fast but not that fast unless the entire transaction is possibly taking place in RAM cache instead of on the drive - which would explain btrfs having numbers in the hundreds of MB/s instead
Why the re-post?

https://news.ycombinator.com/item?id=8950292
There's lots of ways to hit aligment problems in C, at least if you do a little typecasting here and there.

Coincidentally, alignment issues was the topic of yesterday's Old New Thing blog post: http://blogs.msdn.com/b/oldnewthing/archive/2015/08/20/10636... (and references an example of bad C code alignment in http://blogs.msdn.com/b/oldnewthing/archive/2004/08/25/22019... )
Seeking Influencers and Online Drivers in Social Media
EXT4 is arguably the most mature but even recently they found a long term bug in EXT4 on RAID that no-one noticed for years

https://www.phoronix.com/scan.php?page=news_item&px=Linux-4-...
Actually, there was a lot of sharing, but the core math was a bit much for the people doing computer system monitoring and management.
The Bright Students Left Behind
I would disagree. UTC is ambiguous and unpredictable. Computers should really be based on GPST (seconds since 1980-Jan-6 UTC).
Airliners haven't evolved much since 1960 (unless you count fly-by-wire and vastly improved fuel economy...) for a reason: the current designs are fit for purpose, development is incredibly expensive and prospective clients are - for good reason - conservative buyers.

The closest thing to a viable airline startup is probably Mitsubishi Aircraft Corporation, effectively a joint venture between huge conglomerates with existing experience in aircraft component manufacture and leasing. The aircraft they're due to roll out soon may well be a commercial failure.
http://mathlesstraveled.com/2012/11/05/more-factorization-di...
Imagine Google hiring women to "cheerlead" programmer. I am sure Google would go bankrupt just to pay lawyers to fight lawsuits.

This seems like free market at work. These women have social skills to sell and programmers are buying it.

The way I see it the Chinese are being more progressive than the Europeans where prostitution and drugs are legal.
I found some fast ways to do the computing.

The latest solid state disks (SSDs) make
this approach finger lick'n good.
>Did it cause headaches?

It did for me. I was 12 when it came out, and the local Blockbuster Video had one and they let me play it from time to time that summer (I rented games from there every weekend during school so they kind of knew me). I seem to remember getting a headache and feeling queasy.

But what I remember most, and what articles about the Virtual Boy never seem to mention is that the games were dull and boring. The 3D effect was interesting, but I was a 12 year old kid used to brightly coloured characters running around fluidly and responsively in a moving world. Playing the Virtual Boy was dismal - it was all high contrast black and dark red. And making Mario Tennis feel more 3D doesn't change the boring gameplay of Mario Tennis.
uh yes, it is.
I've been running raid-1 btrfs on workstations and a server for a while, haven't seen any issues at all. I did have an issue on a btrfs laptop, it didn't cope with on/off all that well, but that was more than a year ago, maybe I will retest.
I agree. It's library baggage.
This is awesome. I'd love to have these kind of features in Nihongo.
O2 can now learn about users on its self-optimising network
what is "reality"? the law is what makes someone a "criminal". the law is what determines if that person committed a crime. not "whatever saiya-jin seems to believe is reality", which is an awfully frightening idea given the nonsense you have been spouting.
A Brief Introduction to Haskell
Universal Routing in React with ES6
Looking closer at the github repository, it isn't very active. It's missing the regional airport near here which should have restrictions.

If you zoom in, the airports do get a 5 mile radius which, inferring from linked map in the sibling to my above comment, is not really very accurate (but does capture much of the zone).
Interesting, I hadn't heard that before. Still, for people learning Japanese, I tend to think it's a good choice. At my level, it's easy to get lost when reading things that I don't already know the general plot for. Harry Potter is pretty easy to follow and not too difficult from a vocabulary perspective.
Apparently most bootleg GBA cartridges (usually Pokemon titles) ship with the "write enable" pin connected, so they can be re-flashed. I haven't done it myself though.
From the article:

"[..] the main goal of bcachefs to match ext4 and xfs on
performance and reliability, but with the features of btrfs/zfs."
Software Estimation Is a Crock
The Front-End Is...
There's practically reproducible and completely reproducible.

Let's say you had a bug, and are trying to see when it was introduced.

Something like the compilation time printed in a log at startup you don't really care about, the versions of each part of your build chain and all dependencies are where your focus will be. This is easier to achieve.
The Top 12 Amazing App Designing Tips That Can Do Wonders
Does it outperform F2FS on flash storage, too?
Intel MPX Memory Protection Extensions
Daniel Ek and Minecraft creator Notch debate Spotify privacy policy
Now all they have to do is figure out how to build debian without systemd in and I might consider using it again.
Amazon joins in on killing Flash, stops accepting Flash ads
I read that in China the government is creating jobs for the sake of keeping people employed, even if they are not productive. Maybe this is another occurrence of that phenomenon. It's true that it's private companies hiring the cheerleaders here, but maybe they get subsidies from the government for doing that.
Reminds me of the short story:

http://www.thebostonbachelor.com/2008/examination-day-by-hen...

I won't post spoilers alerts, but the mere fact that I put this link here should be enough for you to deduce the ending.
FastMail adds CardDAV support
Docker does nothing to improve reproducibility in the way that the Debian (and other) folks are using the term, which means "bit-identical builds". Nix, and likewise GNU Guix, already provide a great framework for enabling reproducible builds. In the Guix manual, we say that the builds are nearly reproducible because as Debian shows, there is still plenty of work to be done, but we do eliminate a lot of sources of nondeterminism already.
Why is it that every time I read an article about some degrading bullshit, I also have to read a comment about the free market?

(And in motherfucking China this time, apparently.)
The appearance of these seems like a natural reaction to the rise of coding bootcamps. I can easily imagine how employers are hesitant to take on a newly minted bootcamp grad, but may consider an apprenticeship program (yeah, it's a dressed-up internship) as a kind of stepping stone / way to mitigate risk of taking on a jr. dev from one of the bootcamps.
Interesting. You may copy the graphic of the main result to the beginning of the page with these data, something like a long tl;dr with two or three paragraphs.

Reformatting all the article and graphs is a lot of work, specially if the main objective is other. But a nice abstract with the main result helps the reader to understand what is the interesting part and find it with all the details later.
It's definitely the best for heavy users. I really only care about performance and Postbox, Mail.app, Thunderbird, Outlook and mutt were all too slow.

I haven't tried Mailbox.app, but it's got some weird Dropbox integration so I wouldn't bother.
Software Checklist
From Pretty Good to Great: Enhancing PGP Using Bitcoin and the Blockchain (LONG) [pdf]
They would probably get a better result if they opened a brothel next to their building or something.
Yes - without doubt, and it should be mandated by law, despite the bureaucracy that will ensue.

I've written about this in relation specifically to software:

http://www.solipsys.co.uk/new/SoftwareChecklist.html?HN_2015...

I doubt anyone will, but in case anyone wants to discuss it, I've posted it here:

https://news.ycombinator.com/item?id=10097029
Wall of text crits for over 9000.

Was there no way preserve paragraph breaks?

EDIT: Seems like they were lost for only a Bloomberg article and are present in other articles.
There are far more English lit grads that are competing for any job with a "publisher" or "journalism"

Also newspapers are well known for poverty level wages even when they had 30% profit margin.

A major publisher can pick and chose from ox-bridge grads who got a first.
Discover Amazing People Love the Website
Debconf15 is happening right now. Here is a video with details of the latest progress: (warning 2.1G)

http://meetings-archive.debian.net/pub/debian-meetings/2015/...

Sorry, I didn't realise it had been posted before.
Going off of my previous comment, the person you spoke to was probably flying a DJI Phantom[1].

DJI, to their credit, have been trying to integrate some form of safety into their products.

One of these such features are the 'FlySafe', which does exactly what you describe; it lights up a GPS light and/or will prevent the multicopter from even taking off if it's in a dangerous area.

[1] http://www.dji.com/fly-safe/category-mc
He lists resources at the end. TONC is really invaluable: http://www.coranac.com/tonc/text/

It's an interesting thing to try out. Especially to see what memory pre-allocation and limited resources can do to your way of modern thinking. It's also a nice exercise in C. You can do it via emulator, but linkers are rather cheap for GBA. There's something insanely satisfying seeing your crap run on mystical hardware of ye old(er) days.
Hackcon2015: all the write-ups
Later I've read that this unaligned read/write instruction had a bit of legal issue, but I can't find the article about it.

http://probell.com/Lexra/lexra.html

MIPS patented the instructions, likely knowing that they would offer a performance advantage. (The patent has since expired, however; but before that, I've written code to do unaligned accesses for the MIPS clones without them, and all the extra shifts/masks are quite bothersome.)
sorry where are these well paid engineers?
Germany, NL, Nordic Countries, Poland and CZ are pretty relaxed about work.
>Is it bad to have someone always ready for a chat or a game of ping pong? Is sex appeal a factor here?

Of course not. There's nothing like playing ping pong in high heels.
Your statements are very shallow. Without details, it looks like a random rant.
Its a MySQL dump.
Surely SQL would be the first choice for analysis on them.
An absurdly sexist practice, although kotaku seems hesitant to say it outright.
Even comes with a free flash stick containing the entire data dump.
that is interesting only if you are US resident, which many of us are not :)
With this scheme you would end up with pretty bad problems regarding function pointers and lambdas. Because the type is deeply implicit, you would have two function pointers that look compatible but are totally incompatible. Then when you want to assign them to a variable -- how do you know a priori what type to declare the variable?
Yes, see the "What is bcache?" section here:
http://bcache.evilpiepirate.org/
He compares it to L2ARC... same but with writeback. (ie writes can be considered finished when they are recorded by the SSD. Faster but less safe unless your SSD is also a raid.)

The bcachefs part at the top of that page is the new stuff this announcement is describing.
This is not true. The theorem proves point-wise convergence for a continuous functions on a compact subset of R^n. See theorem 2, page 6: http://deeplearning.cs.cmu.edu/pdfs/Cybenko.pdf
DJI, the company that makes a number of consumer-ready 'drones', already integrates this feature.

http://www.dji.com/fly-safe/category-mc
C# the language is pretty simple, or at least it can be - you can produce some monstrosities if you really try, but some of the gnarliest bits of C++, like arbitrary operator overloading and template abuse, are pretty blunted. The difficulty lies in the extreme breadth of the ecosystem - just the libraries built into the .NET framework itself could take you years to acquire a healthy knowledge of, not to mention the couple dozen most-commonly-used libraries on NuGet.

Ultimately, I think the best thing to do is just jump in and start a project that you're interested in. Accept the fact that you'll be hitting StackOverflow all the time, and when you're there, pay attention if you see comments and answers from Jon Skeet, Eric Lippert, etc. There are some decent email link-dump newsletters that are good and have a .NET slant, like Morning Brew[1] and Morning Dew[2], which can help keep you up on what's new, and often link to articles explaining various nooks of the .NET world. Avoid CodeProject - most of that shit is old, poorly written, and as often as not incorrect. Once you have your bearings a bit, C# In Depth[3] is a great resource on the nittier, grittier details of C# and the .NET framework.

[1] http://themorningbrew.net/
[2] http://www.alvinashcraft.com/
[3] http://amzn.to/1fv0zNH
Would agree with above, but given the evidence of chauvinism in the workplace I would say regardless of the facts this will be seen as sexism. Personally, I think it would be cool to have either a male or a female that was genuinely interested in some of my programming projects.

Motivational employees would help to significantly ease some of the social anxiety of programmers such as my self. Male or female the interaction of genuine interest is at the core of what seems to be lacking here. Typically any "collaborative" or "interest" showed by coworkers or superiors falls into two buckets.

- coworker: "oh that's cool reminds me of the time that I did x" with subtle connotations of why x is better than what you are doing.

- superior: "hmm really interesting, make sure you get this other stuff done before next week" with less subtle connotations of I have no idea what or why you are doing nor do I care as long as you get all your work done.
Got any examples in real IT jobs of an apprenticeships working?

Most IT jobs start after the level of an apprentice.
BtrFS will stop being "unstable" when development is done, in 20 years (much like ext*).

I run BtrFS on my 2 laptops (one with SSD, one with HDD): the only issue I ran into is metadata space exhaustion: I have well over 100 snapshots and suddenly, the drive becomes unwritable. Once you know that can happen, you're more careful about backups and when to remove the old snapshots.

Also, Debian might not be the best place for bleeding-edge stuff like BtrFS: you should consider a distribution with a more recent version of kernel and utils (archlinux, gentoo...)
If you find this kind of stuff interesting, GDC Vault hosts back issues of Game Developer back to 1994: http://www.gdcvault.com/gdmag
Exceptions have another advantage not mentioned in the article: performance.

If you implement them as "zero cost exceptions", then there is no overhead for the successful path. Option 3 requires error checking even if you return successful, which can only be optimized away maybe if the compiler inlines and moves code around. Since Go and Rust favor static linking this might work. If you want to link libraries it does not.
Raspberry Pi 2 Cluster Assembly Tutorial
That doesn't make sense. You're not going to give everyone that 12000. Just those that make less than that per year, right?

If that's the case, then the amount is a whole lot less than $3.8 trillion. The calculation is then 12000 * (Amount_of_people_that_get_less_than_12k).

Latest poverty numbers (2013) that I could find indicate only 45million are living in poverty. Assuming that poverty maps to less than 12k (and assuming they get all of it, and not simply the difference), then the calculation is:

12000 * 45,000,000 = $540 billion.

Which is a lot less than what you mentioned, and would probably be even less. That is definitely do-able, if the political and social will is there.
Apply to Become a 2016 Knight-Mozilla Fellow – Knight-Mozilla OpenNews
Good ol' WinG. Did it even gain any traction before DirectX took over?

More than anything that article reminds me how great PC Magazine was. They had technical articles written by guys like Neil Rubenking, Charles Petzold, and Jeffrey Richter.
I backed up the MT State Checkbook data before it was deleted without warning
I can't answer the question for OP, but for me it would be

* Pursuing my own goals

* Working directly on something which benefits me

* A lot less boring than sitting in the office all day

* Not sitting in an office at all

* Nature

* Real satisfaction from accomplishment

* Don't have to when I don't want, i.e. I have to deal with the consequences (e.g. no food) but nobody can make me responsible for this and fire me

* No commute through crowded cities

* No recycled, AC'd air

* Did I mention not sitting in an office?

I think I have to stop now or I get even more depressed than I already am.
The debian installer has a boot prompt option to install sysvinit, or if you want to be lazy, just install the sysvinit-core package and have the package manager uninstall systemd after first boot.
There's an Indiegogo for a live Crystal Maze, open to the public:

https://www.indiegogo.com/projects/the-crystal-maze-a-live-i...

I'm already humming the theme music.
So rich kids whose mommy or daddy brought them a mac - not what I woudl be looking for
Show HN: SetupMyProject – Setup your Java project in less than five minutes
Grade inflation :-(
Well, compact continuous functions are dense in L1, so if you're discontinuous but at least integrable, you probably will still get a nice approximation. Take a box function for instance. Strictly speaking this is not continuous, but it's easy to see it can be approximated arbitrarily well by a couple of sigmoids.
legal drugs? in terms of cannabis availability for example, more US than european citizens have legal access to them. most countries here are more than backwardish here on similar topics. prostitution is same
I'd recommend anyone that is interested look at http://gbadev.org too.
Do people really clutter their phone with every random website app? Most of them appear to be marginally better at rendering the website for the low, low price of scraping some subset of your personal data.

I use Android profiles for the simple reason that I don't agree some random app needs to know every email or phone number in my address book,much less mine my text history. The few apps I use go to a profile hooked to my ham email address. Still not perfect.

But deep linking via apps? What's the compelling use case again? I don't see one that doesn't work just as well on the mobile web site.