HNHacker News
TopNewBestAskShowJobs

supergreg

525 karma · joined November 3, 2015

submissionscomments
supergreg··on Why some apps use fake progress bars (2017)
Which is why browsers take so seriously the time to first paint despite the efforts by javascript frameworks to push it back.
supergreg··on VS Code to autocomplete JavaScript class 'this' properties automatically
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...

supergreg··on Patchwork – Decentralized messaging and sharing app built on Secure Scuttlebutt
Are there gateways to see how it works before trying it out myself?
supergreg··on A minimalist guide to tmux
I had remapped <prefix> w to cycle to the next pane so I had no idea of the window list. Thanks for that.
supergreg··on Previously Unknown Warhol Works Discovered on Floppy Disks from 1985 (2014)
So it's a remix. What was that about good artists steal?
supergreg··on About rel=noopener (2016)
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.
supergreg··on Go Is a Great Fit for Lambda
Because it would make moving away from lambda much easier.
supergreg··on Starting an ISP is hard (2016)
What is this superb country you live in?
supergreg··on Show HN: Bato – A Filipino Programming Language
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.
supergreg··on Show HN: Bato – A Filipino Programming Language
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...

supergreg··on WDMyCloud Multiple Vulnerabilities
It could be if there's someone willing to pay for it being added.
supergreg··on Tiny, weird online communities made a comeback in 2017
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.

supergreg··on Tiny, weird online communities made a comeback in 2017
> 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?

supergreg··on Many major websites are taking silent anti-ad-blocking measures
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.

supergreg··on Many major websites are taking silent anti-ad-blocking measures
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.

supergreg··on Open Source .NET three years later
Where does Mono fit in all this?
supergreg··on Why Google stores billions of lines of code in a single repository (2016)
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.
supergreg··on Introducing Turbo: 5x faster than Yarn and NPM, and runs natively in-browser
Seems like it only downloads from CDNs.
supergreg··on The Trouble with Politicians Sharing Passwords
Then generate a session id and invalidate the URI after first use.
supergreg··on Amazon Neptune – Fast, reliable graph database built for the cloud
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.

supergreg··on Apache Guacamole – A clientless remote desktop gateway
Cool
supergreg··on Stop Using Excel, Finance Chiefs Tell Staffs
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.

supergreg··on When I use classes, when I don’t, what I do instead and why
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/

supergreg··on When I use classes, when I don’t, what I do instead and why
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?
supergreg··on When I use classes, when I don’t, what I do instead and why
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);`
supergreg··on Walking away from $30,000 of DJI bounty money [pdf]
What about publicly announcing it so anyone can make the exploit?
supergreg··on Twitter’s multi-million dollar US election pitch to RT
It sounds like Twitter is unbiased about who to work with to me.
supergreg··on “Startup” asks internship applicant to build their app before phone screen
So whatever the interns build is supposed to go unused? What if they build something open source and the company uses it?
supergreg··on Rust to WebAssembly Made Easier
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.
supergreg··on Using Java 9 Modularization to Ship Zero-Dependency Native Apps
So is gitkraken.

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

Page 1 of 7Next →