skysight-inc/HackerNews huggingface dataset:
Hmmmm, well I wasn't asking about invariants in the way that this term is typically used. I was asking about adapability to future changes. The lure of encapsulation has been that it places a firewall (i.e., the "interface" or "signature") between your representation for some information and the client code that needs access to this information so that you are free to change the representation without changing the client code. It is true that having an unvarying interface is a form of invariant. The problem is that adapting to future needs may involve varying this invariant.

Rich Hickey claims that 90% of the time, encapsulation has the opposite of its desired effect, however, due, in part, to breaking the client's ability to use generic functions on the encapsulated data.

I know that I have personally seen quite a bit of OO code that did not live up to the promise of adapability, and so I would like to know more precisely what the alternate approach that Rich Hickey (and I presume other FP advocates) proposes is, and how it would address the issue of adaptability with examples that bear on real-world situations.

Many responses here have been, You can do encapsulation in FP languages. Sure you can, but that's not the alternate approach! That's the OO appraoch! I know that you can take an OO appraoch in functional programming languages, just as you can take a functional approach in OO programming languages, but Hickey and the OP specifically say that encapulation is extremely over-used, and to think twice and then think twice again before doing it.

The talks I have seen by Rich Hickey are inspiring, but they demand a follow-up talk (or maybe book) that provides the gory details, rather than just more potentially dubious promises.
How I blew a chance to connect with MC Hammer
No, the setting really doesn't matter. You walk out of the class in a discrete manner. Courtesy and respect for others is universal. You certainly don't follow up your poor behavior by complaining that you got a look from an instructor.
What if there's something malicious stuffed into the description or something?

You never know.
If you're sick of it, can we assume that you found one that works for you? If so, spill the beans.

I agree with the pre-disruption comment. A great text editor makes most of our jobs a lot easier.
I've met friends travelling but the problem is I ended up making friends in cities outside of the one I moved to.
Computer science: the science behind making computers work.

Hacking: getting shit to work in a fast manner/making something faster.

These are two orthogonal philosophies that give you very different perspectives, and they are both labeled as "programming."

So, how about this: the next time you want to deride someone's opinion because they are misusing a term, why don't you clue the rest of the class into what your definition of the term is?
Totally disagree on the config point. In fact I think the system should be made more simple, so you can keep your editor settings in a dotfile repo. It's not so simple to do this when the settings files themselves are buried in a packages folder, and you have to take care not to accidentally commit your license along with it all.

Hell, even just having the option to parse settings and load plugins from a local dotfile, like vim or emacs, would be nice. The rationale for wanting this is that the config is just text, and is something you'll progressively hone over time (esp. with keybindings).

Split windows would be much better if you could mix and match the size, or have a non-standard layout.

One of ST's real benefits could be its position as a beginner's introduction to vim and/or emacs. It's already immediately more accessible.
OKAY so I just started derprogramming and i really don't have anything to show for it, but I do know using VIMACS is hip so lets spend 20seconds googling it and write a blog post about it to make me seem hip and pro. PLEASE READ AND COMMENT HERE: blog.vimacsisbest.com/omgimsoproatvimacs
Cheap, no holds barred, technical education is an invaluable resource! Without splitting hairs, an engineering degree has the lowest unemployment[1], and GT has the highest ROI[2].

[1 http://www.studentsreview.com/unemployment_by_major.php3?sor...]

[2 http://www.businessweek.com/interactive_reports/bs_collegeRO...]
I knew a guy who made a boatload of money off of the dotcom bubble. He kept doubling down and doubling down, then at right about the peak he told himself "I have as much money as I'll ever need if I cash out now. There's no reason to take any more risks." In other words, he timed it perfectly (based on his own situation - he wasn't genius and he would freely admit that)

So here he was, a multimillionaire who'd spent the last five years or so working and playing the market to the exclusion of everything else. He was one of those people who had unconsciously believed if he just had enough money he could find a way to be happy. When he finally had the money he realized relationships with other people are what make you happy. But at that point he didn't have any friends and didn't know how to make them.

He was, without a doubt, the most miserable guy I've ever met. He was always willing to buy a round or lend people money. He'd go to Vegas and pay for five or six people to go with him. So there were always people around. There were always women willing to sleep with him. But they were there for the money and he couldn't delude himself into thinking otherwise. The money actually added to the problem, because it meant even when he wasn't paying, people had a motive to hang around. So he became cynical and a bit paranoid.

Eventually he got into drugs and ended up eating a whole bottle of pills. I've always wondered if any of those hangers-on went to the funeral.
> she gave the student a look of disapproval. The student later complained

a real tough guy.
This; I hope the OP reads this comment and understands it because there's a load of truth in those first two sentences.

If you legitimately could have gone to a better school than UGA and chose not to; you've given up your right to bitch about it. The opportunity to get that so-called leg up that you're so upset about others having and you passed on that opportunity.

FWIW, one of the great hallmarks of the real "rockstar" people is that they know how to capitalize on opportunities presented to them.

And to ynniv: you forgot "University[sic] of Georgia."
Sorry, but Microsoft backpedaled after the bad press. You can download Windows 8 development tools for free now. [1]

Your info about "no command line apps" is also outdated. It USED to be true, but I have VS2010 Express, and it came with the command line tools:

c:\Devel\Msdev.2010\Common7\Tools>vsvars32
vsvars32
Setting environment for using Microsoft Visual Studio 2010 x86 tools.

c:\Devel\Msdev.2010\Common7\Tools>cl
cl
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.40219.01 for 80x86
Copyright (C) Microsoft Corporation. All rights reserved.

usage: cl [ option... ] filename... [ /link linkoption... ]

c:\Devel\Msdev.2010\Common7\Tools>

I also use XCode, and it's ... not nearly as good as Visual Studio, though I am liking the new Eclipse-like "compile your code as you're typing it" real time error markup. A friend tells me that XCode can be configured to be sane, but I haven't given it a try yet.

[1] http://msdn.microsoft.com/en-us/windows/apps/br229516
At $199 you can get Nexus 7 - quad core CPU, 1GB RAM, 8GB flash storage, HD touch screen, Wifi, GPS, microphone, accelerometer, NFC, magnetometer, gyroscope, USB, 9-hour battery.
Not trolled, probably karma 18 because I've posted only a few times in the years since creating an account. I'm really not intrested in karma/scoring games on sites like HN.

Moose looks really nice and I've nothing against Perl - my language of choice is Scala. I just thought it was a daft thing for Larry to say considering the issues of readability that have been levelled at Perl.
The average price of one of these devices is $145, calculated roughly. The cheapest devices also need peripherals that further increase the cost.

For roughly the same cost you can get a used laptop off ebay which can beat all of them in terms of system resources and most of them in terms of portability. It will however be a bit more expensive to run in terms of electricity.

Just putting my 2c in, after doing some research on the topic in hope of setting up a low-cost, low-maintenance server.
Extending Google Analytics Into Your iOS/Android App
are you sure? that makes it possible to use rainbow tables (rainbow tables per domain obviously, but still pretty bad). or am i missing something?
New feature? Google Image Search... Image Search?
something hinted at but not made explicit is the relentless filling of your calendar as you get older. it's simply harder than ever to get together with people on short notice, which is one of the major ways of nurturing nascent friendships.
switched to sublime from np++ 3 months's ago, happy bunny! but i miss the np++ file explorer that allowed me to perform cut/paste/rename file & folder actions and even access the top level OS explorer menu within the editor so i had ,svn,archive,properties and send to

[edit] typo
I don't personally think we should impose quality ceilings, but I wouldn't frame the discussion in terms of that being the bottom of a slippery slope, because gentrification is a serious issue in many major metro areas --- particularly SF!

The rest, I think we're getting ourselves mixed up. I understand your question: absent externalities, which perhaps could be addressed more effectively with targeted regulations rather than market-restricting housing codes, what's the purpose of having housing codes?

I tried to make two points in my response: first, the reason we have housing codes to begin with --- the observation that the externalities you alluded to in fact were a major social problem around the turn of the last century --- and second, that the reason absent "cholera outbreaks" to impose a minimum standard on urban housing is that a minimum standard for urban housing is an intrinsic good thing that will improve welfare more than greater choice in housing will.

Regarding forbidding children in dorm-sized apartments: sure. Of course, we're countering what you see as an overly broad and market-harming set of laws with a far more intrusive set of laws. Also, if we relax minimum standard housing and that sets off a race to the bottom, we can be in an unattractive position later on of having to recognize that while we don't want kids raised in dorm apartments, the market is such that we no longer have the option to forbid it.

As you know, we're very unlikely to come to agreement here, you and I having polar opposite worldviews on subjects like this, but I do appreciate the challenge. :)
This is sometimes called the Peach and Coconut model (1). As a Brit living in Cali, I subscribe to the idea. Have a nice day!

1. http://martinsbusinessenglish.blogspot.com/2012/02/small-tal...
I think they forgot something. Like a video output.
don't laugh, yoga gossip is serious business. comming up next: the hot dog in googleplex wasn't warm enough. stay tuned for more irrelevant crap in the next episode of
'unknown people working at famous places'.
>You chose UGA (a quiet state school) over GT (a world class research university) because GT was too abrasive and you know a friendly prof at UGA?

That, they have a fast track Bachelor's\Master's combined degree, and I was originally a Poli Sci double major when I got here.

But I appreciate your condescension, thanks.
Oh hey, it seems that you can also read it online: http://www.springerlink.com/content/978-3-540-89184-0.

I'm not sure if there are any restrictions on this, and the format is annoying, but it might be worth looking into.
'yummyfajitas made the same point upthread; my response to both of you is, if a market race to the bottom isn't a real concern, why did we need a tenement rights movement from 1880 on through the New Deal just to get people windows and plumbing?

Perhaps the market quality floor for housing is in part a product of the minimum standard housing allowed by the state. Perhaps there's low marginal cost of adding an AC if you're required by law to keep apartments at some minimum level of quality; you might as well spend a small amount of money to compete on quality, because you can't compete on price.
I know someone who did, said it never felt as smooth for Rails dev, but he'd spent years in it grinding code out so it's hard to retrain that muscle memory. I didn't like TM much to start with some ST2 was an easier switch.
> rather than maliciously intending to deceive us all.

No one think they were trying to deceive, but it's possible they were trying to provoke commenters or appear worldly. Still, most likely explanation is just a mistake.
Buying script could have been a mistake, but thinking that they could have written daily deals web site from scratch in 3 months is a mistake too.
meh

>With almost any other tax mistake?

Should be

With almost any other business mistake?

I mean, if I sign a 5 year lease on the small house I'm spending every year on datacenter space, then the company crashes? eh, bankruptcy.
Yes, because it was clearly not a bug.
I think this is why people who pay attention this sort of stuff want sit/stand desks, like Geek Desks, or something like the OP, who I think wants to be able to stand sometimes and sit sometimes.
Notification is always good, can't really complain if it's on the weekend or public or not. :]
iduuck you should be ashamed for your casual bigotry, and additionally your pushing your casual bigotry out to the HN Community.

> “Hey! You can do this better than this faggot!”

I am sorry if beavis and butthead are still your role models for acting like a decent human being to everyone. There is no acceptable "fag means bad" meaning anymore. It's all bigotry
Well done. The only thing I wish is that the exit moved around.
What is the best medium for introducing an idea into the world?
They may do that ('though requesting a single article works fine), but it's not very smart. Throttling heavy users - possibly returning 429 with a link to the download pages - would make much more sense. It's not like wget users can't change their UA.
:Vex
I'm so glad there's finally a good option for Android users!
I think the main advantage is what I pointed out before--being able write functions that work on a wide variety of data types. I think my count example is something that could not be done with GADTS:

count constructor (constructor) = 1
count constructor (constructor x̂) = 1 + count x̂
count _ (x̂ ŷ) = count ŷ

Keep in mind that this is pseudocode, so some of the semantics may not be perfect. The basic idea is this: the first argument count takes is a pattern, like a constructor. The second argument is matched against the dynamic pattern (constructor x̂). This pattern has one matchable variable x̂ and one free variable constructor. This free variable is bound in the previous argument to the function.

So this lets you use the count function to count any sort of sub-pattern in its argument. Let's imagine you have some hierarchy like (Book (Cons (Chapter stuff) (Cons (Chapter stuff) nil))). You could use the count function to count the number of chapters like this:

count Chapter book

Basically, you're parametrizing your count function on the pattern you want to count. So count can work on any data type and any pattern. If you wanted to count sections, you could:

count Section book

Now lets pretend that sections have numbers. Instead of (Section content) we have (Section number content). You can now count something like how many sections have the number 5:

count (Section 5) book

I think you could generalize this even further, but it would be more complicated.

I'm not sure how this is typically implemented, largely because it typically isn't :P. I think there's essentially one implementation in a language called bondi[1] but I don't know how it is implemented.

[1]: http://bondi.it.uts.edu.au/

As for decidability, I'm not sure. The entire pattern calculus--that is, an extension of lambda calculus supporting this sort of pattern matching--is Turing-complete. I don't know if just the pattern matching part is undecidable though.

As I said in my original post, there is a nice book on this called Pattern Calculus. I think you can read it online[2], which is nice because it turns out to be fairly expensive on Amazon.

[2]: http://www.springerlink.com/content/978-3-540-89184-0
Facebook is big into mobile engagement, so I suppose it's not in their interest to have social norms that involve disconnecting during daily life. But this sounds like merely a conflict between "yoga is exercise" and "yoga is new age religion" people.
This reminds me of a time, last year, when I needed to fill out some paperwork that asked me to list four friends and I couldn't list one (I ended up listing my wife's friends instead).

Sadly, these days, I don't often meet anyone with similar interests. The people who I do meet and find interesting are often female, which leaves me confused about how friendly to get without causing people and my wife to think I am cheating.

This definitely used to be easier.
This rings very true. In fact, I turned 29 eleven months ago and I moved here (to another country, albeit culturally similar) eight months ago.

I have zero friends.

My coworkers are vastly different from me. I work with two people the most; one is a younger guy who goes clubbing and is interested in getting laid, and the other is a 40-something woman who is most likely menopausal and hates everything in her life.

I'm married to boot.

All my friends and wife are back home. My immediate family is here but we couldn't be any more different. My situation is complicated, but for all intents and purposes, you can say I was adopted.

I moved here for a better job, yet it happens to be a city I hate; a city in which driving and huge cars is a fact of life, yet I absolutely despise cars. I am used to taking public transport, cycling, walking, and even running. I run 5 times a week. The air is so bad here I had chest pain yesterday after running. I still do it.

I observe the people in this dreadful city and feel they are either extremely superficial, cliquey, and stereotypical or go-getters who do nearly anything to go up the corporate ladder in a dog-eat-dog 'world'.

Where is the substance?

If you've not guessed already, I'm trying to get out of here, but it would be nice to have meaningful conversations or form some type of meaningful relationships along the way.

Most Americans (and maybe Canadians) will guess what city I'm in, and as others have mentioned, the American west coast just works differently, especially the southwest. It's definitely not me.

(Sorry if this sounds like a soapbox, corny or like I'm wearing my 'heart on my sleeve' - I know it's not a social norm. It wasn't my intention and I hope someone can extract something useful out of it.)
I'm not sure the article is intended to be targeted towards people who want an excuse to blame for their lack of success. I guess it is aimed at employers to try and make them consider context and circumstances when viewing somebody's job application.

The problem with saying "Life is unfair. Deal with it." is that this argument could be used to justify many things that we regard as outright wrong. Born into slavery? Can't get a job because of your skin colour? Wrongly accused of a crime? "Life is unfair. Deal with it."

At some stage somebody has to say "life is unfair, how can I make it a little fairer?" or the problem will simply become self fulfilling.
See also Hub https://github.com/defunkt/hub
There is evidence in the opposite direction:

http://ergo.human.cornell.edu/CUESitStand.html

Being stationary in either a sitting or standing position is bad. There are ways in which sitting is uniquely bad, but there are also ways in which standing is uniquely bad. Both are bad. The answer is: you need to walk around or in some other way incur gross motor exercise regularly, on the order of twice an hour or so.

This has been one of 'tzs beats on HN for the past year; he's written some pretty detailed comments, try searching at the bottom of this page for [standing by:tzs].
The Right Honourable Mr. Burke
Where's summer camp for adults?
Couldn't disagree more. This is precisely analogous to mathematics - you can focus on "real world examples" in the exercises, but the basic course material needs to deal with the pure underlying principles.
Because it can.
> I know you're new here

> If you want to find out if someone is a newcomer, you can click on their profile and see pretty easily.

> the community here is based on people being helpful rather than trying to be superior

Siodine's account is older than yours. You're rageing on him for trying to help you out by suggesting you find plugins before dismissing ST2. You're making an ass of yourself man. Stop acting like an elitist prick.
These numbers are too conservative. The median salary numbers are biased downward by professors in nontechnical fields. Many professors at Harvard, especially in medicine and law, make more than $300K, but most are probably $100-200K. You can get salary numbers for the UC system here.[1]

On the other hand, you are right that the chances of getting through are very slim, maybe 1 in 20 of those dedicated to try. Professional athletics is a safer career move. :)

[1] http://ucpay.globl.org/
SPDY is likely not our savior (from the Varnish author):

http://developers.slashdot.org/story/12/07/13/1327235/varnis...

Overall, I find the design approach taken in SPDY deeply flawed. For instance identifying the standardized HTTP headers, by a 4-byte length and textual name, and then applying a deflate compressor to save bandwidth is totally at odds with the job of HTTP routers which need to quickly extract the Host: header in order to route the traffic, preferably without committing extensive resources to each request. ... It is still unclear for me if or how SPDY can be used on TCP port 80 or if it will need a WKS allocation of its own, which would open a ton of issues with firewalling, filtering and proxying during deployment. (This is one of the things which makes it hard to avoid the feeling that SPDY really wants to do away with all the "middle-men") With my security-analyst hat on, I see a lot of DoS potential in the SPDY protocol, many ways in which the client can make the server expend resources, and foresee a lot of complexity in implementing the server side to mitigate and deflect malicious traffic.

His full writeup is quite good, I'm not sure that if it was submitted to HN:

https://www.varnish-cache.org/docs/trunk/phk/http20.html