Better HN
topnewbestaskshowjobs
Log inSign up

supergreg

525 karma · joined Nov 3, 2015 (11y ago) · 201 submissions

Submissions

comment 8y ago · link · parent

Which is why browsers take so seriously the time to first paint despite the efforts by javascript frameworks to push it back.

comment 8y ago · link · parent

Edit: I misinterpreted the question at first. I guess in TS you declare a class' properties explicitly while in javascript it is usually done in the constructor. The feature must be related to these dynamic properties. Original answer below.

This[0] page says this problem can be also seen in Typescript. But TS has the arrow function as a class method feature that in Javascript is only at stage 2 in it's way to standardization, so it's easier to solve there.

[0] https://github.com/Microsoft/TypeScript/wiki/'this'-in-TypeS...

comment 8y ago · link · parent

Are there gateways to see how it works before trying it out myself?

comment 8y ago · link · parent

I had remapped <prefix> w to cycle to the next pane so I had no idea of the window list. Thanks for that.

comment 8y ago · link · parent

So it's a remix. What was that about good artists steal?

comment 8y ago · link · parent

Just warn them that at some point in time the feature will cease to work. I see these warnings in the console all the time for broken SSL CAs and deprecated DOM APIs.

comment 8y ago · link · parent

Because it would make moving away from lambda much easier.

comment 8y ago · link · parent

What is this superb country you live in?

comment 8y ago · link · parent

Same in Spanish. At my company we use only English for code, even comments. And are trying to push for jira tickets to be written in English only as well. At least among the developers. Can't keep managers from using Spanish.

comment 8y ago · link · parent

I've seen a couple of Spanish versions of Python out there, just novelties, never seen them move beyond a proof of concept. There's a whole bunch of esoteric programming languages that don't use English, just like Brainfuck. [0]

[0] https://en.m.wikipedia.org/wiki/Esoteric_programming_languag...

comment 8y ago · link · parent

It could be if there's someone willing to pay for it being added.

comment 8y ago · link · parent

If you are looking for open source, I think Discourse is the best out there. We tried to move a community from an old phpbb forum to a newer software some years ago and checked several projects and most projects are either unmaintained or old (with old style PHP programming) or new but lack features we needed.

We ended up using NodeBB because the person who was going to maintain it was more comfortable with Javascript than Ruby.

comment 8y ago · link · parent

> Usenet is free

Last time I checked it needed you to subscribe through some provider who charges money, ISPs used to offer it with the Internet access. Is it really possible to access for free?

comment 8y ago · link · parent

I don't think they can enforce their TOC just by opening the page. I need to open it just to read the TOC in the first place. By reading this comment you consent to agreeing with it.

It doesn't work that way.

comment 8y ago · link · parent

I'll trust the block lists from my internet neighbors. Thank you for your concern but the people who build those lists take sufficient care and most use a transparent process to add rules to them, like GitHub pull requests, and if there's ever a rule that wrongly blocks a site I can whitelist it myself with ease.

They might burn some CPU cycles but surely the ads themselves burn much more.

comment 8y ago · link · parent

Where does Mono fit in all this?

comment 8y ago · link · parent

Maybe we could look at the problem from the other side. Create tools to manage multi-repos like if they were a single mono-repo. A docke-compose for git.

comment 8y ago · link · parent

Seems like it only downloads from CDNs.

comment 8y ago · link · parent

Then generate a session id and invalidate the URI after first use.

comment 8y ago · link · parent

Don't free and open source licenses apply only during redistribution of the software? Unless it is licensed with the Affero GPL, just connecting to a service does not require its source code to be available. That is assuming Amazon modifies the software. If they don't, then there's nothing to argue.

Are they making money with software they didn't build? Yes, but so are we.

comment 9y ago · link · parent

Cool

comment 9y ago · link · parent

I remember one IronPython book that made a spreadsheet application that allowed the user to use python itself for the spreadsheet functions. I think it was a great idea.

The software itself was available for download for a time.

comment 9y ago · link · parent

Looked around and there's a proposal for an easier way to bind `this` and some discussion about extending that to class methods: https://github.com/tc39/proposal-bind-operator/issues/39

Using arrow functions at the class level would also solve this without adding new syntax. Edit, this is a thing already: https://babeljs.io/docs/plugins/transform-class-properties/

comment 9y ago · link · parent

Do arrow functions get added to the prototype or the instance of the object? Can they be created directly in the class body or have to be added inside the class constructor?

comment 9y ago · link · parent

The case would be solved if they added some syntax to bind a function to the class. Something like

    class Foo {
      bind function bar() {
        console.log(this);
      }
    }
So behind the scene it would do `this.bar = this.bar.bind(this);`

comment 9y ago · link · parent

What about publicly announcing it so anyone can make the exploit?

comment 9y ago · link · parent

It sounds like Twitter is unbiased about who to work with to me.

comment 9y ago · link · parent

So whatever the interns build is supposed to go unused? What if they build something open source and the company uses it?

comment 9y ago · link · parent

Not exactly rust, but there's benefits to running the same language both on the front and back end. You could reuse template systems and validation logic for example.
1234567