skysight-inc/HackerNews huggingface dataset:
I've been porting over a reasonably sized project to Typescript for about a year now, well worth it.

Most of the time, the change is just to rename the file to `.ts`. Sometimes you have to change things because (surprise!) there was a bug.

The biggest painpoint is that you usually have to go pick up some type definition files from DefinitelyTyped for third party libs, but it's well worth it. Second biggest painpoint is type signatures (depending on the context, writing out types/definitions can be subtly different... or maybe I'm doing something wrong).

To anyone who's considering moving their JS stuff to Typescript but have hit some issues, please feel free to ask me. I really think it's a plus for sanity when writing JS.
No, people don't like having their time wasted by clueless product managers who are trying to justify their existence with cosmetic updates.

People don't, on the whole, complain about things that genuinely make their lives better.
"the wages for developers are artificially inflated"

The wages are reasonable given extremely strict "culture fit" requirements. Must be male, must be white, must be under 30 with precisely 1-3 years experience never more or less, must be an ivy grad or close equiv, must perform well in hazing rituals like the whiteboard interview, must tolerate sweatshop working conditions, etc etc etc.

I mean, if you want to hire developers, the USA currently has way too many. Regardless, if you require incredibly narrow "culture" criteria, then there is going to be a massive shortage and opening the floodgates will be useless.

Seriously, does anyone think a bro-filled startup would hire, for example, a middle aged black woman immigrated from Senegal with 6 years experience and a non-ivy degree? "Oh I'm sorry, you're overqualified". "I don't think you'd be a culture fit".
Ackman's Valeant Investment Keeps Getting Worse
Deep or Shallow, NLP is breaking out
https://news.ycombinator.com/item?id=11265293
HTML5 has been going in exactly this direction re: form inputs (@autofocus, @required) but, yes, I agree that it would be nice to extend that to, for example, some of the core ui interactions present in frameworks such as bootstrap.
There was an article a couple of months ago, shared all around urbanist social media, lamenting that rental prices in Seattle were declining because of an increased supply of housing (it was in one of those ubiquitous business insider journal type magazines). For a variety of reasons, it can be hard to increase supply, but that's the best way (barring a recession) to lower the cost of housing.
You can, you just need to implement it yourself in EC2 (other compute platforms are available) with trigger-based replication, using something like bucardo or londiste.

https://aws.amazon.com/blogs/aws/rds-postgres-read-replicas/
It works similarly in Germany and other economies with strong social support systems as well, it seems. You're doing really well to break 65,000ish Eur as a developer, but get on the management track and the sky opens up.
But that's because you can also touch-type in QWERTY, correct? For someone like me who only learned Dvorak and never learned QWERTY to begin with, it's a chore to hunt for all the letters.
Repokar.com #Auctions Now on Your #Mobile #Device
LastPass lunaches two-factor authenticator app
Except this really isn't an issue for TypeScript, it reads that close to JavaScript.
I believe the issue was that the 'white man' demographic had been given special reservations in the first one. When they asked him if a bunch of white men had (unknowingly to him) influenced him to overrepresent by a laaarge margin, he opted to account for the unconscious bias by 'thinking' more consciously about it.

Of course, now those goddamn petulant PC white men want all the spaces in the list, even AFTER he has acknowledged his bias inherent in the original list. If they'd ONLY choose to be objective and stop being selfish about the goddamn unconscious bias they are favored with. But nooo, in this ridiculous age of political correctness and 'everyones view is correct', they get do goddamn complain that they didn't get 100% of his opinion. These people are pretty much Hitlers to free speech : /

PS: BTW, what's the politically correct term for a 'petulant white man-child"? I've gotten some sideeye once in a while by one of those radicals when I've used the term in public.
All APIs need good documentation to be good APIs. If you're not providing good documentation with your API you're doing your users/consumers a disservice. Using a tool (TypeScript/Flow/whatever) to ease the pain of providing that documentation is in the best interests of an API developer since it reduces the friction of having to write the documentation by hand. Also, in this case, good documentation is not just documentation for the programmer that is consuming the API, but also the IDE within which the API is being consumed.

I'd say in this situation the title is justified.
I think the best reference would be the actual (main) spec since the grammar spec says it is kind of a "superset" of the actual specification, i.e. not always strict enough. Identifiers are specified here: https://www.w3.org/TR/2011/REC-CSS2-20110607/syndata.html#va... (two hyphens at the start are also not allowed, in contrary to the "SO answer" cited).
Why is that spamming? Only because you don't share the writers opinion doesn't meant it doesn't fit here, right?
>Even if these sorts of crimes are replaced by electronic thefts of equivalent value,

Why would they be of equivalent value? Consider how much harder it was to steal $100 million in cash, how much more planning it took, if even possible.
I don't see that as "undermining". It's more that Rosa Parks is very symbolic, but in many ways she was "standing on the shoulders of giants", and we see her, the symbol, but not the giants.
"When Spike originally released this list, many noted the lack of female filmmakers. Lee accepted that critique and released an updated list."

It's interesting to see that people that label themselves anti discrimination actually not only live perfectly fine with positive discrimination, but they actually come to expect it as a standard policy and take offense when it doesn't happen.
I just hope this will not be yet another point of fragmentation for JavaScript.

Not looking forward to not only having to use different build tools for all libraries I work with but also different pre-processors and type analyzers. Oh my.
This is a pretty trivial issue of a preference for one syntax over another. I'm not really interested in arguing about it. I personally find it useful to be able to use HTML syntax.
I'm fine with the "this tiny codebase is DRY" justification (though how hard is it to be DRY with 37 lines...? DRY in the sense that it proves DRY-ness is a concept of computer science??? DRY in the sense that it conceptually overlaps with what other developers/programmers in the field are describing in their systems? DRY in that it appeals to a handful of niche programmers?), I'm fine with the package management justification (because it makes continuous integration possible with upgrades); I'm fine with the "I don't need to be a Pointer-dexter Programmer to write software". The problem is the "cute name" justification, or the idea this is a "good practice in the honored tradition of DRY".

The only problem here is that "who cares" if it is a "cute name". This isn't really DRY in a non-trivial sense. I mean, yet another grid system that calls grid-like things "grids". Yergh! Go read Brian Cantwell Smith's paper on "semiotic alchemy". More practically, I would say that all the points about filesize and what not are sadly irrelevant as true sources of anger. I honestly see this as no different as someone getting angry with someone else because they bought a foreign part to put in an American car. More puffery!

We have 7 "big" problems in CSS today:

Global Namespaces,
Dependencies,
Dead Code Elimination,
Minification,
Sharing Constants,
Non-deterministic Resolution,
Isolation.

What happened to the pursuit of truth? Alright. You put a framework on your résumé? But are you a computer scientist? Are you defending an idea? Or simply leveraging an old one?

We take and depend on a lot of code today. But now we are taking and depending on higher order concepts or principles to give the illusion of pursuit... of something.

This is a "grid system" only in name insofar as it surely is detached from the idea of why grid systems were invented, mostly assuredly, to solve problems.

The "filesize" problem of CSS is like the "filesize" problem of Bitcoin. It's just that nobody really likes CSS or knows they can build Turing Machines in it, so they hate you for it. Whereas in Bitcoin, it gets you a seed round to test yr vaporware. At least these little CSS publications don't cost society that much, I guess..

Typically when I venture down this path of "system building" in CSS land, I use Organic CSS[0] because it promotes fun, thinking, creativity, and gives me a scientific scheme within which to treat those 7 problems listed above.

Does this grid framework solve any of those problems listed above? Is it even concerned with them? Are devshops aching to refactor to the next tiniest grid system? Are we really looking to shave off submilliseconds from our HTTP requests? I mean, we have HTTP/2... so do those submilliseconds really matter these days?

[0]: http://krasimir.github.io/organic-css/
So, we should know good PR in this time and date, as well? But understand what is PR and what is too much idealism.
If I had some process that fit male candidates far better than female candidates, with no clear benefit compared to other processes that had less of a biased fit, would that be a problem?
That's not even true, it's just that nobody pays attention to other things.

Look at Windows desktop apps. If you wanted to make a native Windows desktop line of business app in 2000, you would use Win32 APIs. In 2002 or so, you were supposed to use WinForms. And then it was supposed to be WPF. And then Silverlight. And then WinRT.
> 4. There appears to be value-added services in the common area, a cafe, a juice bar, etc, but I hardly see it used.

Value added? Maybe, I guess. It's really just another way to drain more money from the tenants in the name of convenience. Dorm room too small for a coffee maker? Just pay $4 per cup in our handy cafe.

I wonder where the threshold is for people who would live in a situation like this. Is living in SF such a necessity? If you're consumed most of the day with your startup to begin with, how much of the city's culture are you really going to take in? Especially if you're in one of these dorms, where they drop a cafe and juice bar right in the building "so you never have to leave!"
Yes. Next summary: "Oh, me so enlightened; wake up, web-sheeple! I am the only one with 20 years of experience."
I know it's hard work, but I imagine if they have 6 months off with their families that they are getting to unwind in a way that I probably never will mid-career when limited to a couple of weeks per year. I don't imagine that it's all hardship all 6 months.
>it's about as likely to gain traction as Haskell

So rather unlikely?

Haskell has a JavaScript compiler as well, by the way (GHCJS).
All libraries should use input validation to avoid RCE and other attacks

All software that handles sensitive data should use transport encryption & encryption at rest

All software that uses encryption should use thoroughly vetted professional crypto

All computer users should use backup software
Given sites have started blocking people from reading the story, even if you Google the title, I think we should stop posting links to them. I can't read the article, and if someone else posts the content here, that's not a tenable solution.
Innovation Is the Key to Effective Incentive Programs
Peanuts my friends. It's not a deep technical problem, if users shout hard enough Adobe will either rollback or make it optional. Still amusing to see an 'experienced' company doing such a stupid thing, they know about UIs, at least they knew.

Adobe Photoshop 2016, aka Adobe Gamma Cloud Calibrator.
With WebAssembly making its rounds it would be cool if Javascript libraries are able to be written in C/C++ or other lower-level languages then exposed via an API. That way a lot of algorithms can be shared with native code-bases too.
Wow, I never knew that was the US terminology. Soany things that didn't really make sense to me have just come into focus.
The Immutable.js API might be good, but the documentation is cryptic on a good day, awful on a bad one.
Unlike most of his other movies, Psycho broke ground in horror filmmaking. For filmmakers you want the first instance of something.

http://www.enotes.com/homework-help/film-techniques-used-fil...

It shouldn't be a list of good movies, but movies that were responsible for paradigm shifts.
https://docs.google.com/forms/d/1Sz4lgMMNtmkhEYJtC_qTPWyzF1M...

Your input would be much appreciated.
I figure it's basically a coded ransom demand. "There, we've made it clear we don't care about reality, there's no way to lawyer out of this, we've got him and we mean to keep him, unless you can make an offer to change our minds?"
And here I was expecting to read about Anthropogenic Climate Change on spaceship Earth.
I am sure that visitors from other countries do this stuff and get away with it or just get a fine or pay a bribe. Thankfully, not a lot of Americans visit North Korea or we would see more incidents like this.

The fact that North Korea is so insane is what makes pulling a prank there irresistible, that's why the prank has "value."
Why would "strong social support systems" be connected to this?
That is not all the details.

Someone wanted to buy and then resell his neighbor's home with a selling point of living next to Zuckerberg.

Zuckerberg also rents the houses back to the original owners.

http://www.businessinsider.com/mark-zuckerberg-buys-4-homes-...
Top interview questions on final keyword
The point the author is trying to make is that all Javascript libraries should be annotated with types. Not necessarily Typescript, but that's the popular choice right now.
It reads closely to JavaScript. But it is not.
Saving Hundreds of Hours with Google Compute Engine Per-Minute Billing
Exactly. This is why Citizen Kane should be there. It is not the most enjoyable movie to watch but it was brilliant and a huge paradigm shift.
http://www.instanceofjava.com/2016/03/java-basic-programs-ex...
Exact same arguments that I use when arguing that any software above a certain complexity level and intended for a long life and maintenance should be written in a strongly typed language with working generics system.

Seems ironic that JS community is starting to come around to that finally.
7 Slack-Like Alternatives with Built-In VoIP Capabilities
The more elegant solution for a 'rogue employee' is to leak the signing key and blame the FBI.
I understand the issue of making my traffic public to service provider, there are other issues I had to consider:

Using Tor - you make your traffic public to SOMEONE, activists, hackers, maybe governments. No one knows.

Running own VPN - you still expose traffic somewhere and you can still be easily tracked and monitored. Here comes another problem - I can administrate simple servers, I do it as a hobby... but I'm not sysadmin, and I would make mistakes and expose everything my start and endpoint traffic that can be 100% correlated.

Not using VPN or Tor at all = exposing myself to local government/council, neighbours and GCQH.
People love it.

Why don't we change where the clutch, the break and the acceleration pedals are from time to time on cars? Just for fun.

Why don't we switch riding right side and left side of the road? Every once in a while? Or the shape and colours of traffic lights?

Why do piano keyboards keep the same boring interface since decades (7 whites 5 black keys)?

Why do we have books with always the same size and boring indexes, table of matters and introductions?

Why don't we change VAT tax forms every months?

Oh I know, because changes are costly and not needed.
>but tax payers around the world are thankful for having to pay additional taxes for your privilige.

Those tax payers should be thanking their law makers who allow for entities within their jurisdiction to make use of laws elsewhere to avoid local laws.
Show HN: Trump.css
Yes. And, having worked with typescript, its quite annoying how poor most typings files are that you get from the definitelytyped repository. It's better than nothing, but they are unversioned (so always behind) and often very incomplete.

I agree with the author: types are there anyway, typescript seems to work well enough and has traction now, so please, if you write a library: add those type annotations bottom-up in the library and let typescript generate a nice .d.ts declaration file and standardized module stub around that final javascript library.
Must say that Chocolatey have made my life much easier and I recommend to try it out.

Not sure about all the negative comments here. It's OSS so if you have a negative experience and the time to write comments here, why not contribute back and post the same thing as an issue to get a discussion started with the team? It's actively being developed and the team behind it listens to the community.
BBC's ads appear to come from Google's ad network. I'm curious how much effort Google puts into monitoring/policing the landing urls for this sort of thing.
Elastic.io introduces the new tenant management UI on its integration platform
There was project somewhere to do type-checking with JSDoc. Where is it?
This is akin to saying "Every C++ library should be written in Objective C."

EDIT:

Hey people down voting me; it literally is the same. C++ is a standard, JS is a standard. TypeScript is (like Objective-C) a compatible alternative.
Ask HN: What books do you wish your manager would read?
Non-technical, technical, technical management, people management, perspective, insight.

What books or other resources do you believe would make your life better, if your present and future managers read them and lived their lessons?
So, what you're saying is the hippies were on to something? Legalized pot and communal living – what a time to be alive!
Dependent types are not a verification technique. They are just one way of encoding statements about your program (in intuitionistic logic). The technique to prove those statement are either manual or manually-assisted (e.g. Coq), or automated using various model-checking algorithms (Liquid types). Deciding to encode program properties in dependent types (e.g. Idris) or direct logic (e.g. Java+JML) doesn't make verification any easier or harder. It's just a form of stating the properties you wish to verify.
Vic Gundotra Is Building a Heart Monitor for the Apple Watch
Crypto-Ransomware Spreads via Poisoned Ads on Major Websites
I think it is much more important that final apps -- not libraries -- are written in Typescript.
You can give a desktop PC easily too.
Typescript isn't all that differentiable from ES6. While I'm generally on the vanilla train, feeling fairly compelled to use it when messing around with angular2 has made me very much appreciate it. Change your .js filename to .ts and it will still run, which makes the typing just an added bonus.
England-vs-west-indies
What Successful Companies Do – Dave Farley
Does he not know that Here Comes The Airplane is satire? (or do I just not know that it's for real?)
> Or did he end up listing some movies that he didn't feel were as good as the others, just to meet the quota?

The assumption behind this statement is that the list from the article is "Spike Lee's Top Films"

This list isn't about movie quality, it's about forming the minds of young directors.

Spike Lee speaks his mind. Nobody tells him what to say.

If he updated his list, it was because he felt the new list would do a better job helping new directors grow in their craft.
Not to someone that wants to turn up their signal power it isn't, they don't consider themselves to be causing problems, they just don't care so much about other people.

You can't really place restrictions like this in FOSS software. It doesn't work.
Watch Get Carter (2000) – Watch Free Movies Online
Cool to hear about the KATG cover art =D

Interesting app. How do you think the price point is effecting the revenue? Are you following a model for higher priced apps or developing one as you go?
Killing the Monolith
The demo is broken for me.

Why would anyone even want anything like it?

E: Nice to see again how childish HN is, downvoting when someone points out that the thing is broken and asks a serious question. This is why I originally left this place.
I agree on principle, but many very not-idiots write for websites they don't entirely control that more or less require JavaScript.

I have it enabled and use uBlock, and I've never had an issue with this sort of garbage getting on my machine.
Lodge: The Lucky Dogs of South Pittsburg
And set top box that may have another version of JS.

Or the "javascript" used in Qt ... or any new appliance/software that wants to provide a common accessible language for their "events" and choose a JS that is patched to support stuff like hardware functions.

I have been using these kinds of FrankeinJS in the past.
I have a somewhat shonky shell script which maintains a fast-forward branch that tracks the HEAD of a rebasing branch over time. I use it for keeping the history of a set of patches.

https://github.com/fanf2/git-repub
I completely agree.

We are in 2016. If you are a front end developer and you do not have at least one terminal opened in the front end directory of your website ready to run NPM or Bower and you are still managing your dependancies manually, there is something very wrong with your workflow.
Context matters. Some people, while writing their own application code, find types to be annoying, a nuisance, or whatever. That's a personal (or team) decision.

This article is targeted at authors and maintainers of high-adoption libraries. It says so right in the second paragraph.

And, frankly (speaking as someone with experience on this topic), he's right. Maybe static isn't always the answer, but in the context of high-adoption libraries, a little bit of effort to improve clarity and strictness is a huge lever for cutting down on wasted time of thousands of developers everywhere.

> The article doesn't really offer up any real arguments as to why you should specifically use TypeScript

Did you read it? He offers the Git/Mercurial comparison of TypeScript's growing popularity.
No, they couldn't. The GPL is a grany of rights, not a restriction of them - if you can't fulfil the criteria then you do not get the grant, regardless of public policy.
Not only does the installation with npm take at least 20 minutes but you install anywhere between 250 and 400 dependencies for those 37 lines of CSS.
I may choose not to document my code or not to test it - because it's just a one-time script, because it's going to be thrown away soon, because all my coworkers know what the code does... It's more than debatable of course, but it happens a lot in practice.
However, if I write a piece of code that will be re-used a lot (inside my company, by friends...), I will do more of that (tests, documentation). I expect the same from libraries authors, whose explicit goal is to be re-used by others. The author's point is that typings is similar to tests and documentation - if you want people to use your projects, typings will help them (it actually serves as a good start for tests - catching bugs that cause compilers errors / warnings - and documentation - what your functions accepts is a very good start), and it adds eg. autocompletion / 'go to definition'.
As a user, feel free to use Typescript or not. As a library author, help your users by using types.
Does anyone remember Creole wiki markup? It was born in a time when each wiki created its own syntax. Creole should become the standard for wikis, but it never got traction. I fear that it will be the same with commonmark.