Better HN
topnewbestaskshowjobs
Log inSign up

makecheck

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

Submissions

comment 9y ago · link · parent

Apple clearly did make major investments in the Mac, it’s just that their investments were not even relevant to most Mac users, and not even apparent to everyone else.

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

I generally agree about Xcode, I have since demoted it to essentially a build engine and use external editors, etc. to actually do work.

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

I don’t necessarily mind paying the cost once but since I tend to refactor applications into multiple utility applications (separation of concerns, crash stability, security, etc.) this means each sub-bundle pays the cost too. At the moment I have not found an obvious way to avoid this, aside from somehow hacking all of them to symbolically-link to the same copy of the Swift libraries or something. Therefore, instead, I stick with Objective-C.

comment 9y ago · link · parent

I found that on macOS, refactoring even a tiny Xcode project to use Swift added 10 MB of libraries to the resulting bundle. The OS needs to start including a stable set of Swift frameworks by default so that Swift-based programs do not require users to download much fatter binaries.

comment 9y ago · link · parent

A boundary might not be enforceable in an absolute sense but the language should be able to tell when the boundary is crossed. An exception caught in main() that the compiler could automatically tag as having crossed a particular library or compilation unit would be infinitely more useful for debugging than what we have now.

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

I know exactly what boundaries are lacking, that is what led to my original comment. And yes, functions can do whatever they want. Programmers expect special language features to be more useful than the alternatives though! If a function does call abort(), I can actually see the call, along with a stack trace; with source code I even know why the code exited. Odds are good that the abort() came from an assert() macro, giving me control over which builds can unexpectedly exit. Exceptions give me none of that, and introduce ways for valuable state to be totally lost in the process.

comment 9y ago · link · parent

Not sure, that's from iTerm2. :)

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

If an exception violates its (function's) contract, it can terminate immediately and not reach even a catch-all. That contract can be inside a function I can't even see.

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

I'd considered adding at least a low-level preference to disable box-drawing overrides, and I still might. With the overrides though, you do not have to install any particular font to have accurate line-drawing, and you can see lines even when choosing a font that might not otherwise be designed for line-drawing.

comment 9y ago · link · parent

For Mac, only.

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

You are making huge assumptions about how people use exceptions, and huge assumptions about the goals of a program.

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

I found line-drawing characters to be so inconsistent in fonts that I implemented them directly in my terminal emulator’s rendering code. For example, when I see a box-drawing symbol, I bypass the font completely and draw lines myself so that the result is guaranteed to align consistently with other cells and guaranteed to touch adjacent cells without any gaps from font layout engines. It’s amazing how much nicer it can be when you do this.

This font does remind me of a lot of other useful symbols though, beyond normal box-drawing sets.

comment 9y ago · link · parent

Simple: the meaning of the exception is known only to the guts of your library, and it is being automatically promoted to “catastrophic failure” when it could actually be a very trivial problem or at least something that you could recover from gracefully. Instead, because you potentially forgot an exception clause somewhere, my entire program dies in an unpredictable place? That makes the entire model ridiculous.

comment 9y ago · link · parent

The entire concept of an unending exception chain seems flawed to me, and having to carefully annotate or check everywhere is still error-prone for programmers.

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

Since Copy and Paste is too easy and compute power is now ubiquitous, there need to be new rules that include generated data within publications: something constructed via computer from secret keys, that can be verified. (The minimum key size or other complexity measure would be required to increase over time, as always, to guard against easy cracking.)

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

When I started my career I ended up in Austin, Texas. At the time, I didn’t know much about the place (and it was much smaller than now) but it really is a serious tech hub. Even at its current absurd rate of growth and increasing cost of living, it is more affordable than the Bay Area and has enough else going on that it isn’t an exclusively tech climate. Politically, Austin is like a blue bubble in a red state so it is more California-like in that sense too.

comment 9y ago · link · parent

Most built-in Apple apps can now be hidden in the normal way.

comment 9y ago · link · parent

No topic for a side project is really “safe”, which is why I hope most laws focus on what you do for a company and not what your company might ever do.

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

I suspect that as early as the next version, they’ll add tactile feedback to the bar; they already know how to do it, they probably just made a judgment call to release on time. With that addition the bar would feel essentially like a keyboard and solve the biggest issues I think.

comment 9y ago · link · parent

Not all uses of extra resources are bad. A “good” use of CPU or memory is any added safety such as guards against memory corruption, extra checks at run time, cryptography, etc. It may also be that in order to add sanity to web browsing, E-mail, etc. you must devote cycles to spam detection or removal of other unwanted content. Some of these things are only being done now because computers are finally good enough.

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

My frustrations are mostly with people, frankly.

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

There’s too much potential for abuse in web technologies; it’s past time for web browsers to clearly divide their capabilities into higher-level buckets that have restrictions.

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

OK, so it also says the unauthorized customer charges were usually $9.99 per month, and the average refund is $31 per customer. So any customer that didn’t notice for more than 4 months is still losing, before you even take into account whatever else their customers might have needed an extra $10 a month for in life (like paying different bills, or buying food). AND, AT&T surely received plenty of extra money from whichever 3rd parties were asking them to do this, money that was probably not covered in any fine.

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

While they don’t really list it as an official product anymore, to this day they produce test builds of OmniWeb 6.0:

http://omnistaging.omnigroup.com/omniweb/

comment 9y ago · link · parent

Unfortunately, the real question is why it’s so hard to accomplish any work in this IDE.

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

I have a feeling that most of the population will think this is an improvement but personally I try to avoid as much “integration” as possible. I don’t need the universe tied into my E-mail, documents, etc.; I just want tools that can focus on one thing and do it well. The more connected everything is, the more damage you can do by accident (“great, I just E-mailed my entire list of connections via auto-complete and I have no idea how that happened!”, or “why am I receiving system notifications every 10 minutes from the CEO of FoobarCo?”).

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

If you Google this word, one of the definitions is “take or acquire in an unfair or clandestine way”.

comment 9y ago · link · parent

I imagine that a continuously-running backup process could capture anything they do. There’s not really a way for them to “clean up” anything.

comment 9y ago · link · parent

Sometimes you need to prioritize yourself. This is one of those times: tell them “no”. Assuming they aren’t robotic enough to hang up on you immediately for refusing, politely educate them on how no other company on Earth has asked you to do anything remotely similar to this, and suggest that their process is way out of line. If they won’t listen, send a polite letter to someone else (heck, even the CEO). They deserve a clue, at least.

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

It doesn’t make sense to write no tests at all but I understand this sentiment based on problems with testing that I have seen before:

- 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.

1
424344
98