skysight-inc/HackerNews huggingface dataset:
I don't think you can refer to function composition as a design pattern. The syntax for function composition in Haskell is so light that most of the time it's more effort to write in all the arguments explicitly than it is to use composition. Consider

lineLengths = map (length . words) . lines

as compared to

lineLengths text = map length (map words (lines text))

I don't think that monads are a design pattern either (in this I agree with Tony Morris [1]). Monads are a unified method of doing contextual computations. They are far too general to be a design pattern in themselves (how many design patterns do you know that encompass failure, error handling, nondeterminism, probabilistic computation, logging, backtracking search, mutable state, asynchronous computation, continuations, I/O...)

Monads should be more accurately thought of as an interface that is implemented by many types (in Haskell terminology, a class that many types are instances of).

I am not saying that there aren't any design patterns in Haskell - just that function composition and monads are not examples of design patterns. Instead, common design patterns include

* Writing tail-recursive, accumulating helper functions where you'd use a for loop in an imperative language:

sum xs = go 0 xs
where
go result [] = result
go result (x:xs) = go (result + x) xs

* Using strict left folds to accumulate values

sum = foldl' (+) 0

* Using runStateT and its cousins to tame stateful computations

sum xs = execStateT (go xs) 0
where
go [] = return ()
go (x:xs) = modify (+x) >> go xs

* Using a record of functions to encapsulate related functions that might be given different implementations (like a lightweight version of classes)

data Lens a b = Lens { get :: a -> b, set :: a -> b -> a }

* Using libraries like Conduit or Pipes to structure your program as a flow of data through componentized parts.

Then there are 'large scale' design patterns, like

* Structuring your code in three parts: (i) data type declarations, (ii) pure functions operating on the data, (iii) a thin I/O wrapper to glue the pure functions together.

* Using the MonadIO, MonadState, MonadWriter etc classes to keep your code implementation agnostic.

To re-iterate: I agree with you that functional languages (like Haskell) still have design patterns. But I don't think that monads or function composition are good examples of functional design patterns.

[1] http://blog.tmorris.net/
Mobile safari should use SPDY, then this wouldn't be as much of a problem :-)
or else your library contains an infinite number of books, which is simply absurd because there would, for instance, be a book that contained all of the finite books inside it, in alphabetical order.

Careful, that doesn't follow. The library could contain all finite books, but no infinite book.
Yes, from what I have read there is still no "untethered" jailbreak for iPhone 4 iOS6. That's what's keeping me from upgrading.
Should Linux Take a Lesson From Apple?
If you need to ask which is the fastest, you generally don't need the fastest.

My two cents.
The movie looks really interesting. I cannot figure out when it is expected to be completed. Does anyone know?
I'm just a user, but the gist behind the "restrictiveness" is weeding out the chaff and avoiding the flood of quantity over quality that's overly present on App.net and other networks and content aggregators.

The entry policy will be much more open later on, once it comes out of alpha/beta/whatever state, but for now, a personal contact with the founder and CEO, Sandi, is all that's required, just so she gets a sense of you being a real person who knows what they're talking about.

Would you like an invite link so you can see if the content is (or can become) to your liking? Anyone who would like one should feel free to ping me via geekli.st, (http://geekli.st/Swader)
this is clearly only one side of the coin. The money is not normalized: What if a google engineer has to work 15h for this salary?
Indeed is a mistake, Samsung lists the Exynos 5 Dual on the 3G model[0].

[0] http://www.samsung.com/us/computer/chrome-os-devices/XE303C1...
You didn't read the whole post.

1) your js should be echoing the HTML and getting data through JSON ajax

2) echo and print both work in command line, are explicit and work exactly as any language, whereas peppering your shit with php tags looks like shit and a maintenance nightmare.

If you have trouble escaping characters, you should consider the single quote, it's known to rock the boat.

Additionally, "'.$var.'" is the best, fastest, cleanest no surprise approach to inserting variables in markup, leaving double quotes just fine and dandy inside your markup.

And then, I'm pretty sure I'd rather have a string with 100% warranty of no execution or interpretation (that's single quote versus double quote for me) than any kind of dirty markup polluting my source code.

On the same subject, there is no valid reason for having naked markup inside your PHP, or between PHP tags because you're just begging for problems.

And I would expect multiple PHP tags to cause some minimal parsing overhead too.

Either way this matters not because the only sane way to use PHP in a web application is echo json_encode($return);
or header(file) + readfile

And even then the second example is only there because javascript can't be arsed to support file creation/download (i.e. server -> blob.gz -> js -> would you like to dload this shit ?)
Why would customers choose an ISP that does such a thing?
What would be required to grab your attention? Curated content? A better discussion platform? Or just plain more signal per noise?

One approach I'd like to see implemented is some monte carlo comment display algorithm. Assign every user a base point level (based on his contributions/selectable?), show every comment/post with score above this level, but comments below with decreasing probability.

This has the advantage of allowing new/initially low-ranked stuff to get picked up faster than a hard threshold, while keeping the noise at a level acceptable for the user.

Or is this nonsense?
Install your own PhantomJS on Travis CI
Privacy Alert, governments looking at overseas credit card purchases
> Second, using your compression technique, we'd still need to have some numbering on the volumes, and to describe a book, we'd have to do so by a list of numbers describing which volumes comprise it and in what order.

Yes, for a normal library this would be the case. But this library contains every possible book.

So the index list you're asking for, describing which volumes comprise what book in what order, is the complete list of all possible orderings of volumes up to the maximum book length.

You don't really need that list, because you know exactly what it looks like.

But then, you don't really need the volumes either, because you know what they look like too (being all combinations of N bits).

So yeah, you'd just need a 0 and a 1.

I already got a copy of that library, and the cool thing is that it doubles as a light switch.
How adding a play button layer to video led to an awesome marketing technology
Gaming is a front where Flash still ahead of HTML5. HTML5 is getting there but at the moment Flash provides a more integrated solution for developers who want to build web games.
We try to attend as often as we can, it's a seriously great event and our thanks goes out to the organisers!

I did my first public talk there (we're Scirra). Although I found it quite frightening (the last time I spoke to more than a few people at once was back at school!) it was very rewarding and everyone was very supportive.

If you get a chance to attend/speak, definitely head on down! If you take away the free beer and pizza, I'd still go - it's that good!
Samsung Galaxy Mini
The Samsung Galaxy Mini 2 S6500 Orange PAYG offers easy access to your favourite apps, photos and videos. With the super-slim design and changeable back covers, this compact smartphone is packed with fun features.
Haskell's type classes generalize further than multi methods do. You get dispatch based on any part of the type signature, not just the arguments.
JavasScript is an API language that allows you to write embedded programs to interact with the environment. The environment can be low level APIs such as browser DOM, WebKit library or Node.js process, or high level abstractions such as jQuery, Backbone, d3.js, etc.

GOOD JavaScript is the code that plays nicely with its environment. There is no strict best practice for every situation. You have to learn the language of your neighborhood.
> a text written in a language that uses an uncountable alphabet, wherein a single letter potentially contains an infinite amount of information...

Isn't that called "drawing" instead of "writing", though?

So, comic books? :)
You're right.

IIRC, the last non-Java security update I installed updated a bunch of image format libraries to fix exploitable vulnerabilities. We can't even safely decode static image files! I'm not sure how we expect to safely sandbox executable code, whether it's Flash, Java, Javascript, or anything else.

Even so, if Java's currently being exploited on a wide scale and Oracle's not having the greatest luck fixing the problems letting malware in, it seems prudent to direct people away from it unless they really, really need it.

Any well may be poisoned, but if you know this one is you'd avoid it and warn others, wouldn't you?
What I don't understand is how a room packed with 600+ people all noisily engaging in social interaction was any more manageable last night.

I found it almost overwhelmingly intense. I did stay to the end though.
Should I use QuickDialog?
I find this extremely hard to believe. Aside from the obvious fact that glassdoor's data set can hardly be judged to be a fairly conducted survey, I simply don't buy that the average software engineer salary in, say, trading firms, is less than $128k.
I have yet to find a use for constructors in a real world problem. I've been able to do anything I ever wanted to with object literals. I'm not sure why there is so much emphasis placed on object prototypes.
Is this really number 2 ranking on HN right now. Time to get the hell outta here ...
GIBBS Unveils World's First High-Speed Sports Amphibian In Detroit
Yes, he probably went to an international school in Macau, any kid in this case would be fluent in English.
What Happens in Brooklyn Moves to Vegas
Cue one of my favorite Dilberts: http://dilbert.com/strips/comic/2003-02-22/
Great Scott! It's just crazy enough it might just work!

I've always felt that America's psyche is evolving us to a "Everybody's a CEO." mentality. With the introduction of 401K we upped the risk taking, driving white collar workers into consulting away from full time employment with benefits of incorporating, tax benefits of corporations, preferential tax treatment of capital gains vs salaries. These are all incentives to create your own corporation over being a salaried employee, but they all involve taking more risk. We are rewarding risk more and more while devaluing safety. Not passing judgement per se, but making an observation that America might be interested in this if they understood it. And that America might need this anyway because we are pushing more people into accepting the risk without their choice. (see 401K as an example).

Another side benefit to this is it might drive up competition for workers because more people might be interested in working for smaller companies because benefits are more equalized. Driving competition for workers means higher salaries too on a whole as they compete for the talent. That's the real societal benefit.

Now, if I could just figure out a way to pay myself entirely in dividends over a salary I think they might give me an honorary 1%'er membership. :-)

But on the other hand. All I know is that it won't be that much fun when everyone is doing it. It never is.
Finally, if you’re looking to maximize your paycheck, consider moving to the San Francisco Bay Area, where the average salary is $107,798, the highest in the nation. You might also want to avoid Minneapolis, where the average is just $75,032, the lowest in the nation.

Adjusted for cost of living, $107,798 in San Francisco is equivalent to $71,100 in Minneapolis:

http://www.wolframalpha.com/input/?i=%24107%2C797+in+san+fra...
If what you want is a "traditional desktop" UI and you're running Debian, ISTM you'd have plenty of options. You can install a complete environment (GNOME 2, XFCE) or one of the many tiling wm's (awesome, dwm, xmonad, &c).
My personal ethics regarding piracy are simple. I'll happily pay for anything available through legal channels, for a fair price, without inane restrictions, in a format that suits my purposes. Anything else, I will pirate, since I wouldn't ever pay money for it anyway.

An unreleased version of Mac OS X clearly falls in the first category. OS X has always been distributed without crazy DRM schemes, for a fair price, and without any hidden gotcha's that cripple it's utility. I would never pirate it.

For music, I've switched from downloading everything to paying for Spotify. I have no need for cabinets full of shiny silver discs, and I don't feel like paying for crappy songs I don't like just because they happen to be on the same album as the one or two songs I was looking for. Spotify fits the bill for me, so I don't have to pirate anymore.

For movies, it's a whole different story. I don't have a Blu-Ray player (I have a PS3 but it sucks for watching video because of the noise), so buying discs to see high-def movies is out. Nine times out of ten, the movies I like are not your typical Hollywood blockbuster crap, so I can't even get them on Blu-Ray anyway. I built my own HTPC running XBMC because it's a million times better than any device I can buy in a store, which means I prefer to have my movies in a common, unprotected video format. No legal alternative exists that provides those, so I download each and every movie I want to see.

The day a commercial service is available that has not just Hollywood blockbusters but also foreign/ arthouse/ classic or niche movies, and allows me to play them on my own device, for less than $10 a movie (or e.g. $30 a month for all you can eat), I'll sign up immediately.

Some might say I have no entitlement to make any demands as to the way the content I want to consume is distributed or how much I have to pay for it. This is actually a fair point, but the producers have no entitlement to get my money either. Because I try to be fair to producers and artists by legally buying content when it is available under such terms I can justify paying for it, I don't feel bad about pirating everything else at all. It's not even illegal where I'm from anyway (at least not for music and video, software I stopped pirating long ago).
I've got you labelled
This limitation doesn't exist. Safari happily opens up to 4 connections per server.

There is however a bug with long-polling connections: If you fire off the XHR for the long-polling endpoint (or Server Site Events endpoint for that matter) before window.onload has fired, then Safari will not fire onload (nor load any other external resource) until the long-polling connection closes or returns something.

What you are seeing is people not updating their scripts yet to take this bug into account.
And I don't. But that isn't the main thing.
I have had a brief look at typescript, it does look interesting!

However I think I would rather get a strong handle on vanilla JavaScript before I start looking at things like Coffeescript/Typescript.
Terminus 0.4: Capybara for real browsers
Why do you think they would have a choice? Compared to the situation in Europe, Americans don't really have much choice right now.
Pepper is a new Plugin API for browsers proposed by Chrome: https://code.google.com/p/ppapi/

Plugin API is the magic responsible for Java or Flash in your browser. A plugin once installed on your PC may run in a number of browsers, as all use the same API - currently it is NPAPI.

NPAPI (Netscape Plugin API) is very old and Chrome with Pepper wants replace it.

Mozilla doesn't like Pepper, so at least for now Pepper is a Chrome-specific thing: https://wiki.mozilla.org/NPAPI:Pepper
http://yro.slashdot.org/story/01/03/17/1639250/illegal-prime...

This is from WAAAY back in the day.

"A person named Phil Carmody has found a very interesting prime number. When converted to hexadecimal, the result is a gzip that contains a DeCSS implementation. I've posted a short bit of Java here that takes the prime as a command line parameter and dumps the result to standard out if you want to test it."

...I actually ran it once upon a time, although I didn't check if the links were current.

While slightly different context (prime #'s vs. PI) the concept is the same. If you dig deep enough into prime numbers and it contains the "illegal" topic du-jour expressed as a zip file... well, I won't put it past PI containing almost everything else as well.
You never had a right to establish any shelter. You have a right to appropriate what's unowned or receive something in voluntary exchange.

Now if you stand on a justly owned property (like my house), then you play by the rules of the owner or go away.

If you stand on unjustly owned property (like a forest protected by the state), then you may use part of it as your own provided you do not alter objective properties of this forest that were enjoyed by everybody prior to you. E.g. if you noticeably alter the air quality by cutting it down, prior users of the air may ask you for compensation.

Also, it's a losing strategy to talk about somebody's obligations. If somebody has robbed you, he must 1) compensate what's stolen 2) be punished. He is not obliged to provide you with social security, free speech and fast internet.
Eloquent Javascript is just awesome... learned a lot from it.
Approaches to fast Python and Haskell: slides from Reaktor Dev Day
Dealers try to get states to declare Tesla stores illegal
Thanks for the recommendation!
It will definitely be useful to dig through a great JS codebase alongside all the excellent reading suggested here!
Also, what about variance?
I thought I saw a Kickstarter page for this a month or two ago but I can't find it now.

I assume that it making the front page means they met their funding goal? When I first saw the Kickstarter page they didn't seem very close, but good for them! I'm excited to see the film.
Do you know why Mozilla does not seem interested in Pepper?
Fixing the 949 problem with Fipes
btw how much karma is required to submit a startup for review?
IPhone hacker 'Comex' let go from work with Apple
That's neat, but an odd thing to incidentally mention.
> What you are seeing is people not updating their scripts yet to take this bug into account.

Why? Shouldn't the expectation be that the bug gets fixed?
Just as a data point on this whole Maps thing, Apple Maps in iOS 6 has already saved me on numerous occassions in the US and Europe. In Europe, I had a dedicated Garmin Nuvi, but it was Maps that got me to the the tiny village in Alsace. In the US I had a dedicated TomTom, but it was Maps that was able to correctly locate sites of interest for Civil War fans (Eastern Theater). Both dedicated GPSes had had their maps updated in the last month or so.

Make of that what you will, but my personal experience has been that Maps is actually pretty reasonable. In major cities it maybe isn't quite as detailed as Google maps, but then, you can always use Google Maps as a web app for that...
The feds didn't go after MegaUpload because it allowed people to share files that may or may not be copyrighted

It's very presumptuous to assume you know the reason why the Feds raided MU.

If the Feds had a case they should have presented it. Not all this "we have evidence, but we won't show it to anyone" crap.

With the fact that they had been spying on MU for over 5 years, you would think they could have built a solid case, and the fact that they couldn't makes one think the raid was rushed.

Perhaps this had more to do with the Universal lawsuit, the pending release of MegaBox, and pressure from lobbyists than actual wrongdoing.

Of course this is all conjecture, as is your assumption.
Easy and beautiful Rails logs
Bowser – The World’s First WebRTC-Enabled Mobile Browser
Ubuntu Tweak Stops Development, Claims No Longer Free
Big Data Hype (and Reality)
It represents a fractal.
£20k cash incentive for UK computer science teachers
Is Base Salary the "starting salary" for a new hire, or is that the "base salary" across all employees across the company?

edit: I ask because my starting salary at MS is surprising close to the number they have listed as "base salary". I can't tell if base pay growth is small there or if this information is simply inaccurate.
I agree with you in spirit, but I think your argument for why design patterns aren't present in functional languages can also be used to argue that there are no design patterns in object oriented languages, just by replacing the word "function" with the word "object". Witness:

Thinking that objects are special is contrary to the spirit of object-oriented programming. Objects and numbers are the same class of citizens, and a method taking an object should not be treated differently from one that takes a number.

Would you also argue that there are no (or very few) design patterns in object oriented languages?
Statistical analysis of Kickstarter projects
https://github.com/eligrey/FileSaver.js

FileSaver.js implements the W3C saveAs() FileSaver interface in browsers that do not natively support it.

No IE support, but what’s the intersection of Mega users and IE users?
Good clarification, pdubs. It seems a university like St. John's might not be exempt, but its School of Theology might be.

If true, it's still strange to me that school with a non-free graduate degree in liturgical studies would be exempt, but an online school offering free courses in science, business, history, etc. would not be exempt.
Use KDE (Kubuntu), it has better multimonitor support.

http://brainacle.com/multiseating-with-kde-and-xbmc-like-a-b...
The "lift . lift . lift" expression in multiply stacked monad transformers can often be completely eliminated by using the classes MonadReader, MonadState, MonadIO etc etc, with

putStrLn :: MonadIO m => String -> m ()
ask :: MonadReader r m => m r
modify :: MonadState s m => (s -> s) -> m ()

Now you can define

instance (MonadTrans t, MonadState s m) => MonadState s (t m) where ...

so that any monad transformer applied to a state monad is automatically another state monad. Win!
I figured I'll wait until the competition is over.

When I see the announcement of the winner, it may be better than my implementation and I will congratulate them.

If not, then I'll post mine and see.
It take a huge amount of power to cover the whole spectrum at jamming levels. That's the beauty of the technique.
For OOP JavaScript, I suggest you check out this link: http://killdream.github.com/blog/2011/10/understanding-javas...
All I could find. https://mail.mozilla.org/pipermail/plugin-futures/2010-April...
I'm not sure about most people. Two points of anecdata: I fell and broke my back almost a year ago. If I had been self employed I would be liable for tens of thousands of dollars. Second: I have a friend who was forced out of the consulting game because of a serious medical issue that private insurance would have cost too much to cover.

I can't generalize from two data points but I can say that for me and my friend, lack of a safety net has absolutely been the show stopper.
Some good tips and resources there, I should check them out more in detail too. Thanks!
This Is Why They Call It a Weakly-Ordered CPU