jkeisling/hacker-news-corpus-2007-2022 huggingface dataset:
The use of ternary operators is a standard idiom, at least in C, and reduces the visual noise of if..then..else used to implement code like your example.

Enforcing coding standards to ban the use of standard idiom is exactly the sort of reason that I refuse to work for bone-headed cubicle farm-type companies.
Default City's in Russia :p
Probably because Yahoo is not optimized :P
Citrix client regularly beachballs and hangs for me. Obviously it’s buggy software, but isn’t buggy software often the cause for seeing the beach ball in general?
If you're married to someone ridiculous and childish, that's on you. The immature part is getting involved in a dedicated relationship to that person in the first place. Everything else after that is lagniappe. Unity doesn't matter when it comes from a place of tyranny.
I don't disagree that society needs librarians.

I am saying that librarian studies is, economically speaking, a luxury good when a librarians pay doesn't cover the interest on the loans it took to get the job- mind you that in the US, most librarian jobs require a master's degree, so you could easily be paying for 7 years of higher education to get it, and that's assuming that there are even any jobs available that require the degree in the first place.
1000% agree. I was out having fun one night with some friends in my younger years. We left a bar together and split up. As I and one of the guys I was with entered a parking structured, my other friends drove up to us in a convertible car. They were laughing at me because my fly was down so I pulled it up in a funny gesture as I approached them.

At that point, two cops pulled in behind me and thought I was passing drugs. They looked around on the ground and patted me down and when they found nothing, they trump up some charges and said I indecently exposed myself. When the case went to court, the cops were caught lying. They tried to tell the judge I flashed some girls in a convertible but video showed they lied through their teeth.

So I have my own personal story but don't listen to me, hear what this professor and an ex-cop have to say about talking to the police.

https://www.youtube.com/watch?v=6wXkI4t7nuc
Brilliant! It's exactly this kind of customisability that motivates me to use linux.
Why would they get a lawsuit? AFAIK, adult websites are already required by law to put a warning. You don't get any such warning when downloading firefox or chrome last time I checked.
I wouldn't say it's a Holy Grail or Magic Wand, or whatever you want to call it. I would say: learning a (pure) functional language, or taking a university course on it, is a religious experience. One that every programmer should go through to learn a new way of looking at problems.
Or let me play Dwarf Fortress in the cloud so that I will actually be able to play the new version at a reasonable speed.
Geography & population density play some role. The landmass of the US is 70x larger than the UK, which is about the size of Alabama, but the US has only 5x more population. I don't think that totally explains the 5x price difference but it's worth considering.
I believe that the success of OOP is more a matter of usability (for the programmer) than a connection with real world models. Simpler syntax and state conservation are in fact more intuitive to use than previous ways. Only if one tries to identify at all costs programming objects with real world objects, it reveals as a leaky abstraction.
I wouldn't say that it's the holy grail, but there are several reasons why it's good to know, and also many why we'll probably start seeing a lot more of it.

The biggest reason that its' a good thing to learn a functional language is a lot like the reason that it's a good idea to learn more languages than just Java. In this case, all you have is one paradigm to think in (object-oriented (probably procedural as well, but...)). Functional programming is a completely different beast that requires different ways of thinking. Lots of the neater concepts of many popular languages now are lifted right out of functional ones. Python's list comprehensions and generators come to mind.

A more pragmatic reason to learn about functional programming is that it is becoming increasingly useful. Functional languages are, in general, much easier to parallelize. More importantly than that though, they make it easier to make _correct_ parallel and multi-threaded programs.

As for why these are often presented as the 'holy grail' of programming, many of features exist to make it simple to create concise, correct programs. The features are all the foreign-sounding buzzwords that people tend to rave about: composition, laziness, currying, lambda-functions, monads, strong type systems, type inference, higher-order functions, loop abstractions, and any number of other nifty things.

If you're interested in learning more, check out the Haskell or Ocaml languages (or Lisp, but Lisp isn't entirely functional).
The Media Lab does all kinds of neat research. The point of Greenspun’s argument is that the purely promotional website structure designed by generic managers, even ones who manage a lab that does neat stuff, is much less useful to its intended audience (potential grad students) than a website designed for some concrete purpose like explaining the first-person history of computer science.

You shouldn’t misrepresent his words to be an all-purpose indictment of the Media Lab.
Referential transparency makes things so much simpler, there is so much less stuff to keep track of, when your program is much less prone to random state in one part of your code affecting another.

Its not the "holly grail of programming", its more like "the less broken type of programming".
An idea I've been sitting on for awhile is social networking intended for the fabricated and fractured identities of online gamers, with or without divulging the player's true identity.

A social network of this kind would be a natural place to for organized playing groups (clans, guilds, etc.) to form, organize, recruit, schedule and so on. Individuals and groups alike could display their "home" or favorite servers/shards/whatever, affiliations, and so on.

There'd have to be some thought put into the mechanics of managing profiles, as a single player may wish to have several character profiles on the system without publicly linking them (FPS vs. MMO handles), and some games may not have proxy character identities but refer directly to the player instead (Plants vs. Zombies and other casual games).

I think there have been some moves in this general direction by gaming sites that have some kind of community aspect, but nothing that really came close to this more specific concept of users managing a collection of their virtual identities which each may have their own separate network of associated teammates or friends.
My proposal: muse and scribe. It's evocative and if you know the old terminology the initials are the same.
All the major browsers have automatic updates these days. And if the coordination doesn't include a browser whitelist, it has no teeth.
> Not to mention there's very little incentive to amend these policies outside of generating general goodwill.

There is now an incentive for other companies to follow suit since savvy employees will value offers from Pinterest and other companies with this policy much more highly.

It's rare that a company like Pinterest breaks ranks on things like this. I hope they get a lot of goodwill from employees and applicants as a result.
It's better for founders too if the employees don't get screwed because a portion of the talent is silently passing over equity opportunities for fear of the complexity, and a founder can't even see or measure the talent that silently passes
You have to pay close attention what system of logic the proofs are written in. So, for example, it is an open problem, how and whether proofs written in homotopy type theory can be interpreted computationally (source: http://en.wikipedia.org/wiki/Homotopy_type_theory#Computer_p...).
They are in other countries. I just did my kit in the UK.

https://www.23andme.com/en-gb/
Check the certificate store for the browser you are using. Mozilla Firefox has its own. Internet Explorer and Chrome on Windows rely on the Windows certificate store.

http://windows.microsoft.com/en-us/windows-vista/view-or-man...

Details on what certificates come with your installation of Mozilla Firefox: https://www.mozilla.org/en-US/about/governance/policies/secu...

Your organization may add their own certificates as described below: https://www.utexas.edu/its/help/user-certs/817
So, hardware description languages, which are essentially flow-based programming languages, solve this using clocks and sensitivity lists. An FBPL for web programming would probably use events instead of edge/level triggers and timers instead of clocks.
>The "light infantry fighting in the woods" militia is dumb, though.

Tell me about it.
Kudos to Elon. What's with some of the hate for Tesla in the red states? Tesla is 100% American owned/operated.
I think either is fine, the real missing thing is how much energy these other payment processors use to clear. I’d hazard a guess not as much as the he whole of Chile.
I could see someone making a knockoff version of Gwent to sell on Google Play. In terms of the Red Engine code... the custom engine I'm familiar with was a nightmare in terms of the asset build pipeline and lack of documentation. If you're planning on ripping off a custom engine to bootstrap your game I would highly recommend just using Unity or UE.
I have recurring cold sores next to my right eye. I had it in my eye as a kid as well. I could go blind any time I have it in my eye again. No joke - not exaggerating.

I got it very early as a kid, and kids are bad at not touching their face, so I most certainly moved it from my nose to my eye at some point.

I can also get it on my nose, in my nose, my lips, forehead. So far.

My kid is now almost 3, we were very careful, but he got it a few months ago, had it 3 times in the last three weeks. It destroys our life. We have a 6 month old, it could be life threatening for the little one if they just touch. And even if only mild, explain to a 6 month old he should not scratch his patch off his face...
I might add that 90% of the situations where I've thought about this in a software context as well have been "libre" -> "gratis" more or less inevitably. Again, there are exceptions, but it's surprising how many people are happy to take something and run with it, no support, no "enhanced edition", no training, etc.
Though youtube is mostly doing 'useful' work in the process, bitcoins consume energy by existing.
> If you're in the market that doesn't respect copyright law there's a surprise for you - no one will buy legal copies of your game either, and it will be banned everywhere else.

Considering it's closed source I suspect it could get quite far before anyone notices. Also, people will buy legal copies, you over estimate how moral people are. Remember most of us shop on Amazon even tho we know it's terrible. And the money from those copies will go to CD Projekt Red.
BTC actually has a purpose unlike many many other software products that are just pure waste and net loss to society (FB).
> There is an academic value to competitors, I guess, and maybe a value to scammers (employees' personal details) but that's basically it.

Just hire their devs, it's a legal and cheaper way to get that knowledge.
who said they shouldn't be held accountable? I was just pointing out one possible arguement against video taping police officers. In a job where they are often required to only think once, this may cause them to think twice. Obviously you don't agree with this line of thinking, but it's not the same as saying they should not be held accountable.
We already have a distributed voip platform. "distributed" in the same way as email is at least. Just set up a sip server with appropriate SRV records in the DNS. I'm not sure what Tor has to do with anything.

And as michaelchisari said, we already have distributed IM via the magic of XMPP federation.
I couldn't agree more on both points! Luckily since I'm in Florida, our water doesn't get that cold, but it gets cold enough to make me yelp every time I jump in.
When I first saw the contest I was only thinking about indexing all the existing data from some website, but clearly it's better to just start indexing the new data, and get a website up and running. Later I could write another program that fetches and indexes the old data in the background. Thanks for writing this, it gave me some new ideas.
I already have hard time parsing this code. The main problem I see, is that to read the code I have to know every single keywords in the language.

For example I was wondering if "new" is a keyword. If it is, then "new string ()" might be something interesting, otherwise it's just a function call.

Similarly this raises a question of whether I can write the following code:

if end of line (str)

This might or might not be permitted because "end" is a keyword. If it is permitted, then the result looks pretty damn ambiguous to me. If it's not then I have to name my identifier differently, like so:

if end_of_line (str)

But then I'm skrewing up the style of my code...
take that one step further.

Currently an Ubuntu system depends on bash, ash, perl and python scripts for various tasks - booting up, init, etc.

Take one scripting language and use that completely. Not an easy task, since you will have to do stuff like have a perfectly compatible PCRE library, etc.
I fall asleep faster and I feel great the next morning (not as groggy). I'm not sure if I used to have trouble staying asleep, but I know for sure I had a real tough time falling asleep in the first place. Either way, I feel more energetic throughout the day now.
hah, spell check didn't work that time...
Yes. But that didn't answer the question.
35% of the total installed capacity world wide today is Linux on Z and is growing at double digit rates each year. RHEL, SLES, Ubuntu and most recently CoreOS (with OpenShift) all run beautifully. Ultimately, it's just hardware and it's what people do on it that matters.
Gotcha, I do appreciate you taking the time to reply seriously. My issue with your definition is that means the only thing you'll deem an insurrection is a revolution (basically a successful insurrection).

I think the BLM protests (funny these are always deemed riots by certain folk, reminds me of how the military uses terminology to dehumanize, such as the word target) escalated to insurrection in one scenario that I know of, namely the CHAZ incident. Ultimately, that insurrection failed, since nothing significant changed.

I would argue folks, for some reason, only deem things X when it's too late. That goes for genocide, insurrection (which is done for many reasons along the entire political and human spectrum), slavery, etc.
I haven't done an lscpu check in a long time... at some point apparently it started telling me whether I am vulnerable to a whole bunch of cpu issues. That's amazing.
Looks like "someone" was Bill Joy in November 1981:

https://github.com/dspinellis/unix-history-repo/commit/3573c...

And we have a better clue as to why: there was a separate "sockaddri" that allowed for indirect references for address sizes > 14 bytes.

So the sa_data[14] comes from 16 bytes being the maximum amount of data that Bill Joy was willing to pass around by value instead of by reference.

(Actually, that was probably modeled after the older `struct in_addr`, but the headers for that are missing--so I can't tell. Perhaps it was a design decision carried forward from someone else; perhaps someone from BBN?)
And of course punishment without process of law has never gone awry before, and never slippery sloped into something nightmarish. I'm sure it'll all be fine. It's not like we have ample historical examples of this sort of thing.
I agree: this seems like a very dumb statistic; I have nothing tangible to back this up (except the fact that I can arbitrarily fire off emails at 0 cost), but I have a sneaking suspicion that sending 800 emails has an essentially negligible carbon cost.
You could get a $600 bill of AWS Lambda for forgetting a ; today too Not much has changed.
As I said, I recommend going and making your own mind up. That includes about going.

Everything you mention can be worked around, should you chose to go down that path. I met folks from each of your classifications in Iran. True, not easy for them, but, you know, wasn't easy in the US or Europe that long ago either. Tolerance isn't equally distributed, as we all know.

It's our planet, dammit, and we should be able to go where we want based on our own risk profile. None of those problems you mention are unique to Iran.

Nothing of what you said takes anything away from the people of Iran. Flawed leadership and policy - yes, again, something we're all probably familiar with no matter where we're born or where we live.
I agree entirely with the author's cause and I believe that the guilty-until-proven-innocent mindset of present airport security is wrong and should be unconstitutional.

However, upon reading the article I very much got the impression that the author was refusing to be scanned or searched just to make trouble. When asked why he was refusing to be searched, his answers (in his own writing) seemed to be along the lines of, "because I don't feel like it." I'm sorry, but that's just not really a valid defense. Whether you feel it's constitutional or not, the law says you have to go through these checkpoints when selected. If you're going to refuse, you need to have a much better reason than you don't feel like it.

Ultimately, it sounded to me like they escorted him out of the terminal simply because they were tired of dealing with him, not because he found a loophole in their logic or rules. Less well-mannered officials would have put him in jail for a judge to deal with in the morning.
What about times when you aren't allowed to park at all? For instance, to use the space as an extra traffic lane during rush hour or to allow street cleaning.
> Note that the Lwt syntax extension (often used in Mirage) adds a try_lwt..finally construct.

That's what I wanted to say, but reading back, it was a bit unclear. Though I'd recommend lwt.ppx over its camlp4 ancestor...

> However, people generally use various "with" functions to manage resources.

Which I assume are usually implemented via try/finally if using Lwt :)

> I never found Java checked exceptions much use for resource leaks, since unchecked exceptions are always still possible.

It's not fool-proof, but having a codebase where most exceptions are checked exceptions still protects you in many cases. And of course, try-with-resource is a good way to guarantee against resource leaks in the majority of cases.
Oh, sure – I just suspect that project has been in death-march mode for the last few years. I'd be shocked if the initial launch & stability rush wasn't immediately followed by “now that that's done, we have this backlog of postponed requirements…”
Great context for the article is a book I'm currently reading: Small Giants. Its about companies that could be large choose to stay small and intimate.

I'm not really a fan of the build a company that needs investment in large quantities to grow and eventually be sold. I'd much rather build something that is useful, makes good money, and lets me work with a great+small team. I'm currently fighting this battle with Cloudomatic. I don't really want to build a large vc backed business, but it looks like we have to in order to really achieve our long term goals.
> The rest of the posts were good reading, but getting the emotion involved just makes everyone mad.

For my part, there was no emotion involved. That's why I didn't bother replying to the emotional aspects of timr's second post.

> Neither of the commenters cared anymore about their argument, they only cared about winning.

I care a lot about the argument; I think Poul's article was interesting and relevant, and should not be dismissed by people who (it seems clearly to be the case) did not understand it, but think they did.
My favourite trick: If you have a "print your own" check-in card, print it with low DPI so the barcode on it can't be read with the scanner. On some airports they will send you back to get another one from the check-in desks and let you come back into a priority queue. On one airport I often use this is MUCH faster than the standard queue. (<5 min. -vs- 10+ depending on the queue)

Of course it doesn't work everywhere and don't try it if you're almost-late.
If you don't want to have users, why open source it in the first place? Just keep it on your hard disk and stop disappointing guys who think you give a fuck about people that want to use your stuff.
Ugh, this just reinforces the idea I would never want to take venture capital. To me, being an entrepreneur means you only answer two yourself, your employees, and your customers. Having to answer to a board sounds like the most miserable thing ever. To spend your life building a company, putting your blood, sweat, and tears into your business only to be fired by a board that dislikes you would be devastating to me.

It really makes me respect purely bootstrapped companies a lot. (I know, I know, we wouldn't have a lot of huge companies that we depend on daily without venture capital).
> You guys are totally talking past each other.

That doesn't change the fact that, as best I can discern, the OP has made some factual errors which demand (<http://xkcd.com/386/>) response.
I was thinking about this. You don't charge people to add data - just to remove it.
I disagree with the title of this Hacker News item, but not so much the contents of the article.

Fundamentally speaking, SEO is about three things:

1. Making an information architecture that makes it easy for spiders and humans to find what they want (301 redirects, good top-level navigation, sitemaps, clean URLs, etc...);

2. Sending strong contextual signals to spiders about what a page / piece of content is about through anchor text, alt attributes, good title tags, and basic good web design;

3. Strategically building links to key pages.

That's it - SEO in its totality isn't junk science, it's just that the hair-splitting crap that goes on at places like SEOMoz is just that: hair-splitting over minutia that really makes no practical difference at all.
Ok, thank you, much appreciated.
As someone who has made the mistake of studying both at the same time, it is far easier to focus on just one or the other until it gets to a decent level.

It sounds like it might be useful, but in practice there's so much to do that whatever advantage it gives you is a blip, and the similarities tend to become hindrances when you are in the learning phase. Someone who is already a native speaker of either will get far more out of it than you will as there will be no danger of crossing wires. The only really significant advantage is that it familiarizes you with learning a character-based script in the first place.
My be its an assumption. May be there is some truth it. (most likely) That's what I was confused about. I haven't met him since march ( due to WFH). You are right. If he doesn't like me, there is nothing much I can do about it.
Also applications written 30 years ago today were often self contained applications. Something you can test in a variety of environments as a reasonable proxy to the end user.

Today with SaaS/etc offerings you have very different difficulty spikes. Imagine only rolling out an update once a year to 1B customers. Especially with all the big changes that might entail.

I can't imagine the fear. Releasing often irons out small problems before they become massive problems. Or, at least, is a strategy to attempt that.
> Worse, no sane person on Earth today is going to walk into an interview and tell you they hate those things.

Same with any question having to do with testing. Sure, everyone tests! Why would I ever write code without tests!

First day on the job: Do I really have to write a test for this?!