skysight-inc/HackerNews huggingface dataset:
Not being able to fit the code in 80 columns easily (for me at least) is a smell test for potential problems code.

Now it depends on languages, I am thinking of Python, C and Erlang here.

If you use too many:

full_project_name.useful_package_name.handy_function(...)

is there a way to alias it to a function local name such as my_handy_function = <the above>. Maybe there isn't (again it depends on language here as well).

> I think this is partly because our text-based editors typically don't separate the meaning of our code from its layout.

You need a better editor. That is a solved problem. I like emacs the best. I imagine vi is just as good. It knows how to indent code based on the semantics. It knows you are in the middle of the list or just started a code block and does the right thing. (And I don't mess much with the default, an editor that does most thing reasonably form then on I assume whatever else it does to my code is now the new "right thing").

> A few functional languages promote ideas like “let x in y”

It kind of proves my point -- if you have functions that are going past the end of the screen, you need to think a bit about the code (also of course depending on language here, but most languages allow this). Break it up into functions. For functional languages like Erlang, they really encourage short functions that are 5-10 lines long. Use function clauses and pattern matching (with guards) to lay out the logical structure and so on.
Ideally, IDEs should automatically take care of how to represent the code according to user's preferences. Also, IDEs can save files according to project's guidelines.
And it will be removed from the App Store today too. Another interesting technology killed and users crushed. Yay Yahoo!
Does Facebook produce different time-of-day conversion patterns?
How marketers are winning our minds
Big data enables IHG to become a service-oriented data-driven organisation
TRUE and FALSE are defined in obj-c (http://www.opensource.apple.com/source/objc4/objc4-371.1/run...), mainly for compatibility with C code. It's recommended YES and NO are used (http://www.opensource.apple.com/source/objc4/objc4-371.1/run...)
So NBT is a site for Christians to find Christian music?
Gmail Meter - free email analytics
Young genius, hot technology, insufficient adoption, clever acquihire, gentle disappearance. It's the circle of life...

http://www.youtube.com/watch?v=vX07j9SDFcc
I was interested in teaching a 6th grade class how to make a video game. I volunteered at Citizen Schools to teach a 90 minute session per week over 10 weeks at a low-income school. Made them a simple IDE where they could draw things and make them move around the screen with high-level Lua code.

It was largely a disaster due to classroom management issues, though 3 students did complete a game. I definitely think the 1:3 teacher-student ratio mentioned in the article is necessary to making this kind of thing successful.
"Pay what you want" can give the impression that the seller doesn't believe what they are selling has any significant value.

Also, it's easier for the average person to "feel" if something is too expensive or not if it has a real, fixed price. Especially if it is something that is not necessarily utilitarian, like art.

I agree though. People need to be told what to do. This is one of the drivers behind frameworks. They reduce the number of decisions and things to think about for developers. Clearly not the only reason, but a significant one I think.
Why is no one in these stories even questioning the concept of whether any joke about sex or sexual innuendo is inherently sexist?

Whilst not my personal comedic cup of tea, sexual innuendo is just a pun. Puns might be uninspired non-comedy, but a sexual pun is no more inherently sexist than a non-sexual pun.

Is the idea that because it was a woman who felt uncomfortable about a sexual innuendo, it was an inherently sexist act? People feel uncomfortable and offended with jokes all the time, that doesn't define their sexism or lack thereof.

This whole thing smacks of artificial controversy. It's a shame two people had to lose their jobs over what appears to be a total non-issue.

If this is the most blatant example of sexism in the tech industry / "start ups", one might think there are other more important things to focus on and get people fired for.
I've fallen head over heels for (Perl's) DBIx::Class and it's ability to "prefetch" joined data[1]. In short, it will populate the top level objects, as well as the items they join to from a single query (yes the DB will have to send duplicate info). I find it really convenient.

Recently I've wondered what other ORMs support this feature or something similar to it. Anyone care to comment?

[1] https://metacpan.org/module/DBIx::Class::ResultSet#prefetch
Glad I'm not the only one who feels the same way about it. Even if it's only a couple bucks difference, the uncertainty adds a whole layer of anxiety for me.
Well that certainly skewers the claim in the article that it will "never" happen :-). I note that these trees are effectively indoors as opposed to many of the architectural conceptions of being out doors (and the primary objection of the author).

That said my biologist friend says that trees are a lot hardier than the author gives them credit for, in particular many evergreens are adapted to living in pretty harsh climates and their needles are better able to deal with high winds and temperature extremes. His question was "where are the roots" since a 25' tall tree might have a 10' root 'ball' holding it in place. So if you don't mind having a floor of 'dirt' and then the tree on the next floor up, and you don't mind your tree being an evergreen, you can probably do something sustainable.
Massachusetts considering a tax on the Cloud
A foolish consistency is the hobgoblin of little minds.
Two other things about trees:

* They hold tons and tons of water and are generally massive (if you've never given a hardwood tree a good pruning, the volume and mass are surprising). A large, growing tree and its root system would add very significant load to the structure.

* They blow over sometimes. Probably frequently, on an exposed, elevated rooftop with limited soil depth (shallow roots, fairly easy to saturate). 20 tons of tree flying off a tower during a storm doesn't sound like fun.
This actually seems like a really smart move on MS's part. I've seen far to many sites that have blanket conditionals for any msie browser, which will potentially disable supported HTML5 / CSS3 features in IE9 +
The thing people miss here is the "Python related". If you need 120 characters on a line then you completely missed the "zen" of python.

Having to go beyond about 85 characters is a good indication that you probably need some refactoring in your python code. As the idiome states, "Flat is better than nested."

Your if, in an if, in an if, in a for, in a method, in a class is probably complete garbage. Even in other languages, if you are so nested that you legitimately need 120 characters then you likely need to refactor. Your code that is nested to oblivion will prevent anyone from being able to give you a thorough code review which opens you up to unnecessary risk.
East St. Louis as well has a bunch of abandoned 10+ story buildings with trees growing on top. They're not the biggest but they're actually quite beautiful. Like nature taking back what belongs to it.
Site got mentioned a few places and is currently down from traffic.

In the post I do mention that you can do the same thing with reddit or following a ton of music related twitter accounts, but the voting and input from different people. We're not doing anything new, but I do think the presentation and appeal is there for nbt.

If you are interested, bookmark the link, it should be up again shortly.
> No, you aren't going to be doing pure functional programming very often.

Some people claim that one is often able to make programs with a mostly functional core; in which case most of the code is purely functional. Do you not think that is the case?
No, the vitriol would be calling her a cunt, threatening rape, doxing her, threatening death, implying that she's hysterical, cheering her firing, etc, etc.

I say that because the nice interpretation of what you say i that you genuinely missed most of the story. But it's hard not to think you're just being an ass.
Sivers has written a full-length article about it before: http://sivers.org/srs

I think he has some good points; you can definitely program a lot faster in a language in which you have memorized much of the standard library and the API/frameworks you are using heavily. I don't really think SRS has a place when it comes to learning a new language. To me it makes more sense once you are certain you are going to specialize in a language/platform. I am still yet to try it.
> I'm not sure how they did that (#define?) but stay far, far away

...NO and YES in Objective-C are themselves #defines. As others have pointed out, TRUE/FALSE are also already defined in the language, although using them in Objective-C is not good style.

http://www.opensource.apple.com/source/objc4/objc4-371.1/run...
| And I'm sure the tears of Democrats are
| genuine :p

Personally, any politician that jumps on this is just trying to ride it into (or back into) office. Just another way to sling mud at "the other guy."
Having a list comprehension in 2 lines is really a problem? I find very readable something like

result = [something(value) + value * 2
for value in values]

I mean, I prefer one line, but if it has be in two (or more lines), I don't see the problem really
A Digg reader, done right, might just begin to put them in a lot of people's good graces.
Although money isn't everything it's pretty note worthy in this case that the sale price was apparently around £30 million[1] which means he's now worth 8 figures, self-made money that he's too young to access. Heh.

[1] http://www.standard.co.uk/news/techandgadgets/exclusive-summ...
Sorry - I misspoke. I meant "no one questions Google in this thread".
Visual Studio 2010 ain't quite zippy on a netbook. They are fantastic, but they do have notable limits.
doesn’t appear to be much at the moment, but i could see value in this as being less chaotic than r/music and more active than many of the genre-specific subreddits (though less focused).

and while that would be nice, i feel this (and pretty much every similar site) misses a very real problem around music discovery.. in that, for very active consumers, there’s no efficient way to track and monitor releases of specific interest to them. sites like this, r/music, and hypem are fine for surfacing what the majority finds cool, but they in no-way replace the need to monitor and frequently check-in with numerous source blogs and other sites to cover all that an individual is interested in (a very inefficient and time-consuming task)..

even more focused sites (and subreddits, if active), can never reach the level of personalization required to make them a reliable single-source for music discovery. don't get me wrong i frequent many and do find some great gems i'd otherwise have missed, but they're far from comprehensive..

and i don’t mean to discount anything here. it is a very difficult problem to solve given how disparate people’s tastes in music are, and even more so considering how widely distribution methods vary. i really feel anyone who can solve this problem would do quite well..
Lines of > 80 characters are really the last jabs at the dying corpses of typography and taste in the digital world. Typographically proper paragraphs are not wide across, because that forces the eye to move more while reading. This is a basic fact that has been known for literally longer than we've had printing presses.

Wide lines are barbaric, and I'd go so far as to say that languages that can't be rendered comfortably in 80 character lines are nothing more the primitive tools of barbarians.
>This breaks the music publisher's stranglehold

Spotify is owned by the music publishers.
'Monsanto Protection Act' Sneaks Through Senate
>HN in some way tries to emulate the early days of reddit, but now it's time to follow reddit's example and rewrite HN in a more common language.

Why? HN isn't a startup needing to hire a bunch of people to hack on the codebase; it's a site written by Lisp experts -- in their spare time -- with, I believe, one programmer paid to hack on it. It's open-sourced in dumps, and they don't seem too interested in working with other people on it (I sent in a small patch to add quotation support to HN, and didn't hear back), as it seems to satisfy their needs.

What's the benefit of rewriting?
Part of me wants to and most of me doesn't haha. The problem is that design patterns change pretty frequently. I mean I cringed when I saw action sheets and their table views in the video. I'm working on a "Bootstrap for iOS" right now but the project is pretty much on the back burner due to some other iOS stuff I'm working on. I've released the colors part of what I was going to include (shameless plug: https://github.com/bennyguitar/Colours-for-iOS) and I'm going to release another couple classes soon that make some UI stuff a lot easier and streamlined.
TGP isn't a good book for learning JavaScript the first time, it's true.

The time to read it is when you've been doing this for a while, and it's time to "unlearn what you have learned" before you can move on to the next level of expertise. There's a lot of dogma in the book, but that's not bad in the appropriate context: most people will find something to follow in its pages, but most people will also find something to question. Both experiences are valuable, especially for someone preparing to "take the next step," as it were.
How to convince people that their design could be improved. Say "How about if we..." instead of "You should...".

What to do when other team leaders keep asking you for help. Tell them to ask your manager so he can set the priority of the task.

How to work on multiple projects at the same time. I found it helpful to have a prioritised todo list for each project with a master todo list covering the most urgent or important tasks for all of them.
Of course I am serious! Still trying to figure out what they used as a 'base' graphite oxide slurry (pencil lead in solution it isn't)
"a single PostgreSQL box can handle reliably and efficiently enough queries than a comparable MySQL box"

Sorry, but citation needed. Most of the (relevant) stack overflow results are pointing to articles citing 4.1 and earlier MySQL versions, or pure FUD opinion pieces.

MySQL and PostgreSQL are within the same order of magnitude (depending on workload and how much time you're willing to spend optimizing queries) for a single server, so to say that PostgreSQL is better requires some backing up with actual numbers or techniques.
"I wish there was one straight-forward way to build awesome applications on the web like there is with mobile development. I want someone to hold my hand the whole time."

On the internet, you keep 100% of the revenue you bring in. On the internet, you do 100% of the work, too.
> I suppose you could accept payments into a personal bank account and incorporate later, but most tax authorities would frown heavily on that.

In my country many online retailers accept payments on personal bank accounts, but being a total novice to receive payments i have some questions : is there an amount of monthly flow of money where tax authorities start checking your transactions in your bank account? also, how is the process? does your bank notify your government that you are receiving an extra-ordinary amount of money?
If this hack worked, the person who did it deserves to be awarded the best (white hat) hacker of the year. Got me laughing for a long time.
I've recently been designing a couple of android apps and a navigation pattern more suited for bigger screens is something Android really needs imo, and while I kind of like the solution of a c-swipe menu, having tried the new android camera and browser controls I'm concerned about it being, as the author says, a bit too hidden, and maybe a bit quiky to control.

But I like the approach, experimentation is the base for innovation :D
I hope they start to shift focus back. I don't know why anyone would use the website when there is a desktop app available that responds to media controls on the keyboard. I started using Rdio and never use the website. Spotify's site is definitely better than the dekstop client but I don't see why anyone wants it on the web.
Check what @ppk says:
http://mobilism.nl/blog/2013/03/ie11-to-disguise-itself
I agree with this statement. I've never understoodwhy people here at HN express frustration with Craigslist's Web 1.0 design, but not HN.
I have a 27 inch monitor and still prefer an 80 character limit. It rarely forces me to mangle code and allows me to have four different files open side by side. It's especially useful for frontend development where I'm going to be editing html, css, and javascript almost all at once.

This "hurr durr, we aren't on terminals anymore" argument is dumb. You aren't arguing with crotchety old geezers or people with stupid hardware choices. Quit assuming the people who disagree with you are idiots.
"Ellison also owns at least two fighter jets: an SIAI-Marchetti S.211, used by the Italian Air Force, and a decommissioned MiG-29, for which the US Government has refused him permission to import"

http://en.wikipedia.org/wiki/Larry_Ellison
Not sure about other people's experiences however the app consistently produced inaccurate results for me and often had several nasty bugs. i.e. I would see HTML in bullet points because it wasn't parsing the page properly.
Amazon Greenlights Zombieland, A New Amazon Studios Show Based On The Movie
nothing of the sort is implied, but the fact that it's currently 95% boys is a reality that will not change overnight. if you're someone who's easily offended by immature jokes of any sort, then you should expect to feel uncomfortable around any group of people who tend to make immature jokes.

...and programmers/techies make a lot of immature jokes :P
or (shameless act of self-promotion, sort-of): r/musicindustry

..which is more narrowly focused around the business of music and industry-related news, for those interested
The ways in which kids are going to change the world will be mind blowing. We teach young girls how to code with www.ladieslearningcode.com and the talent that these girls have is incredible. I can't wait for that generation to be the future CEOs and CTOs of the world.
Climber is one of the first apps that shows the true potential of App.net. This takes App.net from just a paid twitter, to a central service that provides functionality to other apps. If people trust App.net to hold your videos, photos, posts, and other content, people will be stoked to try your app as opposed to the latest Instagram competitor that makes no promises about your data.
Because changing the user agent for this has worked to great effect before. /s
Has anyone located some code generated by this system? Would love to take a look through it.
So basically, what you're saying is hoverboards are possible.
Truly hypnotizing!
Gioco: The Gamification Gem
Yep there's an excellent answer by jcmontalbano further down the page which explains why it's not simply due to height alone.

https://news.ycombinator.com/item?id=5437406
So the app has nothing to do with climbing at all; not even tangentially? Seems like a waste of a good name for a real climbing app.
> Microsoft also included the command "Like Gecko" which instructs the website to send back the same version of the website as they would to Firefox

seriously, who does that? 'msie5.0 mozilla', good times. 'like gecko' => msie trying to look like webkit, who tries to look like firefox. yeah, makes perfect sense. could anyone give an example of a modern application that checks against the user agent string?
#2 "Apply Functional Programming Principles" talks about passing your input as parameters to functions performing some work based on those inputs.

Yeah, "functional". Hello, C.
In the original proposal from just over a week ago, the EU (and IMF) were quite happy to see deposit holders with under 100,000 EUR being hit.

"Cyprus President Nicos Anastasiades says he is battling against eurozone demands that all bank customers pay a one-off levy in return for a bailout.

Mr Anastasiades said he shared people's unhappiness with the terms, whereby all bank customers would pay a levy of 6.75% or 10% on their bank deposits.

The EU and IMF have demanded the levy in return for a 10bn-euro ($13bn; £8.6bn) bank bailout."[1]

[1] http://www.bbc.co.uk/news/world-europe-21824495
I'm incredibly happy that Netflix launched in Uruguay, and currently pay for 4 subscription (mine, my parents' and my uncles').

Service is great and the total of the 4 subscriptions is less than ONE crappy local cable service (which is a monopoly by collusion of the 4 local firms).

Copyright is hard, but I really hope companies go after our markets :)
Check out Rdio. It's a super simple UI, focused on the music, and more importantly IT WORKS.

The only downside is that their catalog is missing a few exclusives that Spotify was able to get.
Looks like a good start. I'll be watching this repo.
The explosion of the Internet into every nook and cranny is and was a 100% due to massive private investment at all levels. It was a rush for gold. Fortunes made and lost.

EDIT: Strange words replaced. Damn iPad auto-text!
Yay, another plan for the Digg brand without a source of revenue. If you put too much advertising people will go the next hot thing.
Port scanning all IPv4 addresses using insecure embedded devices
Or you pick a market with a lot of customers and competition and build a product knowing that there is demand...
Chrome?

> Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.31 (KHTML, like Gecko) Chrome/26.0.1410.40 Safari/537.31
Well, yes and no. I think it's true that a simple inequality argument likewise doesn't apply in the case of anti-miscegenation laws. However these laws denied individuals a natural right for no good reason and were therefore immoral and illegitimate.

How to establish the natural right though? Fairly easy in the case of mixed race marriages-- No one at the time thought marriage between the races was impossible or unthinkable, they just didn't want it to happen. That's why they wrote laws against it. And note even that the history of such laws is rather skimpy![1] The overwhelming majority of human history attests to the possibility of the free mixture of races.

[1] http://en.wikipedia.org/wiki/Anti-miscegenation_laws
SlimerJS is a scriptable browser like PhantomJS, except it runs under Gecko
Nice idea, but it seems like the only kind of apps you can build are apps that takes stuff from the web and put it inside the app.

Well done that they have been able to build it though. How do you think they are porting the html/css code to Obj-C?
I would also provide advice on where to apply for a visa. The "nearest X embassy" is not too helpful. Otherwise, great work!
I don't think exclusivity is something a musician would do, it would just lead to massive piracy and fans who can't listen to the music without signing up to yet another music service.
You should get used to it.. More and more non-CS programmers are coming with "JS is everything" and without any other tips.
For the non-clickers: It's Webkit, not Firefox that it will be disguising itself as:

"The 'like Gecko' string has been part of most WebKit-browser UA strings from time immemorial, but has never been used by Firefox, which instead uses 'Gecko'".
Xavier Niel to found a tuition free Computer Science university in paris
Wait, you're allowed to be offended. But the person you're reacting to should get over what bothers them. And somebody reacting to your offense should pursue an oxymoronic private soapbox?

You are a special, special snowflake.
As long as I don't see any posts that say "I'm 12 and I haven't done anything important, should I give up?" here on HN
Why are so many twentysomethings having children before getting married?