skysight-inc/HackerNews huggingface dataset:
I'd suggest an alternate approach: add enough commentary to your one-liners so that a reader can parse that instead of the statement. Bugs can hide in the expanded versions of code just as easily. By offering the reader of the code a clear summary of the next one-liner, they can quickly scan it if they are trying to find a bug nearby and decide if it is potentially the culprit.

On top of that, consider making every bit of clever code a reusable library snippet instead. If it becomes part of the vocabulary of your codebase it'll be easier for others to understand it by looking at call sites.

eg:

# Capitalize the first letter of every word
@sentence = @sentence.split(' ').map!{|x| x = x[0..0].upcase << x[1..-1]}.join(' ')
Shamelesly plugging one my apps here, very identically: save your thoughts or a todo list without installation of any extension or signups >> http://www.doit.eddywebs.com/
When you come back on same browser it remembers everything.
Murder becomes a much harsher crime as well.
Are so many adults that insecure and self-centered that they think everyone is focused on their bathroom activities? I'm certainly not paying that close attention. That said, I flush for noise and smell out of courtesy but not because I'm ashamed of something that I largely can't control.
Their true goals? To have their company make money? I don't see how this is an issue.
Millennials Are Poorer Than Their Parents, Investigation Finds
It's worth bearing in mind that Microsoft isn't a singular entity. It's a company made up of employees. How many employees from the mid-1990s are there today? How much of their leadership?

How many of the employees that were there in the mid-1990s work at companies you adore or support today? Maybe other companies are where Embrace, Extend, Extinguish lives today.

Technology moves at an incredible pace. Acting like any news story from the mid-1990s is relevant today is incredibly silly.
This module gives your python command line tool a better look
Maybe I'm still just showing off, but I don't even use Ruby that often and it's pretty clear what that code does. Split the sentence into words, capitalize the first letter of each word, and re-join the words into a single string.
Ρολόι timberland 13854jsb02
Introducing iSCSI over TLS
It had to be done:

setInterval(function() {
var n = parseInt(document.querySelector("#n").textContent);
document.querySelector(is_prime(n) === "prime" ? "#yes" : "#no").click();
}, 0);

document.querySelector("#start").click();

EDIT: replaced my isPrime with the one already in the game.

EDIT 2: There appears to be some sort of increasing delay (pretty sure it's not just `is_prime` being slow) starting around 500 points. Maybe the game itself trying to compute primes?
I remember having been immediately struck by differences in office bathrooms between California and UK/France/Germany (where I worked).

The offices were usually nicer overall in the US (roomier, more recent), except for the bathrooms. Small, low quality, like 2 stalls in a 600 persons building. Usually pretty far away from work stations.

Turns out labor code enforces much higher standard for bathrooms in most Europe countries. IIRC for France: 1 stall for 10 person minimum, with a top value somewhere (maybe 10 stalls max), with adequate AC, lighting, water-saving systems, etc. There's a maximum walking distance to workspace. I believe it also now requires full-size partitions (or maybe in mixed toilets only if there's not enough room for separate). It should also now be 100% accessible in new office constructions and redevelopments. An architect friend told me those costs do add up, so the money doesn't go in fancier paint or lighting. It can also limit growth in team size if there are not enough stalls in the building.

I suppose it doesn't change in the US as a perfect "dark design": shitty bathrooms means people will use them less.

So bathrooms sum up the pros/cons of market regulation.

Also speaking of regulation, I like that the german labor code requires that all employees should have permanent access to daily light (with precise lumen values).
I like the sentiment here, but don't waste your time on the launch page! You can accomplish the same goal -- determining the crucial features -- by drawing your landing page on paper. List the top three benefits of your app, then list the features absolutely necessary to enable those benefits. That's your MVP.
Maybe it is? I really don't know, but I've only ever seen cleaning staff the few times I've come in on weekends, and only ever seen noticeable improvement on Mondays.
I keep coming back to point #4 - who ever thought that 16k objects in a single directory would be a good idea? Ever since FAT that's been a bad idea, and while modern FSes will handle it without completely melting down it's still going to cause long access operations on anything to do with it.

Even Finder or `ls` will have trouble with that, and anything with * is almost certainly going to fail. Is the use-case for this something that refers to each library directly, such that nobody ever lists or searches all 16k entries?
Prelude is using a git repo as a git repo, it absolutely isn't using it as a package manager's CDN (AFAIK it doesn't even have packages, and those packages it depends on it pulls from ELPA and MELPA)
That estimated peak is based on existing and projected death rates. Even Japan's population would grow if death from old age and age-related disease ceased.
Adding to this, I've found from profiling a lot of Python 2.7 code that a lot of those little cute one liner list comprehension expressions are slower than the expanded for loop forms. And also the expanded loops are a lot easier to change after the fact, for example if you want to do two operations on an item in your loop, you then have to expand it out anyway.
The threshold for 'darling' depends upon the facility of the developer. Some of these are obvious to those with extensive experience.

So where does it end? Dumbing down code until its so wordy, so bland, that it takes minutes to digest every phrase? To rewrite it in your minds eye until its back to that 'darling' concise expression. I recall taking a contractors 2 pages of code, and reducing it to a line. Not even a very complex line. In my view that was all improvement.
Scaleway C2 Dedicated Intel (€11.99/quad X64/8GB/50GB SSD/300Mbits Unmetered)
Why so many scientists are so ignorant
Yes and no.

Governments have to convince employees, citizens, and other governments, agencies and organizations that doing the coercion is in their best interest.

Corporations can coerce people through unemployment, professional ruin (in the case of small professional networks), propaganda and other forms of information control...

Large, powerful organizations that dominate local economic and social landscapes are large, powerful organizations that dominate local economic and social landscapes; and it's not like people in one situation are somehow fundamentally different from people in the other.

If losing your job - or worse, keeping your job - restricts your choices as much as prison, does the moral difference matter? How close does the restriction of options due to un/employment have to get to prison for it to be a Problem?

Yes, there's a difference, and yes, there's a moral difference, and yes, governments have access to forms of coercion that corporations do not... but. Everything is still made of people, and if you can't leave - through actuality or perception - then it doesn't really matter.
I've never gotten useful results from powertop. The model it builds to correlate system events vs. observed power usage always diverges with reality very quickly. In the good case it'll just do something a little silly like conclude that the CPU fan is the ultimate source of all power consumption. In the bad case it'll be something like think that a pair of linux veths uses 3kW (not a typo) of power.
OK, so we have what percentage of their products open (admittedly, some of them are pretty significant)? compared to all the other negative they've done? I'm not ignoring anything, and I'm not really sure why you assumed that. In fact, if you blindly say they've turned to the good side, I'd accuse you of the same...
I agree. Someone's "darling" code might be a truly innovative or unique way of solving a problem, and providing enough commentary should help avoid the problems the author warns about.
Nice game. Something weird can happen in the brain when we have to choose a binary answer under pressure. Maybe the fact that we are answering positively for prime (which is not the default) adds to that. For me it helped to rename 'yes' to 'prime' and 'no' to 'divisible'.
Are you saying the cost of 12" of chipboard is expensive? Because it's not. Especially not at trade prices.

It's not blather, I'm not sure where you buy wood, but if you think the wood of bathroom door even makes up 1% of the cost of building a bathroom... And 0.01% of the cost of losing an employee to something so trivial as a horrid bathroom.

Honestly, this sounds like a US-specific problem, in the UK none of the offices I've worked in have had a 'gap' in the cubicals. Nor the schools or public buildings or public toilets.

Reading these comments are comical at how a whole country can collectively do something so simple so wrong. No judgement, every country has silly quirks like that!
i memorized all the prime numbers up to 100 for the GRE
I can't really tell what this is, and when I click the tell me more, it only asks me to login. I _think_ it's just a raspberry pi, but maybe it includes some sort of display? Is it internet connected? Is there an app for it that I can update the display? If yes to these questions, I really like the idea.
No lets reimplement miglayout
Yeah, I'd have to agree. I was not at all impressed by the CocoaPods response here, especially since it was made clear by the GitHub staff that CocoaPods is using up a lot of CPU and terabytes of bandwidth. If you get all that for free, I'd expect you to be a little more open to changes that make it easier for your provider to continue giving you all that for free.
Wordpress powers 1/4 of the internet...

Any company with a decently sized content (producing) team is going to need to use a CMS.

A lot of folks are also using Hubspot and Salesforce to create their sites...Gotta love vendor lock in.
This appears to only be "free" if you subscribe to a 1 month trial of "Kindle Unlimited".
1) I'm not sure what you mean, your comment was generalised, implying it has a wider scope than this one author. I'm also not sure what karma has to do with anything..

2) If the rubyist comment is 'odd' to you, how are you sure that it's denigrating? as for 'messes' and 'useless', you've divorced them from context:

> Backbone led to messes bigger than jQuery messes, it's full of useless stuff

> What's the point of backbone model? it's useless so one has to use relational.

Your concern is tone-policing?
I agree that the current graphs from Spotify don't support this. They do seem to show a one-to-one mapping between events and messages emitted. Given the comparison in my GP, I think that client-side message collation/aggregation would be a natural next step.
https://www.khronos.org/members/

Really? Might want to check that again.

Although, I am curious, considering Apple does the same thing with Metal that Microsoft does with DirectX. The difference is Apple has no dedicated console device they sell.
I realize that was an overly broad statement but I thought the next line clarified it a bit. Canonical definitely has a direct monetary incentive in its OSS participation.
The most successful side project I ever had was an SaaS business I cobbled together in two weeks of Christmas break sophomore year of college. It paid the bills for the rest of college.

This sprint sounds like a great way to force constraint on yourself. Make sure you're using that constraint. Don't work on this like you would any other project. You need to be fully aware of the deadline, and constrain features within it.

If you're making an SaaS, the the first thing you should do is setup payments. That will give you confidence that this sprint can actually result in some real revenue. Then, you can build out the features.

Also, don't experiment with any new technologies. Use only what you know, and prefer shitty spaghetti code over well-architected solutions. Just get this shit out the door.
Why the snarky tone? Why not show how he is wrong so we all can learn something?
At the very least I'll agree that terseness is not always a virtue, and the time saved in keystrokes or formatting now may be easily lost later when someone tries to figure things out. That said, not all statements of this form are unreadable or incomprehensible, and in some cases there may actually be performance implications as well. As always it is a matter of judgement.
I have written my fair share of ruby and yeah, that line didn't take superpowers. The point of the article is still valid, though.
I agree that it can vary a lot. I'm making generalizations. And I'm not basing it on just the mid-90's. I'm basing it on everything else since then.
Ah, you beat me to the minute (game comes with a function is_prime):

var yes = document.getElementById('yes'),
no = document.getElementById('no'),
n = document.getElementById('n'),
start = document.getElementById('start');

function tick() {
console.log('tick');
if (is_prime(n.innerHTML) === 'prime') {
yes.click();
} else {
no.click();
}
window.setTimeout(tick, 500);
}

start.click();
tick();
I'm completely new to ML and what real world applications it's suitable for. Are we at the point yet where you can train a computer to look at arbitrary images and count the number of people in it? What if it was the largely on the same background and only the number of people were changing -- for example, a camera shooting a queue of people to determine queue depth at a bus station.
... I need to increase the amount I'm putting in my 401k.
How confident are you that the behavior of IE11 on Windows 10 inside a VM on OSX with outdated guest drivers and a prefpane only Cupertino understands is really similar to what a real user in say Bangladesh sees?

Why not use the tool specifically created for this? A tool that you would be using anyway since you, I hope, also test for screen size/resolution issues?
It's about clarity, if you reduced all those lines to a single understandable line of code, that's great, if you obscured logic by using a one-liner, I'll say it was not an improvement, but it is indeed a thin line
> easier to see when its empty

Is a little dial connected to the lock saying "engaged/vacant" or green/red that difficult to see?
C'mon, I was eating when I read that and nearly choked.
It only matters, what is the marginal cost to the door vendor. Their profit margin is razor thin. They make those doors by the millions and sell them as a commodity. So yes even a few cents is too much.

We proposed putting a fuzzy-logic controller into a Maytag washer. Maytag said, any controls had to come in under 75 cents including sensors and actuators, for them to make it up in pricing. We couldn't manage that back then (the processor chip was several dollars) so no deal. Because washers are a commodity from the manufacturer viewpoint.
>I quickly realize that my thoughts are based on today's mindset where questioning the government gets you labeled a conspiracy nut or traitor.

I guess conspiracy theorist are today hippies.
It would be nice if git would support large files natively rather than relying on these extensions.
I'm not sure how DefinitelyTyped works, but their repository https://github.com/DefinitelyTyped/DefinitelyTyped is huge and may be they use that github repository as a single distribution point.
What's wrong with their CLA? Apache requires a CLA as well: https://www.apache.org/licenses/icla.txt

I think these are just good legal and business a lot of the time. They are the legal protection and audit trail showing that the person really did intend to license their IP.
Two of these things are cool and useful.

TFS supports git repositories. TFVC is among the worst VCS I've used and really cannot be distinguished from CVS or SourceSafe in terms of usability or performance in my day to day experience (we have 3 TFS deployments, 2 TFVC only, one mixed TFVC and git repositories).

So, I'm cheering for .Net Core and I'm genuinely impressed by the MS SQL offering for Linux. This, on the other hand..
I find it amusing how GitHub's contact[1] form has (probably a recent addition):

> GitHub Support is unable to help with issues specific to CocoaPods/CocoaPods.

---

[1]: https://github.com/contact
More people are on wordpress than any other CMS, which is one data point in the decision but certainly does not mean it's "the best". But based on the wording of your question ("which have they moved on to"), this is probably the closest correct-ish answer.

Other than that, people have moved on to all sorts of CMS's:

* If you're looking for something in the spirit of Drupal (most configuration done via dashboard interface, very flexible content modeling), try ProcessWire (http://processwire.com/) (free/open-source)

* If you're looking for something more designer-friendly and have a budget for the project, Craft CMS (https://craftcms.com/) is very popular these days.

* Also designer-friendly and less complex than Craft (and less expensive), so it's better for simpler sites: Perch CMS (https://grabaperch.com/).

* For the most easy-to-use editing interface, I recommend Concrete5 (http://www.concrete5.org/) -- my personal favorite (free/open-source).

* If this is a super basic site though and you just want to use an off-the-shelf theme and let the client manage it as much as possible, you're probably best off with a hosted solution such as Weebly (http://www.weebly.com/) or Squarespace (http://squarespace.com/). These have monthly fees (but comparable to decent web hosting).

There's also 18 bajillion other options out there... welcome to the world of CMS's, where we had decision fatigue long before javascript made it cool ;)
2) Wouldn't that sort itself out since you now only get information once a minute?

So it would still be first come first serve. Or am I missing someting?
> Microsoft's business model was to bring people in to their ecosystem and then charge them

Yes. But for about the last 10 years, that ecosystem hasn't been doing very well. Most Windows hardware is garbage and (except for games) there's virtually no excitement around software. What's the last Windows application that went viral?

Their developer strategy (universal Windows) is interesting and if I were in charge I would probably go down a similar path, but as a developer it doesn't interest me at all. Applications that can run on a phone or a desktop is an interesting trick, but in reality I normally want a substantially different UI on each. That would lead me to think about separating the UI from the application and then I might as well make a web app.
Is paper dead? Low fidelity vs. High fidelity wireframing
This seems like the next logical step, really.
FLIF can also do palettes, without arbitrary limits on the palette size. It will automatically use palettes if the image has sparse colors (and "color buckets" if it has too many colors for a palette but still relatively few). It tends to be better than PNG in terms of compression, also for palette images. I haven't looked at optimizing palette ordering yet though, so there is probably some more margin for improvement here.
It's amazing, their whole complaint is solved by proper software development practices - Comment your code.
As I commented in another related article, I think it in terms of "nuclear reactors", whose reaction times are crafted to match human reaction times (tens of seconds). Trading could follow the same principle.

Compounding with that, some studies say that trading itself causes most (2/3) of the volatility, so it is expected that µs-scale trading creates even more volatility.
I like that type of code, so yes, maybe it's a darling.

It's easy to make it more readable by aligning the code with the dots, so that it becomes a pipeline:

@sentence = @sentence.split(' ')
.map!{|x| x = x[0..0].upcase << x[1..-1]}
.join(' ')

I definitely prefer that to half a screen page of crappy imperative code, where people over time will add lots of side effects etc.

Besides, the middle part is clearly a strawman because

@sentence = @sentence.split(' ')
.map!(&:capitalize)
.join(' ')

but yeah. ;)
Rather than focusing on math maybe this might help http://www.catb.org/esr/faqs/hacker-howto.html
Sark – Build and run XCode projects from anywhere
Yes! The ultimate crime, surpassing even Treason. Perhaps death would be too easy for a Murderer. They would have to face perpetual imprisonment, thousands of years of confinement, to sufficiently punish them.
>So, why do we do it?

I do it because it reduces physical code size and helps me "chunk" code in my brain. Since I wrote it, I know what I intended it to do and how it does it, possibly with the aid of a small comment.

This helps me have a more compact complete representation of the surrounding code, both in my editor and in my brain.

Is it bad for verifying correctness and allowing others to understand the code? Sure. But there is absolutely a well-considered reason why I do it, and it's not to show off.
People interested in VP really, really should learn about DRAKON[1], the Russian style guide for structured dataflows.

I've used it for real projects and it actually solves the spaghetti problem. Compare this:[2] with this:[3].

[1] https://en.wikipedia.org/wiki/DRAKON

[2] http://scriptsofanotherdimension.tumblr.com/image/1386972466...

[3] https://upload.wikimedia.org/wikipedia/commons/0/0f/Dutch_cr...
Looking at the "Show HN" associated with your HN user name, one thing that pops out is that the post doesn't create much context for providing feedback. That is, there is nothing explaining what you are trying to achieve. Since I am clearly not in the target demographic, there's nothing for me really to evaluate the site against...I don't visit other street-fashion-rating websites or know why the woman on the beach is worth -422 for whatever it is that I'm picking.

It does something, but I don't know what let alone how well unless you tell me what it is supposed to do and why it is supposed to do it. I mean, I know there's a design vector under which I am simply not supposed to "get it," but I have no basis for evaluating it against a user story of someone who is supposed to "get it."

As others have said, the best feedback would be from people who are supposed to "get it". Absent that though, feedback requires an explanation...a blog or a comment or a link at the bottom of the page.

Good luck.
I answered this in my post...

> I have no issue with gender neutral bathrooms, but from what I hear around the watercooler, women's bathrooms are a LOT nastier than men's (or at least that's how women tell it). Too many women trying to hover and getting it wrong.
> I love how this was like the perfect storm of things that could go wrong

How so ? I bet the cocoapods team knew they were hammering Github with that gigantic repo. They just didn't care and expected Github to just give them more bandwidth, for free.
I'm curious to see how more experienced Rubyists on HN would write this. My stab:

@sentence.split(' ').map(&:capitalize).join(' ')

More terse and more descriptive (imo)
>It always amazes me that rich/educated people swear a lot and poor/uneducated people swear a lot but in between (middle-class) everyone is ultra polite

Makes sense though. The poor don't have anything to lose by offending someone else, and are likely the people who would be most offended by some curse words in the first place. The rich don't care because everyone else looks up to them for their money anyway, who's going to call them out? The middle class have everything to lose if the wrong person is offended by what they say.
ArtLebedev in Moscow did have "designer" single bathrooms as a perk: http://www.artlebedev.com/everything/toilets/