HNHacker News
TopNewBestAskShowJobs

yunruse

740 karma · joined October 14, 2016

drink more water. let your computer have a little too, as a treat
submissionscomments
yunruse··on How to unc0ver a 0-day in 4 hours or less
It is likely this is a heuristic; Apple would lose out disallowing major companies, so rules are sometimes shifted, if not explicitly for all. Snapchat being pulled would cause a minor exodus, I imagine, especially if it was heavily leaned on that Apple were responsible for their removal.
yunruse··on U.S. Supreme Court deems half of Oklahoma a Native American reservation
Unlikely. I can’t think of any immediate reasons that federal courts would consider anything different to the states, where something so heinous as rape of a child is concerned.
yunruse··on Survival of Scottish Gaelic in doubt
Interesting idea of selling the language. Paying people to learn a language in their own time might be a brilliant initiative – it would generate a lot of intrigue, for one, and it may well be useful as an aid for those who are poor.
yunruse··on Comparing how different devices display the SSID “á̶̛̛̓̿̈͐͆̐̇̒̑̈́͘͝aaa”
I tested this out of curiosity, and all iPhones I could find in my household rendered correctly in UTF-8 with only 12 octets [0]. This is replicated on iPhone 7, SE and XR, all running 13.5.1. So it may well be the issue was fixed in 6s or 7.

[0] https://i.imgur.com/KDau4PP.jpg

yunruse··on DuckDuckGo browser seemingly sends domains a user visits to DDG servers
The issue was highlighted from open-source code from a company who proactively works to reduce privacy.

It seems rather reasonable to assume that in the goal of maximising privacy in search engines, it would be wise to add user-friendly and convenient features so that the alternative is appealing and does not sacrifice too much convenience.

yunruse··on Email Is Not Broken
The direct proximity on a Qwerty and the non-obviousness of the pun makes it a rather odd name of choice. Something more directly different like the “Inbag” (because a “bag” is less personal and office-like than a “box”, I guess) would have been a neater name, personally.
yunruse··on A little bit of plain JavaScript can do a lot
The DOM draft [1] seems to include it. Legacy content is better slow than unusable, however, so it’s better off being discouraged – by linters, dev docs and a warning in the console. FWIW, this is currently linted in TSlint but not JSlint.

It would be nice to have this (via regular or template strings) compile to DOM objects, wrapped with a couple of pointers indicating where strings or elements are placed. I guess for now the best course would be to budge that into transpilation, raising an error if it does anything kooky like work at the boundaries of elements.

(.innerHTML setting is sugar for a HTML parser being initialised on the element, so such a transpiler wouldn’t be removing functionality per se)

[1] https://w3c.github.io/DOM-Parsing/#dom-innerhtml-innerhtml

yunruse··on A little bit of plain JavaScript can do a lot
Clarity is only useful when the variable scope is complicated, which it isn’t here. The problem COULD be that the ultra-short variable names make an unclear external API… but given the function is internal, the context of its use would make it rather obvious it’s constructing HTML elements.

You’re not wrong about clarity; it wouldn’t hurt here at all, but it wouldn’t hinder without, so I imagine it’s to reduce cognitive load and make it abundantly clear the function is logicless glue.

yunruse··on BTFS – mount any .torrent file or magnet link as directory
This is a brilliant concept of a tool. I’ve never worked with monorepos before, but something like this with rw capacity would be an absolutely amazing pipeline, if every developer in the office and beyond are full nodes in the system.
yunruse··on GitHub wil change default branch name from 'master' to 'main'
I saw a great point mentioned elsewhere on Twitter that an even better methodology is to use "prod" and "dev", as it makes the intent that little bit clearer.
yunruse··on Developers are your users too – a defence of 'View Source'
That’s true, but well-named semantic classes aid with other accessibility purposes. Making elements easy to target means screen scrapers and user themes can be maximally effective in targeting the right elements.

Some user themes are for visual nicety, sure, but they might be essential aids to some. Making it easier to data-grab with BeautifulSoup etc means any data shown is more portable, too. Data scraping is all sorts of useful, and having classes that aren’t minified garble makes it a considerable amount easier to target.

yunruse··on Iridescent Tempered Chocolate
Is the charge here really proportional to the crime? As frustrating as it might be to MySpace, it's fairly benign, and it highlighted a vulnerability that could have been far, far worse. Surely those three years without Internet would have been better spent highlighting more vulnerabilities, with the threat of jail time if harm is done again.
yunruse··on Mastercard investing in technology to identify commuters by gait, heartbeat
It would be humorous at least to know Monty Python was ahead of its time in more ways than one.
yunruse··on Product of Negatives (2010)
An important thing about numbers in general is that whenever somebody says “complex/negative numbers don’t actually exist”, they are somewhat right, in a sense. What exists is magnitude and phase

Does that mean we should abandon them? Absolutely not. Encoding phase (or in a much more common subset, parity) is so absolutely useful it’s no wonder we bake 90° intervals (-, i) into our notations: they can be intuitively dealt with. It’s still somewhat easy to skip over the property, however; as a student at least I seem to need to backtrack over signs at least once an hour when working with anything rigorous enough. I wonder if 2-tuple notation, eg (+, 23) or (-i, x²), would be more intuitive by making parity/phase explicit rather than implicit.

Complex numbers are a little more nuanced, but no less useful. I imagine you could develop an alternative notation to make things more intuitive, but thankfully it’s generally taken for given nowadays that they’re intrinsic to how we’ve explored nature.

yunruse··on I found a loophole to prevent those pesky cookie notices
Do businesses really need cookies? Surely logging page visits is enough for most purposes; it can be corroborated with sign-ins if you have already agreed to sign up. Anything else is usually for tracking, usually the intrusive thought.

Businesses don’t have an inherent right to your data. There’s countless bans on much more nefarious practices that “didn’t work” at the time.

yunruse··on Don’t Confuse a Bug’s Priority with Its Severity
I think this is a feature more than a bug. For the most part, sorting by priority then severity seems like the best way to approach things, unless something is extremely obviously a quick fix.

That said, the P-spectrum may have some crossover, especially at P1-P2, depending on the release cycle. For example, crashes should be focussed on a little more for always-online software, whereas for more glacial, manually-updated software, prioritising incorrect behaviour or functional issues may be more important.

yunruse··on Why operators are useful (2019)
That’s quite clever, actually. This way you could chain a complex string together with parentheses without needing a lot of pluses.

Not the most useful of features, but it does explain why * is the concat operator.

yunruse··on Tokyo Olympics “looking at a cancellation” if coronavirus not contained
You’re not wrong, but you have a bit of a dismal look at it. Sports, like other forms of entertainment, are a sign of culture, and culture is the touchstone of a good workforce. Just like it’s important to take short breaks in the office, even small amounts of entertainment is important to keep us happy and focused. Large events, such as the Olympics and Oscars, give a pattern to the years, something to talk about and look forward to. They provide cohesion and fraternity. The Olympics staying up isn’t a higher priority than health, but it’s a mighty sign of things going wrong when they’re not being hosted.

Plus, y’know, a lot of problems have been solved, so these kind of events provide jobs and boost local and global economies.

yunruse··on Flywheel owners found out that their bikes were bricked through Peloton
Would it even be legal to attempt to enforce against it? It would quickly be C&D’d if you tried to sell custom firmware for such things, sure, but given the vibrant homebrew scene for many other consumer devices (iOS, Android, various gaming consoles) I’d say it’s absolutely viable, at least legally.
yunruse··on Make your commit-msg great again
I personally feel that commits should be as granular as sanely possible – obviously some refactors and complex changes must be monolithic (and therefore need a lot more testing!) but generally having more commit granularity means `git bisect` is more powerful.
yunruse··on Infield top-aligned labels beat floating labels on forms
It’s a bit of flair that can be handwaved away. Unlike back-end systems, where due to the non-visibility, flair isn’t exactly seen, the best way of being tongue-in-cheek is a dud API or a comment highlighting some strange behaviour. But front-end is more visual, which is why designing how to animate your hamburger menu button is just something you might end up doing.

It’s not necessarily bad, trying to add a little animation or complexity, if it’s not in-your-face: it can help vary style, experiment with what clicks with an audience, and develop skills. It can also act as a status signal for the website if it can afford for developers to fine-tune every detail – Apple is a good example here.

But yes, the best design is usually one of the simplest ones. Some designers try to make content glide over your eyes and forget that this doesn’t fit usability needs.

yunruse··on Windows 10 to offer Paint and WordPad as optional features
Ah yes, who can forget Eighteen Megabytes And Constant Swapping? IIRC it comes from the Lispy environment that lends it its scriptability. Memory is cheap nowadays so we can afford to be less suave and use the multi-purpose well-rounded duct tape that is Javascript
yunruse··on Teens have figured out how to mess with Instagram's tracking algorithm
Some people want to keep up-to-date or discuss a topic, and some content is exclusive to certain places. It’s an unfortunate side effect of the network effect, really
yunruse··on Petrol and diesel car sales ban brought forward to 2035
The main issue with changing energy source is a change in engine. Biodiesel requires little change, so it should be an excellent stop-gap as the industry hopefully hammers down on efficient, ethical and environmental energy storage.

That could easily be hydrogen, or even biofuel itself – the ultimate goal is to reduce the carbon cost of storing the energy. While lithium-ion has zero continuous cost, its initial cost is rather high, and if the battery is less efficient or prone to breakage more often its continuous cost (of repair and replacement) may well be worse.

yunruse··on You’re better off using Exceptions
I personally feel that use of exceptions kinda depends on how compiled the language is. With strongly-typed, compile-checked code, it’s only really bare assertions for a test suite to build. Meanwhile in weakly-typed languages without means for overloading, certain type-based errors have to be made to ensure the signatures are met.

Errors for trivial things (ie control flow) are an unfortunate abuse of try and catch; generally exceptions should only be thrown to users of an external API, not an internal one. If an exception is caught from the same layer of abstraction it was thrown from, it’s a very leaky abstraction — as opposed to, say, a regex parsing error, which ensures the abstraction isn’t implicitly failing.

yunruse··on Dropbox ignore file or folder in beta
Sync conflicts are never fun, but from personal experience programs that attempt to auto-resolve them aren’t exactly letting the user in on what’s going on.

The best way to make that work in that case would be to explicitly inform the user when unignoring of the conflict and ask which to keep (showing metadata etc). A quick “retain other version” would help if the user was unsure.

yunruse··on Picardy Third
Indeed. There’s somewhat of a selection bias here, too. The older the song, the longer we’ve had to filter it out from other songs. Meanwhile, the blurriness of “modern” in “modern music” means that any comparison will be naturally biased. The mediocre songs of yesteryears are forgotten – but the mediocre songs of today are still gonna appear on the radio.
yunruse··on Ring doorbell 'gives Facebook and Google user data'
Many people close the door when they go to the toilet. Why, then, if they have nothing to hide?
yunruse··on Dimensional Analysis in Programming Languages (2018)
There is! The API is nowhere near complete, but Noether[0] can handle the following well:

    >>> display(lightsecond)
    >>> v = c / 3
    >>> h / electron.mass / v
    (3.019×10⁻²⁰ ± 2.277×10⁻²⁸)ls <length, distance>
    >>> potrzebie / bushel
    62.23m⁻² <vehicle efficiency>
    >>> print(f"The speed of light is about {c:.5e}")
    The speed of light is about c = 2.99792e+08m·s⁻¹
    >>> momentum
    mass * length / time
    >>> print(flow)
    L³·T⁻¹
There's no explicit support for probability, but you can roll your own quick with some support

    >>> prob = Dimension.new(3.4, "probability", "P", "chance")
    >>> chance = Unit(prob)
    >>> percent = Unit(chance / 100, "%")
    >>> display(percent)
    >>> chance / 3
    33.33%

    
[0]: https://github.com/yunruse/noether
yunruse··on Wikipedia now has more than 6M articles in English
The standard argument against this is that it’s not very standardised. “wtde” will give you German Wiktionary no matter what browser you’re on. The cost of adding a code for every use case needed on every browser can get frustrating, whereas many bangs on DDG can be easily inferred, and then immediately used. The only cost then is changing a search engine.
← PreviousPage 5 of 6Next →