skysight-inc/HackerNews huggingface dataset:
> I don't think I've ever injected a non-functional dependency

Logging is the classic example. Or the data service provider, or CXF-type stuff

> Use a factory or default arguments

I think that's the main point. Framework-managed DI puts a stop to the factory madness that you always ended up with back in the old Java or C++ world.

> Have the default constructor setup the concrete dependency and use the extra constructor for your unit tests

This will work for a while, but when you start needing to test complex flows, you're going to end up having classes calling classes calling classes, having multiple constructors will become unmanageable.

> DI tools introduce accidental complexities that outweigh their benefits in the simplest use cases

I totally, fully, definitely agree with you! The heavy tools such as Spring or EE6 are ugly, frustrating behemoths with absolutely no advantages for small or even medium developments. But as soon as it starts becoming a 40MY+ project I find you can't avoid them :(
Gmail Alternatives in the PRISM Age: Hosting Your Own Email Server in the Cloud
> In the long term I really think nuclear is optimal, after all that's what the universe chose... In a way, solar energy is fusion based. ;)

But fusion != fission
Btw, regarding for-comprehensions and Futures, there's a new project that's going to make things interesting for working with Futures: https://github.com/scala/async

> On the other side of the paradigm, functional language advocates seem to say functional programming in it is also painful[1]

Worth pointing out that the people advocating for a better language in that thread, including the one that started it, have problems with Haskell too (currently the poster child for functional programming). It is the reason why many of them are using Scala, whether they like to admit it or not. In that thread it is even argued that lambda-calculus itself is outdated because it is inherently sequential.

Scala attracted many idealists that aren't pleased with any mainstream language. On one hand it is good, because it moves the language forward. By comparison the Go community is kind of toxic. On the other hand, people that don't get the context of that discussion jump to conclusions.
In-fighting over Mir on Non-Unity Ubuntu
(Assuming this was meant as a reply to my comment) - I do understand that, I pretty much just bought a single share to say I had one, and see how it would perform, more as an experiment and out of curiosity than an actual business interest.
I am a programmer and I definitely give a crap about the techniques taught in the post. I believe we can use FPGAs to implement zero-latency "chasing the scan" augmented reality.
See here: http://ceylon-lang.org/documentation/1.0/roadmap/

I hate to say it because I like JetBrains and have given them lots of money over the years but I prefer Ceylon to Kotlin. They are very similar languages but I just like the Ceylon syntax more.
I'd like to hear more about this. Can you distribute on the official Google Play store and incorporate GPL code? Is this allowed because there is an alternate means of installing apps (side loading) which you must make available to all users?

I'm curious if a developer can incorporate GPL code in their app and make it available only on Google Play or the Amazon App Store while supplying the relevant source code (or object files) — but not making the unsigned/unprotected APK available to the public.
Coincidentally, a couple of months ago I was chatting to an engineer that had restored an old PDP11 and he was telling me about how one of the many benefits of the PDP11 is that it's surprisingly easy to source replacement parts. Many of the PDP11 part are compatible with other systems of that era and much of circuit components can be replaced with modern components.
The comment I meant to reply to was a first time buyer. It's more likely he/she spent $20/trade.
I'm late to the party but we have a list of some outdated gems that are still not compatible with Rails 4 (we use a long-lived branch for rails 4 compatibility that should be merged once rails 4 is released and all our dependencies are compatible).

* client_side_validations : There is an outdated rails 4 branch

* client_side_validations-simple_form : this is trickier because it also needs compatibility with the next simple_form major version. AFAIK no work is done at the moment

* active_enum : looks like simply updating the gemspec may be enough

* ransack : there is an outdated rails-4 branch, I'm not sure what the current compatibility status is

Other than that a few gems have still not released stable versions with rails 4 compatibility and only have support in a RC or even just their master branch (for instance: simple_form, database_cleaner, sass-rails)
Why don't you like implicits? Even the more conservative language C# has them.

It beats the heck out of having to do the following in Java:

BigInteger x = new BigInteger(someBigNumString);

BigInteger sum = x.add(new BigInteger("1000");

When you can do this in Scala (or similar in C#):

BigInt x = BigInt(someBigNumString)

BigInt sum = x + 1000

If you're going to say it can be abused, lots of things can be abused in any language. I prefer sanity in this case for implicits over risk of abuse. Having to use something like BigInteger in Java without implicits just makes my head hurt trying to read and write code using it.
Out of curiosity, why not support 10.6? Are there some features that rely on Lion or ML? If 10.6 had been supported, I would have purchased a copy.
Makes you wonder if there is some nuke plant engineer somewhere secretly playing Empire.

On the other hand, NSA probably found out he downloaded the code from Github and the engineer is now in Guantanamo playing Ultimate Tic-Tac-Toe with geckos occasionally mumbling Fizz and Buzz.
Very cool. I doubt they can keep it up when they start producing cars in high volume though.
Here's hoping I'm wrong :)
If the hardware did fail and they somehow couldn't find a replacement (doubtful), they could always emulate it on a newer machine.
Hudson CI - Jenkins CI
Privacy officials from 6 countries request details on Google Glass
Yes. I would've reposted but it already got replies.

I can understand the desire to experiment, just keep that in mind for future trades. Commission can be a killer as you trade more, especially if you trade less than a few thousand dollars at a time.
Props for opencagedata.com!

It's fairly easy (days work) to set up a Geoserver web map server to provide the data you need as a Web Map Service.
You could use parent's data.

People should note the GetFeatureInfo interface that WMS provides for asking about the entities in a particular part of the map - click a house, yield the address and owner as XML (if you have that data).

Then you'd use openlayers to implement the web map on your site.

A 'roll your own' solution like this is only a good idea if you want to do something special, but an off the shelf solution constrains what you believe you can do. Imagine if every start-up was doing their site in wordpress.
How would you post a bond covering decommissioning in a fair way? I assume that some degree of maintenance is going to be required for the waste dump for the next few millennia. Has anyone calculated the full end cost of nuclear power per unit energy? I've searched before, but I assume the answer isn't simple as keeping the waste is a long term problem.
Yeah that's the one. There's a follow up worth reading as well.
Apparently he got a medal upon exiting the service instead of the court martial he really deserved.
I suggest https://www.webscript.io/
How to Communicate For Business Success
In short: yes. The step from Snow Leopard to Lion was huge API-wise and a lot changed in how document based applications work.
It may do the job, but if recruiting people to maintain a legacy system is damn near impossible, it is no longer appropriate for the job and should be replaced.
> there's a place for both renewable and nuclear to coëxist in the short term.

Except that there is absolutely nothing short therm about nuclear. If you build it, you're stuck with it for decades or have to swallow huge write-offs. And of course the waste stays with you for centuries or millenia.
They're working with current electricity prices, but prices are already slated to go higher in the next few years in some parts of the US. PJM International electricity auction prices for parts of the Midwest and Northeast US are shown here: http://www.pjm.com/~/media/about-pjm/newsroom/2013-releases/...
I have had two similar experiences with my Amazon Kindle. (This is in the UK, in case it's relevant).

The first time, it broke. I called on a Tuesday at 6pm, they acknowledged the problem, and the day after I had a new one at 10am. I can't remember exactly how I returned the broken one, but I think I did it myself on the following days, to their freepost address.

The second time, I lost it. A couple of days later, they contacted me saying somebody had found it and called them. They shipped it back to me for free.
It makes people buy new cars. Exact thing just happened to my boss. Chucked in his workhorse of 13 years to buy the new model he got loaned.
Presumably the advice should be "it's never worth it to only buy a few hundred dollars worth of shares", since buying a single share worth $10,000/share is a decent deal (with respect to the commission, at least).
You're 100% right, but you can't win on 3rd party in the US and even if you did your options are people like Ron Paul (good with many policies but dangerous on others).

The best is to do exactly what the GP said: invade a popular existing party. Though, my choice would be the republicans because I anticipate backlash against the dems in the next election cycle.
Depends on whether you consider redistribution under a different license a part of "whatever you want".
Why would it be a feature? It is almost never the desired outcome, thus a terrible default.
> And, yes, there's a Visual Studio plugin for it if that's your cup of tea.

Only if you are lucky enough to be using 2012 already.
There's an active and deep spares market for PDP-11s, and most of the key components (processor, mmu, bus controller) have open-source cores available for substitution - I don't think these plants are at the mercy of whoever now owns the relevant DEC IP.

See http://opencores.org/project,w11,news
> I pretty much just bought a single share to say I had one

This I can understand. It's nice psychologically to be an owner of something.

> and see how it would perform

But this you can do without buying :)
Facebook wants to become the second Google
> In fact, if you are a Microsoft developer, you've lost Win32, MFC, ATL, WinForms, WPF, and Silverlight.

Funny on my installed Visual Studio I can create projects for all those technologies. How have I lost them?
Is there a separate symbol for A?
Scaladroids: Developing Android applications using Scala
I've never been diagnosed. In high school I had an uncharacterized organizational learning disability. Out of desperation I wanted to be medicated and have made the huge step, huge for me, of talking to a doctor who referred me -- we'll see. The stories I've seen on HN have soured my opinion of medicating. I don't want to become addicted or unable to function, less than I already do, without drugs.
There seems to be a lot of competition in this field. Did you evaluate existing services?
It's an interesting problem.
If you're willing to take the long tail hit, you can avoid maintenance and support.

See: apps that are 2-3+ years old, still collecting $$$ without updates.
I especially like his screenshot: A little minecraft clone with its code in a single image.

http://i.imgur.com/ZZWFkXn.jpg
Unless there is a tradeoff.

The tradeoff here being that introducing immature equipment may result in a higher risk.

Plus if it's an older PDP11, it's fully documented both hardware and software wise and is built out of flip chip modules which are essentially still replaceable and repairable to this day with a soldering iron and any half-decent EE.

You can't even get half the parts in your PC from 5 years ago and there is no documentation bar some NDA smothered PDF which is mostly incorrect for most of the bits.

It's the same reason I still have a 1972 oscilloscope...
In my experience, tiny SaaS businesses tend to grow when neglected, rather than die.

Once a product is good enough for people to start signing up for and using, it often doesn't require much more development work. As long as people can find it, more people will sign up than cancel in any given month.

"Passive" is a really good way to describe the experience of owning one of these little businesses, once you've dialed things in so that the support workload is measured in hours/month and you're firing up the IDE maybe twice in a heavy month.
My bet is that long-term Mir will be a mere Weston alternative simply implementing the Wayland protocol and using the same kernel APIs.
I too, am a fan of "if it ain't broke, don't fix it", but saying that you're going to use PDP-11 until 2050 is a little overboard. Modern languages were made not just for rapid development, but also modularity and to reduce potential human problems. Manually entering data in a PDP-11 is a goddamn error prone task.

I don't think anyone here is suggesting they go run a nuclear reactor on Javascript, or throw away manual overrides and backups, but for goodness sake, you're going to have a hell of a time finding someone willing to dedicate their life to doing PDP-11 forever.

In fact, NASA wrote much of the code for the rovers in Python and C... http://compass.informatik.rwth-aachen.de/ws-slides/havelund.... and the rovers run on RAD750 processors. http://www.baesystems.com/product/BAES_028145/rad750-family-... I am not a nuclear engineer or a NASA engineer, but I would think that the environments of space and a nuclear power plant might have quite a bit in common.

I guess the real question here is, is there really so little investment in energy that a more modern piece of software can't be written for these reactors in something like C?
Inheritance is evil, and must be destroyed
Entrevista con Edward Snowden subtitulada al español
Think of problems, outline a solution into a video and a pitch, put it on kickstarter and market. You only need to implement it after you received the money (the lean startup method).

To find problems, do searches on google, yahoo answers, and twitter. Look at the bureau of labor job outlook handbook online and see which parts of each job could be eased with software, or whether online marketplaces could be created (taxi drivers -> uber, hotel desk clerks -> airbnb). Also, each section of craigslist is potentially a online marketplace.

Grab data and build recommendation systems. Movie, music, book, stock/currency prediction, photo, video, blog, vacation, sentiment, patents, similar people (from facebook/twitter/blogs).

Programmatically generate data visualizations and put them on youtube, slap ads on.

Build control systems for drones to automate transportation/photography/surveillance/games. Look at the academic research and commercialize it. Drones that can play catch games, deliver orders to tables, do photography for functions/weddings, do surveillance of perimeters of offices/homes.
Starting adopting Scala about 18 months ago after much frustration with Java's copious boilerplate. It's like a breath of fresh air and feels in many ways like a dynamic language thanks to type inference. We still use many Java libraries but interfacing with Scala is a breeze. It's got more up-take than Kotlin or Ceylon and I'd say the only decent alternative on the JVM is Clojure but that's a different beast. If you're in a position where your after functional programming on the JVM then consider not waiting years for Java to catch up. Give Scala a go.
What about http://www.mappy.fr/ ?
Ninja Kick Email Into Place | Mailbird
There are much less complex but precisely as powerful languages out there (like Haskell). Scala's crazy amount of syntax is what makes me avoid it, not unlike C++.
A Raspberry Pi with RaspBMC has AirPlay support as well, and is a bit cheaper/more functional then an Apple TV ;)
Canon, if you're a pro photographer. I assume Nikon has a similar support system for professionals. It's pretty amazing. Test/Evaluation loans on $15k lenses for weeks, emergency equipment loaners, dedicated support at major events (Superbowl, etc.).

The high end models of "regular" high end car manufacturers also get service like this -- at the Audi dealer I use for dealer service (Stevens Creek), they have 2 dedicated mechanics for R8s. If you have an R8, you get essentially the Tesla service -- it's picked up at your home or office, you're chauffeured in an A8L if necessary, etc. For my 7 year old used A4, I just get a free loaner A4, TT, or Q5 for as long as service takes, which is fine too. I still go to an indy shop (Advanced Autowerks in SF) for non-warranty stuff now that I'm out of Audi Care service period, though, where they just give you $4 for the 3rd St Muni roundtrip. I assume MB SLS and other similar cars get similar treatment. Although, outside of San Francisco (parking), it seems unlikely anyone who owns a $200-300k car only owns that one car.
That semicolon (;) in your footer should be a colon (:). [0]

[0] http://i.imgur.com/VHYGbSd.png
> you're going to have a hell of a time finding someone willing to dedicate their life to doing PDP-11 forever.

Between my enthusiasm for vintage computing and my job developing embedded systems, I'd do it in a split second, were it not pretty much in the other half of the world than the one I'm living.
Oracle make a huge chunk of money from support contracts. I don't have any figures to hand, but when I used to work heavily with Oracle, the support contracts far exceeded the licence costs. And then they have the epic certification fees, on-site consultants and developers, and so on.

So as much as it pains me to say this, I can totally understand why Oracle have removed those resources because it's flies in the face of their business practices:

1. build something massively complex and counter intuitive to developer for and administrate

2. employ the best salesmen to encourage potential customers that your product is the most powerful and flexible tool out there

3. then charge your confused customers ridiculous support fees because they can't manage the solutions they've just bought

This is why my heart sank when Oracle bought Sun. The two businesses couldn't have a more different software culture (Sun Enterprises were, in my opinion, were one of the best for releasing open, well documented and well designed software)
After going back and rereading some of the posts, I agree without you about it having a group of angry programmers that aren't happy no matter what they get.

That project looks interesting though. Looks like it's almost based on the new async abilities in C# 5.0[1]. Have you tried it any yet in Scala?

[1] http://fizzylogic.nl/2012/05/04/adding-asyncawait-support-to...
While they're at it open-source the nVidia Linux drivers. And end war and poverty.
I'm not as emotionally invested as you seem to be in whether Google is good or bad. It's a corporation, so I assume they will do whatever they can to make money, and will be generally okay with fucking people over if needed, especially if not many people will know about it. Just like Yahoo, Apple, Microsoft, and everybody else on that scale.

So why didn't they challenge it in 2009? Probably because there wasn't that much in it for Google, since wasn't a big national shitstorm blowing that way. But now there is. That is the point I am making.

So, now, Google could serve their own corporate interests by fighting hard against the rise of the secret police. Would that make Google an awesome person? No, it would still be a selfish corporate entity trying to get money, just like it always has been

But, it would (rightly) be perceived as a force for good, on the right side of this particular battle with tyranny. That would help you, me, America, and the world... but it would also help Google, it would seem.

And some of these other "fucking scumbags" (which I assume is your term for "corporations acting normally"), like Apple, Yahoo, etc., might be encouraged to do likewise.

In other words, it takes public outrage to create the shitstorm (which you will have noticed is in the mainstream media, not just nerd forums like this one), but once the outrage is in place, that helps align the interests of corporate behemoths like Google with what you and I would probably agree is Good (i.e., not having fucking secret police using secret laws to evade the control by the citizens of the nation).
Yes I was coming to post this.

Clearly the person who wrote the title of this message is uninformed.
Wrote a book, it was published today: Loyalty 3.0
NSA chief asking Congress for immunity law for companies that help NSA spy.
The Nobel Peace Price includes 8 million SEK (ca. $1.2 million).
This tweet has the info about the attacker. https://twitter.com/Packetknife/status/347136455459618818
We've already seen elements of this trait with their case against Google regarding Dalvik.
The US has killed a lot of journalists internationally. Generally more in the form of "collateral damage" (often acknowledged), but I'm pretty willing to believe either US personnel or those acting as its agents did murder people in various Central/South American and African conflicts in the 40s-80s (and mainly pre-Church).
FTA: "Yes, the utility industry will need to update the century-old hub-and-spoke architecture of the grid to accommodate high levels of variable and distributed renewable power, but that needed to be done anyway. Yes, there are important questions to be addressed about dispatchability—the degree to which the power generator can be fired up at will, as needed—voltage regulation, service level guarantees, and the evolution of utility business models and regulatory environment, which I have written a series of articles about"
So you'd prefer a BOM for your nuclear power station controller with mostly proprietary vendor-specific parts which are obsolete after 2 years, impossible to replace or find maintenance stock for and under layers of NDAs and crappy documentation?

That's the last 20 years.

Or would you prefer a PDP11 made out of COTS parts (most are discrete in a basic PDP11), fully documented both hardware and software wise?

"Crap my register file is suddenly losing data".

Oh ok, dig out docs, look up fault diagnostics, ok bit 3 has failed, says replace TR23, TR24 in that flip flop, test it, wham it back in, sorted.

Versus, throw the part away, dig around all used semiconductor resellers, pay a premium, find out it's some shitty chinese clone that doesn't work or has just been relabelled, bash your head on the wall and hire a consultant to design the entire system module from scratch again.

Hmm.
I for one think that the for comprehension syntax is more readable, especially when you start iterating over multiple sets.
To me, 'metadata' is a confusing word for this type of data. People in the ed-tech space have begun calling this type of data 'paradata' [1] because it sits beside the data.

This helps make it distinct from metadata. Metadata then describes the data itself (tags, classifications, etc.), whereas paradata describes the data's lifecycle and use (e.g. who used it where and when how, etc).

[1]: http://en.wikipedia.org/wiki/Paradata_%28Learning_Resource_A...