12,740 karma · joined Feb 17, 2008 (18y ago) · 2,917 submissions
comment 9y ago · link · parent
For instance, there is clearly extensive support for Touch Bar in many built-in Mac Apps, and the API that was created just for this one device is impressive. And yet, to see this extensive support for Touch Bar, you often have to select a “Customize Touch Bar…” command! The defaults expose very little, making the Touch Bar appear far less helpful than it could be. Also, it is really questionable to distract so many software teams to support this one feature, which probably kept all of those teams from implementing more obvious improvements that people actually asked for.
If I were managing this and I could see that hardware was going to be delayed, I would consider shifting more resources into the macOS to develop a series of “awesome” new features (heck, make this the year that you develop a real Finder). That way, although you’re announcing modest improvements to hardware, you can still say “look at all this great new stuff!” and boost the platform. Instead, they developed extensive software that a tiny fraction of their Macs can even use, while simultaneously putting it in a product that few people want to buy, further limiting its usefulness.
comment 9y ago · link · parent
Although, regarding Swift: you cannot blame them for Swift 3 breaking things because they have always been clear what was going to happen! It evolved a lot, and that was kind of the point; it’s one of the reasons there is no stable ABI yet.
comment 9y ago · link · parent
comment 9y ago · link · parent
comment 9y ago · link · parent
What makes a library sufficiently buggy? The set of conditions leading to a crash from an exception at run time may not be known to the library maintainer, even in a “good” library. The crash in your particular program, caused by the library, may not occur for awhile, after which you already depend on the API. With a normal error-handling scheme, this would still be OK because you could trace the error.
Programs can already crash in enough ways, without C++ introducing more. I can debug even severe memory errors in fairly straightforward ways (e.g. trap in debugger, or run "valgrind", or other instruments). I hate debugging a “crash” that is essentially C++ converting a trivial mistake from someone’s error-handling code into a fatal, untraceable run time error. When I see terminate() I know I have a problem. I essentially have to start using "grep" for every possible "throw" statement (hopefully finding something in recently-committed code), trying to match functions that might be related to what the program seemed to be doing when it died. And since C++ exceptions provide very little help when debugging, one has to go to extra effort to add information to every exception (which is useless if the exception at run time didn’t come from your own code).
C++ exceptions are just not “better”, like a lot of C++ changes. They can’t break crucial debugging mechanisms like stack-traces and expect the result to be better.
comment 9y ago · link · parent
comment 9y ago · link · parent
I can only guess that the symbols come from different fonts entirely (the Mac can perform such substitutions). The half-filled and all-filled variants may be easier for font designers to implement than the others so those two come from the chosen font while the rest come from a substituted font.
comment 9y ago · link · parent
Even if I do have a catch-all, what tells me that it is a "library" exception? They might have thrown a generic std::exception with a vague string description. They might have thrown an "int". At some point what I really want is proper language and compiler support for those boundaries so I can know exactly where an exception came from, and can trap it at those boundaries (or ask the library maintainers to do so).
comment 9y ago · link · parent
comment 9y ago · link · parent
I put some images here as examples, that use Markus Kuhn’s Unicode demo. MacTerm[0], iTerm2[1], and Apple Terminal[2]. As you can see, the box drawing is really messed up when fonts are relied upon in the other two terminals.
[0] http://www.macterm.net/images/BoxDrawingMacTerm.png
[1] http://www.macterm.net/images/BoxDrawingITerm2.png
[2] http://www.macterm.net/images/BoxDrawingAppleTerminal.png
comment 9y ago · link · parent
While you and I may agree that exceptions should be used for unexpected situations, nothing forces people to use them that way. A library programmer may have weird ideas about what warrants an exception. If my application appears to be functioning correctly, I should not have to risk crashing because of something that cannot be proven to affect my program in a significant way. My program may be trying to remain stable (e.g. a GUI for a user), and the user may well not care if my program has encountered an issue if it means throwing out their last 10 minutes of unsaved work. Some programs like CAD tools may run for days, and even partial results with logged errors can still be important to preserve in lieu of stupid crashes.
comment 9y ago · link · parent
This font does remind me of a lot of other useful symbols though, beyond normal box-drawing sets.
comment 9y ago · link · parent
comment 9y ago · link · parent
It ought to be possible to create impenetrable exception boundaries, such as:
- A compilation unit / file.
- Something identified as a “library” (perhaps based on namespace).
- The program itself.
If I want my “library” to automatically trap all exceptions that I throw, I should be able to. I shouldn’t have to worry that entire programs may crash because of mistakes from exceptions. Similarly, a programmer should be able to say, ONCE (regardless of any functions added in the future), “trap all exceptions from code in this file using this function” and be done with it.
And, if the language had been designed with this kind of visibility into exceptions, one would also have more useful information at the time they are trapped. For instance, obviously exceptions propagating all the way to main() have very little useful context but knowing that an exception is trapped in a file scope would be huge for debugging.
comment 9y ago · link · parent
The hard part is coming up with something that can’t be just as easily replicated. If somebody is already willing to just copy an entire paper and change only the author’s name, they could just as easily “re-publish” with their own key in a crypto system and you have the same problem of original attribution (sure it’s “signed” now, by the plagiarizer!).
The real problem in security is tracking time: how do you reliably know that event A preceded event B? In theory, you need a trusted time value, such that you can go to a server at any time and check it. For instance, a server where: given a value, it returns the time when the value was first recorded (ever-increasing). The value could be derived from content (e.g. hash of your entire paper, incorporating your own key).
comment 9y ago · link · parent
comment 9y ago · link · parent
I mean, imagine for instance that you simply had a band and tried to sell a few songs. And that you were an engineer. At some point in history, it would have made perfect sense to do this at Apple, with no overlap at all. Heck, I remember the ongoing lawsuits over the years from Apple Music just because of the name of Apple Computer at the time, and I think at one point they reached an agreement simply because Apple Computer was not going to be in the music business. And at the time, this seemed like a no-brainer, crazy to imagine Apple doing anything in music. And then, oops. So no, on a company-wide basis, no side project is really “safe”; companies can and do enter new lines of business, even things that seemed implausible at some point in the past.
comment 9y ago · link · parent
comment 9y ago · link · parent
Unfortunately, there are plenty of wasteful examples too. One seems to be pure laziness. There are programs, I’m convinced, that have some kind of gigantic VM in them just to ease porting efforts; probably emulating half a damned operating system just to save somebody a few weeks of coding (heaven forbid they learn something new about each target OS instead of just trying to make a quick buck). It’s disgusting on the desktop but even worse on mobile where every short-cut by a developer literally cost users money in data, battery life, etc.
comment 9y ago · link · parent
A huge problem is that people are not self-aware: they cause major problems just by being in the way (whether it’s car traffic on roads, or foot traffic on sidewalks, or traffic in shopping aisles, etc.). They desperately need a clue.
Maybe there is a technological solution: some sort of location-based system where you receive a message saying “MOVE; the people all around you have voted, and agree: you’re IN THE WAY”.
comment 9y ago · link · parent
Two buckets that come to mind: maybe you should have to specify that either you are developing an “app” or you are developing a “page”. And no page should be able to do things like create sticky-elements (not to mention a zillion other capabilities) because we all know some Obnoxious Clueless Ad Company will take about 13 seconds to start ruining your browsing with it. Anything identified as an “app” should be impossible to load in a normal browser, accessible only under a dedicated home-screen icon with a special sandbox, etc.
comment 9y ago · link · parent
Meaning that AT&T still profited from doing unreasonable things, and customers still suffered even if they received a refund. Businesses still do not have sufficient incentive to do right, they can still just wait until they’re caught with their hands in the cookie jar.
To change behavior, a penalty has to be really extreme: some amount where it clearly pose a massive risk to shareholders if the company were to exhibit the questionable behavior. Something like: “400% refund to all affected customers, plus a fine equal to 12% of the profits made illegally, plus a 5 year probation period where the company must submit to full audits every quarter (paid for by the company)”, etc.
comment 9y ago · link · parent
I used to like making small, quick changes in Xcode. Despite Xcode’s many quirks, prior to Xcode 8.x it was at least possible to be productive when using Xcode to edit text. Not anymore — now, if you don’t have an external editor then you will have a serious problem. Xcode lags in ways that I cannot seem to fix no matter how many settings I turn off. Something has started dragging the cursor in Xcode 8.x so much that it lags painfully far behind my typing, even for really small files. It......feels......like......this...... when......trying......to......change......just...... a......few......letters...... even......on......one......line. And I really wish that was an exaggeration. Worse, this even happens when you delete a character so you have to lag your way back to fix mistakes that you made.
I knew from the moment Interface Builder was “integrated” that Xcode would slowly grow into an unusable monolith, and I think it’s there. I simply cannot imagine a good justification for stuffing that much into one tool. It is possible and preferable to have a series of separate tools that still support some form of cross-communication.
comment 9y ago · link · parent
This doesn’t mean that I don’t integrate things, it’s just that I usually do so on my own terms. In my experience, 3rd parties are pretty bad at guessing exactly how I want two things to work together. I would rather see services remain open, with several options for tying them together, than have a monolith decide on exactly one way to do it that serves primarily their interests over mine.
comment 9y ago · link · parent
Remember that there are a ton of companies out there and you owe it to yourself to explore as much as possible before submitting to any one company’s ridiculous process.
Heck, years ago I used to look elsewhere just for being asked to format my résumé in a particular way.
comment 9y ago · link · parent
- 1. Test infrastructure is too complex. If I have to create a bunch of config files, obey a questionable directory structure, etc. before I can even write my test case, there is a problem. There should be very little magic between you and your test front-end.
- 2. Test infrastructure is too lacking. It is also a problem to have too little support. There should be at least enough consistency between tests that you can take a look at another test and emulate it. There should be clearly-identified tools for common operations such as pattern-excluding "diff", a "diff" that ignores small numerical differences, etc. depending on the purpose.
- 3. Existing tests should not be overly-brittle. Do NOT just "diff" a giant log file (or worse, several files), and call it a day; that means damn near any code change will cause the test to “fail” and create more work. Similarly, make absolutely certain when you develop the test that it can fail properly: temporarily force your failure condition so you know your error-detection logic is sound.
- 4. Tests should not be overly-large. Do not just take some entire product and throw it at your test, creating a half hour of run time and 40,000 possible failure points just because it happens to cover your function under test. It is vital to have a small, focused example.
If your test environment has problems like these, I fully understand the desire to balance time constraints against the hell of dealing with new or existing test cases, and wanting to avoid it completely.
And if you’re in charge of such an environment, you owe it to yourself to devote serious time to fixing the test infrastructure itself.