12,740 karma · joined Feb 17, 2008 (18y ago) · 2,917 submissions
comment 10y ago · link · parent
Test suites should not just be thrown together, where every test is a "diff" of a giant log file! You do NOT want to be constantly fixing “tests” that “fail” due to trivial differences. Ensure that your code can completely expose all relevant state for one feature so that you can write precise checks and ignore any other output.
There should be no compile-time options (like #ifdef) that are not automatically built before every commit. Developers change things, and they have to know exactly what can break by doing so (especially with languages like C++, where a tiny change can cause true chaos). Put another way, don’t set yourself up to discover problems weeks from now at the worst possible moment; build defensive code and infrastructure.
comment 10y ago · link · parent
- The only thing you need in order to spam somebody is their address, and there is no real defense aside from performing server-melting numbers of computations to analyze E-mails. The lack of authenticity (above) is also a factor.
- E-mail was never really designed for many of the things it is now used for, requiring a lot of tricks for it to work at all. This also contributes to inefficiencies in processing E-mail data that a different protocol/format would avoid.
- These deficiencies have led in part to a lot of centralization that is not desirable. For instance, it would be preferable if people could easily run their own E-mail servers but due to the chances of spam, etc. a lot of E-mail will not be routed correctly if you do.
comment 10y ago · link · parent
There needs to be more work separating a critical base set of features from the rest. There needs to be more separation of the fancy from the functional (i.e. instead of requiring some bizarre mixture of JavaScript support in order for anything to look right, you have two choices: “turn on animation support” or “turn off animation support”, or some such division).
1384.
Replace booleans with two-cased enumerations(narf.pl ↗)
2 points · by makecheck · 10y ago · discuss
comment 10y ago · link · parent
It’s really silly to see applications have trouble understanding data. Even on macOS, where "file" is installed, the graphical interface sometimes fails to open/preview something that the command-line "file" describes perfectly (i.e. if it’s really text, just show me the text).
comment 10y ago · link · parent
We must rethink infrastructure to the point where the only data that we transmit is data that is inherently useless after a time. If I do something like revoke my key, it should be impossible for anyone to further use that data. Expiration dates should be baked directly into protocols so that revocation of keys and expiration are the same thing: either I revoke my key myself, or my software revokes it for me but no one else (and their buggy or insidious software) gets to decide how to respect the expiration time.
comment 10y ago · link · parent
Even the concept of a focus-stealing message is an anachronism. We saw it a lot in software from the 80s and 90s but those machines were not as powerful. Today, we know people have tons of stuff to do with their computers and that they are always multitasking; the idea that any single message could be considered important enough to stop the user from doing anything else is misguided.
If I turn on my computer, or wake it from sleep, or start working on it, I have stuff to do. If a message is going to demand my attention, it had better be saying “your laptop appears to be on fire” and not “Windows 10, oh please oh please!?”.
comment 10y ago · link · parent
comment 10y ago · link · parent
At what point do people start auto-hating solely because of the way Windows 10 is being advertised: not wanting to upgrade, not wanting to learn more but simply wanting to make it all stop?
comment 10y ago · link · parent
For example, at one point, the way you called a multi-dot function actually mattered (not sure if this persists in the latest Python releases). If your function is like "os.path.join", the interpreter would seem to incur a cost for each dot: once to look up "os.path" and once to look up "path.join". This meant that there was a noticeable difference between calling it directly several times, and calling it only through a fully resolved value (e.g. say "path_join = os.path.join" and call it only as "path_join" each time).
Another good option is to use the standard library’s pure-C alternatives for common purposes (containers, etc.) if they fit your needs.
comment 10y ago · link · parent
The main problem is the idea of running compiled programs unmodified: programs that had an entirely different OS target when they were built. If this is what Microsoft is doing then they’ve invented an environment that could not possibly have been anticipated by those who built the original programs. Anything could happen. And worse, it’s not clear who to send the bug report to when things go wrong.
comment 10y ago · link · parent
Generally, there is a gap between what’s documented, what was thought to be true, and what is. At some point they will produce behavior that just doesn’t match what compiled code expects. For how many libraries, applications and combinations thereof will they deal with this?
And then there’s maintenance. This is a scary kind of layer to be responsible for; future Microsoft employees will have a hard time doing anything to this layer without risking new misbehavior so we have to trust that they either know what they’re doing or that they won’t touch anything.
I’m not saying that they weren’t clever to try this, or that there isn’t a way to pull this off successfully. I do think the odds are against them though. Or maybe, I just missed something about their implementation that makes this a lot less risky than it seems to be.
comment 10y ago · link · parent
Much like companies should try to replace their own products (before a competitor does), infrastructure teams need to force “predictable” upgrades in a controlled environment on a regular basis. For example: look at your dependencies, imagine what upgrades are likely to be required in the near future, and try making those upgrades on test systems to see what could go wrong.
That approach achieves three things. One, since you’re not in emergency mode and you’ve used a test environment, any problems that you do uncover are not going to cause a crisis. Two, if you do this semi-regularly then you’re likely to see only minor issues. Third, exploratory upgrades give you a lot of time to fix problems (whether it’s time for your own developers to make changes, or time to wait for an external open-source-project/vendor to make changes for you).
comment 10y ago · link · parent
If Apple provided any other way to put content on the device that you purchased, then maybe Apple can run their own store any way they please. In reality though, you’re not choosing the App Store over other stores; you have to use the App Store. This allows Apple to put itself in the middle of a transaction that arguably it has no business being involved in. If a person wants to do X with the device that he or she purchased (in this case, installing a new version of Spotify), there should be a supported way to do that even if Apple does not want to bless that version in their own store.
comment 10y ago · link · parent
We MUST reach the point where every provider is incapable of knowing exactly what is hosted. In other words: you pay me money for service X, I provide X, and anything outside that simple agreement is out of scope.
Concurrently, we can address the likely reasons to want a “takedown” by working on new authenticity technologies: rather than trying to “remove X from the Internet”, make it so that any copy of X can be compared to a signed version. This would train people to scrutinize what they read, much like they sort of know to scrutinize non-padlocked web site forms.
For instance, given any snippet of text X, perhaps a browser has a way to determine if that matches any signed statements from the quoted person. And then, if you set up a smear web site claiming that I said X, anyone can use my official signing key to see if I actually published statements that match your text. If what you quote can be verified then the browser could indicate that the information appears to be accurate; otherwise, the browser could warn that the content is unverified. This concept could be extended to other forms of media as well.
In order for much of this to work, we need to be able to decentralize all encrypted content so providers can’t even easily guess who hosted something (like the firing squad: not every shooter has a bullet but somehow the deed is done). If the volume of traffic might also be a hint, then winnow and chaff the volume across providers to the point where you can’t even tell how much real content is present.
Obviously this anonymity would mean that we can no longer use sledgehammers to kill ants, for some definition of $UNDESIRABLE ants. To me, that is not only fine but downright crucial: put the burden/cost of proof back where it belongs. Or better still, let these people learn to do the digital equivalent of changing the channel: if you don’t like what a web site said then don’t visit that web site!
comment 10y ago · link · parent
I can only assume that this was used to find other applications. Still a fragile dependency; for example, sometimes I put things in "/Applications/Utilities" but sometimes I put them in "/Applications", which means there is no single parent directory that is guaranteed to hold everything. And even if that weren’t the case, the OS has always let you run applications from anywhere you want.
Therefore, it has always been possible for apps to break when doing this, and they were just lucky if they ran on a system where it worked. It sounds like in Sierra it will just be much more likely to break.
comment 10y ago · link · parent
For instance, maybe there is data mining to be done on issues to auto-aggregate them so that you can still make some sense of the list without manual tagging and without relying on each submitter to choose sensible categories.
Maybe there need to be open-source libraries aimed at unclogging issue systems, such as a system for in-app bug reporting.
Maybe issue-tracking systems should auto-upgrade priorities on stale issues, or auto-close them based on lack of activity from the submitter.
comment 10y ago · link · parent
Keeping photos out of movie theaters might sound noble but this feature could be hacked by anyone who has a real problem with being photographed.
Then there’s the fact that the simpler implementation is less likely to have bugs. Once there are 12 ways for the camera to be “off”, how many sources of bugs must be checked to be sure that the camera won’t turn off when it’s supposed to be available, or vice-versa?
comment 10y ago · link · parent
The ONLY choice that looks like a button in the new version is “Upgrade Now”. The other choices use some weird link style that is not even underlined (and yes, people will overlook this).
There is no reason to invent a new button style, Microsoft. Just create 3 buttons. Seriously.
comment 10y ago · link · parent
For example, single-repository environments may require you to check out everything in order to do anything. And frankly, you shouldn’t have to copy The World most of the time. Disk space may be cheap but it is never unlimited. It’s a weird feeling to run out of disk space and have to start deleting enough of your own files to make room for stuff that you know you don’t care about but you “need” anyway. You are also wasting time: Subversion, for instance, could be really slow updating massive trees like this.
There is also a tendency to become too comfortable with commonality, and even over-engineer to the point where nothing can really be used unless it looks like everything else. This may cause Not-Invented-Here, when it feels like almost as much work to integrate an external library as it would be to hack what you need into existing code.
Ultimately, what matters most is that you have some way to keep track of which versions of X, Y and Z were used to build, and any stable method for doing that is fine (e.g. a read-only shared directory structure broken down by version that captures platform and compiler variations).
comment 10y ago · link · parent
The browsing experience was almost unbelievably inefficient; I found myself scrolling through handfuls of games when I should have been able to rule out dozens. Apple likes to show you “only the icon” most of the time, which is really quite a terrible way to browse; you keep having to go in, out, in out, to learn anything about what’s in the list.
I ended up buying nothing at all because I couldn’t even tell if there were games that supported buy-once without any of the usual bullshit gem-buying tactics. Despite having simple goals, the App Store just failed me.
comment 10y ago · link · parent
Part of the problem is that if someone actually does buy a “gem bag” or whatever they’re selling, it amounts to a single-vendor gift card (and not one that can buy very much).
I think it would have been much cooler if all gems were tied to the entire platform, and they worked in any game. For example: if you play game X for awhile and earn some gems, maybe that time spent can be used to “buy” progress in game Y. The platform could enforce some minimum time limit, e.g. no one can develop an app that rewards gems at a rate greater than some number per hour up to the time since the app was first downloaded.
And if it is possible to purchase gems, they should only cost money when they’re used. That way, you don’t have to buy a “bag” of 300 gems that you may never entirely use; instead, you can divide your rewards among all the games you like (including new games that come along).
comment 10y ago · link · parent
Terrorist? New legislation comes to the floor immediately with the aim to curtail this liberty or that one. Not only that but everyone seems to actually show up, and there is enthusiasm about voting.
New Supreme Court justice needed, the appointment of whom is literally the senate’s assigned job? Nah, we’re gonna drag our feet for months and months and months. And we are never going to actually get around to doing one of the few things that we are clearly assigned to do. And there will be no repercussions.
I’ve never had a job in my life where I didn’t have a manager checking in at least every week or two to see what’s up. I’ve never had a job where I wouldn’t have been fired if I refused to do something for months. For congresspeople, there should be provisions that require them to do every assigned task in a very clear time frame; any who “selectively” do their jobs should be fired.
comment 10y ago · link · parent
Suppose I build a road. I would also have no idea what people are transporting on that road: maybe they’re moving drugs or sending stuff to terrorists, as you say. And it would be absolutely ludicrous to hold the road-builder in any way responsible for activities on the road.
At some point, a service is just a service and it should remain firmly bounded. Yes, bad people exist. No, we shouldn’t screw with every little thing just in case bad people use those things.
comment 10y ago · link · parent
Over the years I have encountered people arguing passionately about things that, as it turns out, they did not fully understand. It is fine to not understand things but if you’re new to a language/team, you should be saying things like “shouldn’t we do X?” or “I read on [site] that X is better”, and not act like you have found the One True Way to do everything.
Ultimately, you need to communicate some experience/example showing why it is important to do X, or you must be in a position of authority where you can say that you choose X because there is no clear decision among the alternatives.
comment 10y ago · link · parent
I suspect the reason is that they are both strong colors that compete for attention: black-on-white is high contrast and red is a color that generally “jumps out” from the page due to the eye’s perception of red. To keep the colors from competing, one of the text colors should be softer (and if they must have “red”, they should soften it to something that is closer to pastel or pink).
comment 10y ago · link · parent
comment 10y ago · link · parent
We have Unicode but most of its symbols are a pain to generate on conventional keyboards.
We have touch-screens but desktop computer keyboards don’t offer them and software on phones/pads still tries a bit too hard to emulate a conventional keyboard layout.
Imagine if all standard keyboards had touch displays on the side to quickly flip between tables of related symbols, optionally with some context-sensitive mode? Then, instead of having to use creative ASCII tricks to make it “simple” to describe what you want, you just do it through your input device.
Ultimately I think markup languages will have to distill their features down to a few structural elements, and rely on Unicode (and easier Unicode input methods) to handle what is currently being done with ASCII hacks.