News for hackers. Stuff that matters.

supergreg

Re:Why some apps use fake progress bars (2017) on Friday February 02, 2018 @08:33PM (#16295608)
Which is why browsers take so seriously the time to first paint despite the efforts by javascript frameworks to push it back.
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...

Are there gateways to see how it works before trying it out myself?
Re:A minimalist guide to tmux on Friday January 26, 2018 @08:30AM (#16238944)
I had remapped <prefix> w to cycle to the next pane so I had no idea of the window list. Thanks for that.
So it's a remix. What was that about good artists steal?
Re:About rel=noopener (2016) on Thursday January 25, 2018 @07:47AM (#16230436)
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.
Re:Go Is a Great Fit for Lambda on Wednesday January 17, 2018 @07:49PM (#16173640)
Because it would make moving away from lambda much easier.
Re:Starting an ISP is hard (2016) on Wednesday January 17, 2018 @08:28AM (#16167686)
What is this superb country you live in?
Re:Show HN: Bato – A Filipino Programming Language on Friday January 12, 2018 @11:55AM (#16134266)
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.
Re:Show HN: Bato – A Filipino Programming Language on Friday January 12, 2018 @09:14AM (#16132904)
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...

Re:WDMyCloud Multiple Vulnerabilities on Saturday January 06, 2018 @04:23AM (#16084541)
It could be if there's someone willing to pay for it being added.
Re:Tiny, weird online communities made a comeback in 2017 on Monday January 01, 2018 @07:45AM (#16045865)
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.

Re:Tiny, weird online communities made a comeback in 2017 on Monday January 01, 2018 @07:31AM (#16045825)
> 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?

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.

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.

Re:Open Source .NET three years later on Sunday December 24, 2017 @08:02AM (#15999349)
Where does Mono fit in all this?
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.
Seems like it only downloads from CDNs.
Re:The Trouble with Politicians Sharing Passwords on Monday December 04, 2017 @08:12PM (#15849021)
Then generate a session id and invalidate the URI after first use.
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.

Re:Apache Guacamole – A clientless remote desktop gateway on Saturday November 25, 2017 @08:42PM (#15779030)
Cool
Re:Stop Using Excel, Finance Chiefs Tell Staffs on Wednesday November 22, 2017 @10:13AM (#15757314)
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.

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/

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?
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);`
Re:Walking away from $30,000 of DJI bounty money [pdf] on Friday November 17, 2017 @09:09AM (#15722039)
What about publicly announcing it so anyone can make the exploit?
Re:Twitter’s multi-million dollar US election pitch to RT on Friday October 27, 2017 @07:59AM (#15567536)
It sounds like Twitter is unbiased about who to work with to me.
So whatever the interns build is supposed to go unused? What if they build something open source and the company uses it?
Re:Rust to WebAssembly Made Easier on Sunday October 22, 2017 @05:45PM (#15529125)
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.
So is gitkraken.

But I assume these apps have spent a considerable amount of time in optimizing electron, which not everyone can do.

Older »