Better HN
topnewbestaskshowjobs
Log inSign up

makecheck

12,740 karma · joined Feb 17, 2008 (18y ago) · 2,917 submissions

Submissions

comment 10y ago · link · parent

Well, I forget to use it on the keyboard too. :)

And the keyboard has exactly the same problem; force-touch uses space that already has a purpose and a gesture that is somewhat similar to that of the normal keyboard function. I tried it just now and there is a decent chance I will start typing random characters instead of activating it. That, to me, is a failure of an interface. I will admit that once activated correctly, the mini-trackpad is a better method for moving the cursor (although, almost anything could improve over the default text editing on iOS).

comment 10y ago · link · parent

Individual sites/sub-sites should definitely have the option of locking down or at least specifying the engine that they depend on. (In the case of the latter, in theory GitHub could collect the “in use” specifications of all projects and get some idea who needs what before making a change.)

Ultimately though, if you need control then you have to take control.

I have been using "textile" for the help documentation in my project for years. I simply copied the entire Python rendering code into my project. Nothing can break until I am ready to change (and I rarely find new versions of the rendering engine anyway).

comment 10y ago · link · parent

You know, until you mentioned it just now, I’d forgotten my phone even has 3D Touch. It had been literally weeks since I last thought to use force-touch for anything, mostly because there is zero indication where it will work.

And it is half-baked in the sense that when I do activate 3D Touch, it’s usually by accident. It is almost the same gesture as deleting apps on the home screen! I go to delete an app, press-and-hold a little too long and instead of squiggly icons with delete buttons I get...a menu? And usually I get that the 2nd time I try, too.

Force-touch badly needs something to make it obvious, and they need to work a lot harder on making it not overlap with anything else. Ironically, for an interface that loves gratuitous animation, force-touchable objects might have made a lot more sense with some fancy appearance or animation and they have none.

comment 10y ago · link · parent

I use the location of the script to find the absolute path to the bundle (MacOS folder), from which I can work backwards using ".." to find other things like bundled libraries.

In my case some of the libraries are also compiled so I have a starter script that sets DYLD_LIBRARY_PATH, PYTHONPATH, etc. and runs a 2nd script that can then successfully import whatever is required.

comment 10y ago · link · parent

Yes, I do this for my project.

Although, I do not attempt to install any libraries, I keep everything in the application bundle and set environment variables as needed.

It is limiting in the sense that I must use the Python version that Apple does but at the same time, the shipping executable is downright tiny compared to most Mac OS X applications.

comment 10y ago · link · parent

Actually, I think you do. Maybe the app crashed without saving your data. Maybe you hit a button or pressed a key by accident without realizing what it did, and now all your precious work seems to be gone and you don’t know where it went or why.

Not all feedback is automatically bad.

The trick is to get rid of animations that force the user to wait for them (e.g. most “opening” animations are in this category; I do not want to wait for something to finish sliding open before I can use it, I want items to appear instantly).

comment 10y ago · link · parent

To be honest, I think traditional shells are now only good for environments where you know you aren’t doing anything too weird and all the most likely inputs work as expected without a lot of effort. This is spending time wisely; just because everything except a zero can technically be part of a Unix filename doesn’t mean that I want to invest hours or days making damn sure everything works for pathological cases.

If I actually do want to guard against every case imaginable, I immediately switch to Python or some other language that at least knows how to quote things unambiguously without a lot of effort.

comment 10y ago · link · parent

Especially since Internet domain names were never set up to be consistent with trademark law (or heck, even the Yellow Pages), as they probably should have been. “Domain” is a terrible name in the sense that it actually does a pretty bad job of splitting businesses into their true domains.

Take moving companies. We have “Apple” and “United” in that market, and those names are clear enough as long as the grouping is something like “moving companies”. They coexist in markets where Apple computers and United Airlines are well known. In the old days, these would have had two different mentions in the Yellow Pages. Yet, can there reasonably be a “moving.apple” and “moving.united” alongside “computers.apple” and “airlines.united”? No, these well-established four companies have to compete for two logical domains, because consumers only seem to care about ".com". Companies fight over domain names that they shouldn’t need to care about, and artificial “value” is attributed to these names.

comment 10y ago · link · parent

Remember how New York’s (physical) master keys became easily accessible[1] despite the fact that they were supposedly so carefully managed? All that effort, all that trouble, and now not only is there essentially no security at all but the master keys created a security hole that did not need to exist.

The security of encryption is similarly proportional to the security of keys. The fewer things you have to secure, the easier it is to keep them secret. The “master key” concept in New York only served to create something of great value that people wanted to acquire, and massively increased the risk when that fell into the wrong hands. Obviously the same thing could happen with an encryption key, except it is worse because you don’t even have to be in the same country as the source of the key to acquire it or use it.

[1] http://www.nydailynews.com/new-york/pols-public-outraged-sho...

comment 10y ago · link · parent

I wonder how much JavaScript is only being used to produce a small number of common effects. In other words, how necessary is it really for sites to execute arbitrary code?

Maybe we have reached the point where browsers should implement the top 10-20 effects in standard ways (that of course the user can choose to override). That would make it feasible for many web sites to avoid JavaScript entirely and still produce the effects they want, and let us move away from this “execute arbitrary remote code by default” aspect of web pages.

comment 10y ago · link · parent

Well, you can’t give people stuff to do offline because they cheat (you’ll see the whole thing show up in no time as a Stack Overflow question). And you can’t avoid coding questions during interviews because it is astounding how much people lie on résumés; seriously, even people who describe their background as “Advanced Knowledge of $LANGUAGE”, can choke when asked to do the most trivial things in $LANGUAGE.

I try to ask questions that aren’t completely ridiculous, but definite tests of knowledge. And in my mind I judge correctness not so much on remembering obscure syntax but on how they approached the problem, and how much time it seemed to take them to start doing something. I always ask about things like how they approach debugging, testing, etc. because these are important too and they tell you a lot about how likely the person is to be able to handle any problem you come up with.

comment 10y ago · link · parent

Honestly, if organizations like Mozilla need ways to make money, I strongly suggest they create an “utterly backward but 1990s-compatible” version of a browser and charge a ton for it. And then, strip as much as possible out of the free/modern versions so we can move forward.

comment 10y ago · link · parent

Well, perhaps they could start by looking at a feature of their own OS, introduced by Federighi himself (yet nothing new regardless): Tags.

If they simply started tagging things internally in some way that associates issues with external things like bug numbers and release numbers, they would have a start toward communication with the outside of the company.

comment 10y ago · link · parent

Even if Microsoft was just tired of having to ask the user for every little thing, there is a gulf between “ask the user if he or she wants to update” and “auto-install multi-gigabyte blob that changes everything, over a data plan that we don’t pay for, affecting users in dozens of ways that we cannot possibly know in advance” (as Microsoft has now chosen to do).

Microsoft could have started really small with this, even updating a single app. There is no non-marketing reason to simultaneously change massive amounts of software. And since it is now clear that parts of Windows 10 really are half-baked (like duplicate settings panels), there are clearly some things that should have waited for a later update, once there was time to finish them.

And you know, Microsoft has made billions and billions from software so frankly they do not get to screw around here. Nobody with that much money and that many engineers should get an ounce of sympathy for being so incompetent. They needed to start by doing a lot less, with a lot more care and attention.

comment 10y ago · link · parent

A lawsuit would be very reasonable. The hard part would be deciding on suitable damages, because the reality is that we’re not just talking about the cost of restoring a computer; these days, a trashed machine is more like somebody breaking into your room and destroying all of your personal stuff.

The really sad thing is that it should have taken about 2 or 3 people at Microsoft, tops, to anticipate the first 10 things that could not only go wrong with their upgrade plan, but very, very wrong. Were those reasonable people shouted out of the room?

comment 10y ago · link · parent

This is probably like having your car towed: technically there’s something that says they are allowed to do it but you sure as hell don’t expect it to happen, you don’t want it to happen, it will cost you time and money and at the wrong time it could really screw you. Thanks, Microsoft!

comment 10y ago · link · parent

As much as I don’t like Microsoft, they are far from the first to create “updates” or “fixes” that have other crap bundled into them, and plenty of developers should be blamed for this anti-user practice.

Still, it’s a shame. Technologically, near-instant software updates ought to be fantastic. In reality, developers have abused this power.

And when there is abuse, you need a system that returns power to the users.

For instance, an update protocol should probably use cryptography, with keys distributed across a web of trust that the user is part of. If the web of trust collectively distrusts an update (e.g. because several people had problems with updates signed by that key), it should automatically raise red flags for other users and not be installed automatically. For random 3rd-party developers, this would make it hard to push unwanted updates; and for big companies that don’t want to have a poor public image, it would be incentive to not push updates that aggravate a lot of users.

comment 10y ago · link · parent

A basic security problem is figuring out who you can trust. You often need to trust something by default (hence root CAs in operating systems and such), or you need to have a mechanism for building trust (e.g. networks of trust such as sharing GPG keys).

And unfortunately we have seen plenty of examples of how screwed-up a default-trust scheme can become. Laptop vendors have abused their root-CA authority multiple times now, in recent memory. You don’t want the keys to the kingdom in anyone’s hands.

Besides, no matter how many assurances you give me today, I have no idea how careful you are when hiring people or how well you secure your Magic Keys. In the end, they get out in the open. This is why you can’t allow for even a single hole in the system.

comment 10y ago · link · parent

Before they heap yet more into the language, I think they need to go back to previously-standardized classes and seriously critique them, ideally replacing some of them with entirely new designs.

For instance, it is crazy that something as critical and commonplace as "std::iostream" is riddled with error-prone design decisions. The "<<" operator choice is wrong, and it fails basic localization requirements before you even get into its other problems. To this day, I see people who don’t handle stream errors correctly in every case (and who can blame them, when you have stuff like “bad() is actually not the exact opposite of good()”?). Don’t even get me started on the fact that most flags have two different pairs of constants with similar names, used in different contexts, with different values, that will even compile after the wrong one has been chosen (producing who-knows-what behavior?). Or the fact that global stream states can be screwed-with from anywhere, meaning that when a library call returns you can’t be sure that your own "std::cerr" state is “undamaged”? And this is just from streams! The list goes on.

comment 10y ago · link · parent

There has to be some way to register negative feedback so that you can find out what is widely unpopular. The key is to lower the power of individual down-votes so that an idea can’t be easily trashed to the point where most visitors won’t even consider reading it. (I find myself doing this sub-consciously in review sites and app stores for instance, where once something falls to about 3 stars I don’t even want to see what the fuss is about, I just skip it.)

One thing I’ve never seen is a vote that accounts for the number of unique visitors, or the total time that visitors spend on a page, or even contributor status, before weighing feedback. An issue that isn’t immediately important to a lot of people should require some time to decide popular/unpopular status.

A page shouldn’t show up/down status to anybody* until a significant amount of feedback has been collected, either. This would prevent knee-jerk down-votes of ideas that seem unpopular to everyone based on a few early down-voters. A proposal should stand on its own, at first. After a certain time period, the page could reveal whether or not an idea has really turned out to be popular, and at that point the cost of up-vote/down-vote could change (e.g. maybe only comments are allowed at that point, and no simple clicks).

comment 10y ago · link · parent

A few guidelines:

- Is the bug report focused (one issue), and not riddled with a list of unrelated problems?

- Does it include full environment detail, relevant to the domain (e.g. hardware/OS, versions of the programs involved, environment variable settings, any recent changes, etc.)?

- When reporting a crash, does it include all logs?

- Is it professional and to-the-point, free of distracting and irrelevant statements like angry rants?

- Does the submitter respond regularly, instead of treating bugs like black holes when follow-up questions are asked or test patches are released?

comment 10y ago · link · parent

Per executive. Assuming a generous $100k cost per employee, that’s still 500 jobs.

And really, I think saving 10 jobs or 5 jobs is still fine, if that were the number.

No single person can be so good at a job that it warrants sending hundreds more out the door. Any company that thinks this should try an experiment: fire the executive, ask any employee at all in the company to take over the job for 1/20th the salary and see if the outcome is measurably worse.

comment 10y ago · link · parent

Executive pay doesn’t seem to follow the high-risk-high-reward scenario; they keep the “high reward” but see apparently none of the “high risk”.

A much more balanced system would be something like, for each executive:

- Your base pay is $51 million.

- If you FAIL at your task, YOU OWE THE COMPANY $50 million.

- If you succeed, you receive an extra $20 million. If you choose to split $15 million of this reward with employees in terms of stock however, your portion of the stock will be doubled.

That would put some skin in the game. And if a failing executive is forking over most of his millions back to the company, they could probably avoid quite a few layoffs. And if the executive doesn’t fail and has a direct incentive to share success with employees, the workers would be even more loyal to the cause.

comment 10y ago · link · parent

Changing the “rules” for severance just beforehand is about the slimiest thing they could do. It’s these small acts of disdain for the common worker that should really determine which companies are worth your time.

comment 10y ago · link · parent

It’s nice to see these things resolved in studies but I thought the outcomes were rather predictable.

In the case of security, it isn’t enough to have a policy-maker be passionate about solving a problem. Simply having a policy (read: obstacle to getting work done) will not automatically instill passion in everybody else to solve the same problem. Instead, people will find the least-effort solution to work around the obstacle! Basic password transformations and/or writing passwords down should therefore have been anticipated by any “security expert” long before recommending frequent password changes.

Now, imagine this alternate approach:

- Educate everyone on passwords, emphasizing the length. The idea is to get users invested in the problem of security instead of just making a policy.

- Set up the system to reject any password less than 25 characters.

- Aside from length, no character restrictions. In fact, multiple spaced words (“pass phrase”) are strongly encouraged. Employees are encouraged to make their passwords memorable nonsense sentences such as “chair bleak elf combination” and so forth. Mobile interfaces are then designed to make it easy to search dictionary words (because so many people will be using them to enter very long passwords). In other words, build the system to make it easy to do what people will probably try to do anyway but make it secure.

- Passwords are not required to change as frequently as every quarter. Maybe once a year.

- Systems are set up to periodically require 2nd-factor authentication mechanisms, such as one-time text messages or E-mails.

comment 10y ago · link · parent

One reservation I have about “optional” (and for that matter, “shared_ptr” and other objects that directly store their tracking in an object) is that object-oriented storage models do not necessarily make sense for tiny objects.

If you have a lot of optional data, or a lot of reference counts, etc. it can make a lot more sense structurally to gather the state of all variables in one place. For instance: if you have 10 optional fields in a structure, create a single set of 10 bit flags to track them all; the result is much smaller than 10 “optional” objects ever could be. The last thing you want is a ton of padding across millions of objects in your program; this starts to affect everything from efficient use of caches to maximum memory capacity.

It just seems a bit of a slippery slope; optional<> might start showing up all over the place as the One True Way To Optional things, without regard for the unnecessary padding and/or wrapping of data.

The only way to really do this “for free” is to have the compiler keep track of what was ever set, as Swift appears to do, keeping the tracking out of the memory or run-time footprint.

comment 10y ago · link · parent

I remember how long it took Microsoft to get this right. The first few versions of the Start menu and task bar items had a couple of pixels of space separating them from the edge of the screen. It was like snatching defeat from the jaws of victory, such a profound reduction in usability over what was probably someone’s arbitrary aesthetic choice.

comment 10y ago · link · parent

Since there seem to be an increasing number of “menu bar extras” (that are increasingly greedy about taking up space), it seems overdue to turn the Dock into another option for status bars.

Those useless Dock corners could be really nice for displaying square widgets that might otherwise want a chunk of the menu bar.

comment 10y ago · link · parent

At some point in history, plugs in the wall became so ubiquitous that you could simply buy a product and plug it in. Everything could depend on some standard voltage and current.

IoT devices need this kind of layer, frankly. The choice shouldn’t be between “connect to my router and do whatever the hell you want” or “nothing”; there should be a relatively simple and sane layer that is vigorously standardized and enforced.

For example: maybe every IoT device has to go through a sanitized DNS that allows only “.device” domains, and data is limited to some number of bytes per second, and power dissipation is limited, and there is a precise protocol for software updates that can be governed by an equally-standard protocol to control when updates may occur, etc.

We have a long way to go but it is possible.

comment 10y ago · link · parent

I’m not sure which is worse, that so many sites require “security” questions (emphasize on quotation marks) or that the questions are frequently paired with asinine password restrictions that prevent the construction of a strong-enough password in the first place.
1
505152
98