Better HN
topnewbestaskshowjobs
Log inSign up

vimslayer

270 karma · joined Jun 18, 2018 (8y ago) · 100 submissions

Submissions

comment 6y ago · link · parent

Open in private window, set to offline in the console's network tab, do your thing, close the window. At least I'm not aware of a way the app could send or persist the data when you do that.

comment 6y ago · link · parent

I often have the opposite problem: I'm on Firefox and try to google "FooError: Bar happened" and instead of directing to google, Firefox prompts me to select an application to open "fooerror links".

comment 6y ago · link · parent

If you add your own phone number to contacts, you can also just start one-to-one with yourself from there

comment 6y ago · link · parent

Are you sure you weren't just tuning in to season 8, episode 3

comment 6y ago · link · parent

There are lots of libraries that don't really support dead code removal via stuff like tree saking anyway. React, moment.js, Bluebird, etc

comment 6y ago · link · parent

Finland's government-owned railway company, VR, has a notoriously bad train ticket reservation system that still uses Flash. They've only recently started to roll out more modern versions of the app (that are actually surprisingly ok quality from what I've seen). At some point (like years ago) when browsers started dropping support for Flash, we got some nice hacky solutions [1] from tired consumers because VR themselves weren't stepping up their game. At some point I even saw VR promoting that project on their Twitter as a solution when someone complained that they couldn't book tickets. They should've paid the author and just put it on their site.

[1]: https://github.com/tuomassalo/vr-no-flash

comment 6y ago · link · parent

I had to use Adobe Connect recently and they also had the option to install Adobe Connect as a desktop app that seemed awful lot like it was just Chrome/Electron with Flash preinstalled... Also no Linux support, which was fun to notice just before the meeting.

comment 6y ago · link · parent

I didn't read parent comment as "Microsoft and Valve are bad and I don't want to give them a dime, ever". I read it as "I want to direct 100% of my donation to the project I'm looking to support, Krita". Which sounds reasonable.

comment 6y ago · link · parent

* tries a "Wi-Fi toggle" button, looses internet and is unable to google for help

comment 6y ago · link · parent

People have suggested extensions here, which is fine, but Firefox also supports this natively via custom css files that it can load for you on startup. They can be used for both styling Firefox itself and for modifying websites' styling.

https://superuser.com/a/319322/1173126 (be sure to read the comments of that answer too, these days you need to switch a flag in Ff settings to enable this feature)

comment 6y ago · link · parent

How much of those IE users are also users of GitHub?

Shipping more modern EcmaScript versions than what's supported by IE has lots of advantages for users whose browsers can support it, so I'd hate it if the IE support came with the expense of everyone else's experience. There are ways to serve different JS bundles for different browsers, of course, but that comes with a maintenance cost for them.

Weird though that some buttons wouldn't work at all, because at least most of the basic functionality seems to work fine with JS disabled even. Maybe they should just disable JavaScript altogether for IE and it'd work better. That should be easy to implement too.

comment 6y ago · link · parent

I assume most of the minutes-long compile times they are running into are because of type checking. Moving types to comments wouldn't help that.

I don't konow why they aren't separating type checking and dev builds from each other, but there is just absolutely no way simple TS to modern JS (no compiling to old ES5) conversion would take that long for a 10k LOC project, it must be the type checking. I'm using TS through Babel and it has been a breeze for much larger projects than that. Babel just strips away the TS types and we do type checks via editor integration and a separate CI step. Can't recommend this setup enough.

comment 6y ago · link · parent

Elm doesn't need to perform runtime checks (apart from application boundaries like JSON parsing, where runtime checks are performed) because their type system is supposed to be sound, so you can't compile something that would have incorrect types at runtime. Or if you can, that's considered a bug in the compiler. That kind of sound type system has never been a goal for TypeScript.

Note that I'm not saying that Elm would be better than TS or any other language or anything like that, just commenting about the runtime checks. Obviously languages have their strengths and weaknesses (Elm has plenty of both) and TS has had good reasons to go with their design goals.

comment 6y ago · link · parent

Most of the project is and will still be written in Rust, a statically typed language, so saying that the "project" will drop static types is an overstatement. Based on the design document where the devs talk about this, the TS code in question is about 10k lines of glue code between Rust & userland JS/TS.

comment 6y ago · link · parent

Here's the Deno Design document with the reasoning and some discussion about the decision: https://docs.google.com/document/d/1_WvwHl7BXUPmoiSeD8G83JmS...

This post adds little to what's already said there.

comment 6y ago · link · parent

Microsoft has their notorious "is this account personal or issued by company it department" (or something like that) question when you login. Which is the reason it very often takes two tries and several minutes to get logged in as I never seem to guess the correct answer to that question...

comment 6y ago · link · parent

> non-electron Windows (UWP)

Oh? I thought it was Qt. I don't want to seem like I'm complaining for nothing as it's definitely much better than, say, Slack client, but I still feel like the Windows client is a bit "out of place". Like the task bar context menu looks different from all the other menus for other apps in there, with rounded corners etc.

comment 6y ago · link · parent

Sure, it's just that the person you were answering to--and this whole thread really--seem to be advocating for just importing module files without any sort of build step. Without a build step I also assumed tree shaking wouldn't be an option. Tools that handle tree shaking, like Webpack and Rollup, aren't really the simplest of JS tools anyway so if we are talking about simplicity of dev experience, I'd argue that multiple direct file imports--how inconvenient it may be--is still _simpler_ to get right than "single namespace import" + tree shaking.

comment 6y ago · link · parent

I don't know enough about Three.js to say if that works well for them or not, it probably does, but I don't think a future where all libraries would do this would be very bright. If the library is big, you'd end up shipping a whole lot of unused code to the client, making the end user bored and angry while waiting the page to load (especially if they are the sort of person who hangs around in Hacker News). In fact, the direction has been the exact opposite in recent years! Look at how lodash has moved to exporting one function per one file so you can include just as much of the library as you need.

comment 6y ago · link · parent

> automatic fines if the api is not up to spec

Fines As A Service?

comment 6y ago · link · parent

If my dog or friend or family member would die, I'd be unhappy. Understanding that death is natural wouldn't do much to that unhappiness. Maybe someday I'd get over it, or maybe not, but either way, it wouldn't be because I gained some deeper understanding of life and death.

> it doesn't make you unhappy if a wild animal attacks you when go into its cage

Maybe we have different definitions of unhappiness at play here, because being attacked by an animal would definitely make me unhappy. I mean at the moment it would mostly make me fear for my life, but afterward when dealing with the damages I got, I think I would be quite unhappy, and understanding that really I'm the one to blame wouldn't help. It could make me more unhappy, leaving me kicking myself for doing something so stupid.

I wouldn't blame the animal if that's what you mean, but that's different from happiness/unhappiness.

> are you upset because you can't fly like a bird

I think that's more because my hopes and dreams are shaped by the environment that I've grown up in and, living amongst other humans that can't fly like a bird, the possibility of doing that has never occurred to me, at least not for seriously enough to become an issue of happiness.

Had I been a born an elephant with huge ears that all my so-called elephant friends would torment me for... yeah it would make me pretty unhappy if those ears wouldn't at least give me the ability to fly.

comment 6y ago · link · parent

> you stop having the wrong expectations, so you're less likely to be unhappy

This seems like a big leap in logic.

comment 6y ago · link · parent

Are you following an Excel guide that's written in English but can't use the formulas because your own computer is set to use some other language? Or did you inherit some Excel sheets to maintain that are not written in English? No problem! Just install Excel Functions Translator [1] and say Auf Wiedersehen to all you localization worries!

/s

[1]: https://support.office.com/en-us/article/excel-functions-tra...

comment 6y ago · link · parent

Be sure to check out the issues, too :)

comment 6y ago · link · parent

I found (possibly) this guy's blog by googling 'passthejoe blog'. I don't think it was the Blogger blog they were talking about, though so I made another search with (presumably) their real name and word blog. Bang,there it is. Picked one post from 2011 and searched its opening line "I’m no Backports guru, though I’d like to become one" (with quotes). The post came up as the second search result.

comment 6y ago · link · parent

And here I am using Toshiba Chromebook 2 with 4 GB of RAM to do schoolwork Java assignments with IntelliJ. No wonder it was taking so long to compile

comment 6y ago · link · parent

Idk if this qualifies as "in production", but the JavaScript package manager Yarn (version 2) and its users use Prolog to define rules for their dependencies. Like if you have submodules A and B and both depend on package C, you may use Prolog to constrain that both A and B must always use the same version of C and updating C must be done in both packages.

https://yarnpkg.com/features/constraints

comment 6y ago · link · parent

I don't think that plugin catches floating promises, i.e. promises that are not waited (either via await or then/catch method). The rules listed in that package's readme don't seem to mention it at least (unless I'm totally misreading something). You kinda need TypeScript for that because you need the type info to know if a value whether some value is a Promsie to give the warning.

comment 6y ago · link · parent

How's that? I'm using Firefox and seeing the same annoying back button behaviour.
1234