Better HN
topnewbestaskshowjobs
Log inSign up

makecheck

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

Submissions

comment 11y ago · link · parent

I never understand why parents push so much responsibility to school administrators. When something is not happening at school, during school hours, related to education, why is the school expected to do anything at all?

If use of a phone app causes interruptions in class, you respond by setting rules in class such as "put your phones away". Otherwise, it's COMPLETELY outside the boundaries of the school.

The police shouldn't be involved unless a charge has been levied by someone (e.g. "this person took pictures without my permission"). Bringing them in did nothing to help the children, it only further increased exposure. Oh, great: the police are going to "try to identify" the children in the naked pictures; well, how, exactly, without making the situation far worse for everyone?

Parents need to be parents. Train children about the risks of trading pictures or anything else of a personal nature (pictures are not guaranteed to be seen only by the person you send them to, pictures can be used as blackmail, etc.). Show kids why they should think twice before doing these things. And yes, commend them for the sensible steps that were taken, e.g. guarding things behind a password instead of leaving them completely in the open.

comment 11y ago · link · parent

Positioning of buttons on iOS is a big problem.

For instance, when on a phone call and you show the numeric keypad, there is no sane reason to make the "Hide" function a microscopic text label that is a finger-width away from the HANG-UP action. Functionally, these actions should be on opposite sides of the display from each other. I don't even think they placed it there for aesthetic reasons, since the Hide "button" just looks like an ugly hack.

Then there's positioning of keyboard keys. If I had a nickel for every time I deleted a character while trying to finish a word with "m", or every time I accidentally committed an action with incomplete text because of that stupid blue key! Instead of moving dangerous actions to the opposite end of the screen where they belong, too much effort was spent trying to emulate the precise layout of a real keyboard. I don't think users would complain at all if the "action" key was instead in the top-right corner, and if "backspace" was in the top-left corner.

The scrolling calendar widget is also a nasty example of poor positioning. Long after it was "improved" in iOS 7, I still can't create a single calendar event without doing the accidental-screw-up-date-instead-of-scroll action, usually with "helpful" automatic "corrections" for my change such as synchronizing the From and To times to both reflect my accidental date-change. Or if I'm really lucky, I don't even notice that I changed the time.

They need to step back and realize that design is how it works. Their interfaces are incredibly error-prone right now.

comment 11y ago · link · parent

It is one of the easiest changes to adopt though. I added a "from __future__ import print_function" to 2.x code and was able to switch file-by-file without a problem. As a function, occasionally it is more verbose but it is also a lot more flexible (they can add anything they want as new keyword arguments) and it's compatible with any other feature of the language that would use a function.

comment 11y ago · link · parent

Arguably this is a feature revision control systems should have; a kind of "trivial change" marker to filter certain annotation/log entries by default.

comment 11y ago · link · parent

Had Python 3 stuck to relatively simple changes like converting to the print() function, making a few libraries more consistent, etc. then it would be closer to the C++ compatibility-breaking changes proposed here. Instead, Python 3 went far beyond things that were easily convertible and it isn't surprising that adoption was greatly slowed.

C++ has atrocious defaults, where you have to add a bunch of keywords and do all these things just to make the simplest classes do the "right" thing. It's long overdue for some new behaviors.

Adding things like "override" to existing code has been an absolute joy. It has already prevented errors during maintenance in projects at work. It is well worth a few days of ugly revision control logs.

There are lots of ways to smooth a backward-incompatible transition for C++ on a larger scale. For instance, they could enable it on a file-by-file basis by having some new declaration like "using c++17;" (or better still, require only the old, out-of-date files to add this declaration in order to continue compiling).

comment 11y ago · link · parent

I think "grace periods" should be a lot more common in software. Not every issue is the user's problem, and not every problem requires a drastic response.

For instance, they could have:

- Quietly noted the issue in a file somewhere, waited 24 hours, and checked again.

- If the problem was still present after 24 hours, they could have made the software discreetly submit a problem report to Apple (but still launch and work correctly).

- After 48 hours, they could issue a background notification to the user indicating that a problem has been detected in the program and to “please check for updates on the App Store”; but again, continue to work correctly.

Or in other words, there were only about a half dozen more reasonable things they could have done that didn't involve an Amazonian break-things-immediately type of response.

comment 11y ago · link · parent

The problem is, new users are "new" for a few weeks or months at most. After that, they join the massive groups of people that have to spend years using tools.

New users should be given tutorials, online help or other kinds of training that successfully bring them up to speed. Those kinds of materials are then cleanly separated, and they get out of the way forever once the user is acquainted with the system.

comment 11y ago · link · parent

I worked as an engineer at a place that not only had free soda but one of the multi-flavor fountains like you'd see in a fast food place. It was initially quite cool; you could come in with your cup and just fill up whatever you wanted.

Of course, soda syrup costs literally pennies. Food places pay more for cups than soda, and since the engineering group wasn't buying that many cups (people used their own) the cost was essentially wrapped up in the machine itself.

Now comes the true stupidity. To "cut costs" they stopped refilling the soda dispenser but they kept the machine and even left it plugged in. It became a glorified ice dispenser (when the break room already had a different ice dispenser), consuming electricity. It had a bunch of now-useless fountain dispensers on the front of it.

Think about that. The company decided not to pay the pennies it would have cost to make employees happy, and elected to continue operating a machine that didn't have any reason to exist without the soda. The beginning of the end was signaled loud and clear to employees and I saw a marked drop in giving-a-crap-about-things after that point. The company is not around anymore, long since divided into pieces and sold to the lowest bidder.

comment 11y ago · link · parent

If you want to communicate with a person or organization in ways that don't involve online chat, you have a variety of standard ways for doing so:

- E-mail address

- Phone number

- Mailing address

What is it about chat protocols that has resisted convergence on anything as remotely standard as these other methods? I mean, I could tell somebody that I spray-painted hieroglyphics on my house and that "there are 3 shipping companies in the world that know how to find my house using hieroglyphics so please ship through one of them", yet somehow my "address" has remained the sensible way to handle that problem.

The problem isn't Slack or IRC or any other client, it's that we have any choices at all. At this point we don't need choices for chat protocols any more than we need a choice of ways to put an address on a house. The technical community needs to start loudly criticizing clients that aren't converging on some standard, and standardize more and more behaviors every year until it really doesn't matter what people are using.

comment 11y ago · link · parent

Is this not a good application of std::weak_ptr<>?

Typically if you're observing a value, you also want safety against dangling references. If the owner destroys the object, your copy of the pointer should be cleared out so that you can't accidentally look at the original.

comment 11y ago · link · parent

It's not just the length of the initial contract, it's the lack of a sane "diff" system.

Even if someone is willing and able to read a 44 page contract the first time, the next time version 1.0.1 of something comes out you are generally given a 44.5 page contract to re-agree to. "Somewhere" in there, they changed something; good luck figuring it out. So even if the version you read gave you permission to sue, the amendment that you clicked-through-in-agreement later may have given away that right (an amendment they probably made because somebody sued them).

We solved this type of thing years ago, the solution just hasn't made its way into legalese: use revision control. I wish that large documents were:

- Publicly revision-controlled with a system that has clients everyone can easily use (i.e. no arcane commands, and push-buttons for the most common things like "compare to last version").

- Public accountability for the entire revision history of every single line. If somebody wants to add [Horrible Clause A] two months after I first signed it, then I get to know exactly who made the change and if I want to I can take a look at other changes they've made to other documents.

comment 11y ago · link · parent

The thing is, Microsoft's updates shouldn't be these all-encompassing, UI-destroying messes. They should be sensible, useful, smaller updates. If there is any component that stands in the way of small, easy updates, a better-designed component should be created and made available as a free, opt-in update (e.g. state that the older version is unsupported and that all major updates will only occur in the new-better-designed-incrementally-updated design).

comment 11y ago · link · parent

Exactly. Startup or wake-up is the worst possible time to start a bunch of new processes because it is the one time that the user has explicitly told you that they want to start using their device immediately. Virtually any other time -- even a RANDOMLY chosen time -- would be less likely to be in the user's way!

Microsoft is far from the only offender of course (a PlayStation comes to mind, for example) but system designers really need to start using their brains on this.

comment 11y ago · link · parent

Also discussed here. https://news.ycombinator.com/item?id=10475272

comment 11y ago · link · parent

I think their “aren't we great for doing you this favor?” attitude about the 31 day downgrade is really weird. Last I checked, disks don't have an expiration date that is shorter than milk, and most people appear to have more space than they know what to do with. Why, then, is there any period after which an archived OS should be forcibly removed? It should stay there as long as you want it to.

The older OS is paid for. It represents a big investment. And, there is no way that every possible problem will be magically found and resolved within 31 days. What if it takes you 2 months to boot up a game that is apparently broken on Windows 10, for example.

comment 11y ago · link · parent

At the end of the article, his explanation of how this used to “work” is based on what developers were once paid. Cost is a tricky thing to sum up because if you state just one thing (monthly rate, as he did), it's easy for other costs to be left out.

It is entirely possible to pay less for the same talent. My thinking is that he got lucky though.

If you start out underpaying, you can still overpay thereafter. Here is a quick top-of-my-head list of major software costs that can come up (not too far) down the line, after paying initial development wages:

- Documentation turns out to be nonexistent or written in a way that is hard to decipher, or wrong. (This seems more likely with outsourcing because heck, you didn't specify that you wanted the code documented, and it'll take hours to add all that, plus you might pay more later if it's not there...)

- Serious bugs are lurking that require a little time to discover.

- Although the system demo'd well with initial tests, it collapsed when asked to scale slightly; e.g. it exposed a bad choice of algorithm that blew up with large N. Sometimes bad algorithms from inexperienced developers can create a catastrophically large amount of refactoring work.

- The developers took short-cuts and exposed the company to a legal minefield (e.g. copying something or injecting patented or GPL'd code without asking), rendering their working and brilliantly-implemented solution unusable. Now what...even if you can argue that it's their fault, you're probably going to be paying lawyers for something (defense or lawsuits).

- The system does seem to do what it's supposed to do but it turns out you didn't specify it quite right and it integrates poorly into your environment in some way. So, great: it's done, it's here, it runs but you still aren't getting anything out of it because you have to spend more time and money to bring it to a usable state internally. Typically this doesn't happen with internally-developed systems because the people are familiar all along with the idiosyncrasies of the environment.

Even at a cheaper hourly rate, how many more times are you going to go back to the provider (just a few more hours at a cheap rate to fix the next problem...) before you've gained nothing? Much less the fact that you have zero actual employees who understand what you bought so if the provider ever goes out of business or triples its prices, you incur another "new" cost: hiring or redirecting your own people to figure out this thing that you bought and now have to maintain yourself.

comment 11y ago · link · parent

I would say it never really has worked; there is no "anymore".

One problem in outsourcing is the thinking that programmers are somehow easily replaced; the "just find 'a' developer" idea, with little to no thought put into whether it may matter if the chosen team has any idea what they're doing. Two anecdotes. Years ago I was given such a team, to maintain a system primarily written in two different languages; the manager in charge gave me two guys from the other side of the world who were to be "taking over" the project despite not knowing how to program in either language, and there was no arguing this point. On another project, a resource from far away was graciously donated to me to help with a C++ project; I later realized he had chosen to recreate several container classes in C++ as if he'd never heard of the STL.

Another problem is the fundamental misunderstanding of culture. Managers in the U.S. seem surprised when they encounter wildly different behaviors overseas (gee, it's almost as if they had hired someone from a completely different part of the world!). For instance, I have encountered remote groups that are astoundingly good at self-preservation, who will basically change their minds and do whatever they want at the last minute to prop up their team at the expense of your project. Individuals, too, may have side projects that they care about much more than anything you have asked them to do.

comment 11y ago · link · parent

It's interesting that a new-ish search engine can even survive, since so many have died.

I remember the old days when (say) Apple had a tool on Mac OS 8.5 that would send a query to many different search engines. There were enough of them, and they were all iffy enough, that you couldn't really just pick one search site to see good results.

comment 11y ago · link · parent

Well my first question would be (and this doesn't seem to be the first question that "justice" systems ask), what situations are these kids in?

I'm not saying that the situation completely excuses a severe punishment but when you looked at stories like these, did you even wonder:

- Maybe this kind of robbery has happened to them, or to their friends, family or neighbors. It's not hard to imagine someone turning cold after seeing bad things happen to loved ones.

- Maybe they know something that the store owner did and it was a kind of "mob justice". (I'm not justifying them shooting the guy. Yet, based solely on the knowledge that the owner was begging for his life, you don't know enough about the situation to understand why the kids shot him.)

- Are these things happening because of other factors? Economics are frequently a reason. I can imagine giving a lot less of a crap about society if I was dirt poor and I couldn't see any way to make it better.

I think the first solution they should consider is if they can make the perpetrator's life better. Prison makes it undeniably worse; ironically, if being poor got them into prison, they'll probably be even worse off after prison (what with people refusing to hire convicts and such).

comment 11y ago · link · parent

I actually don't understand prison sentence lengths at all.

1. Why is prison time measured in years?!? I can't even list all the things I've done in the last year. I can't imagine being confined to a few square blocks for ten or twenty or thirty times that length of time, especially when it does not only cause loss of freedom (which was supposedly the only intent) but a greatly reduced quality of life (e.g. endangerment, and even small things like having worse meals all the time).

2. Why is prison even considered for young people? People do stupid things when they're young; they don't always know better. You can't tell me that someone who's 20, who's barely had a chance to live alone for "years", should suddenly be told to spend "years" living with strangers for (most likely) some petty crime. Great recipe for development there.

3. Why do we have bail? Oh, you're rich? Great, leave; otherwise, stay in jail until your trial. And since the system is so damned efficient, who knows how long that will be. Oh, and those in charge occasionally forget about people[1] after they're detained.

4. Why isn't community service the number one penalty for most crimes, especially minor offenses? And, why isn't the bar being significantly lowered for what constitutes a minor offense?

[1] http://www.cnn.com/2015/05/05/us/california-forgotten-prison...

comment 11y ago · link · parent

Why didn't they call it YouTunes? :)

This move is good in general. When big sites offer ways to pay, I think the idea becomes more mainstream and it'll be easier for new services to actually charge enough to survive.

comment 11y ago · link · parent

As somebody who encounters a dozen cyclists every day, it DOES matter and the "do whatever we want" behavior of many, many, many, many, cyclists is a big problem.

Some of the stop signs on my path are 5-way, which are already screwed up enough without having to guess which random direction a cyclist will coast from (usually endangering pedestrians and cars alike).

When I am trying to turn right at a stop sign, a disturbing number of times a cyclist will approach from somewhere and decide to coast around the corner while I am turning too. Then I have to worry about seeing him when he should have STOPPED.

I also see cyclists turn from pretty much anywhere they want. They don't use hand signals, they don't switch to the driving lane, they just randomly hang a left in front of you while you're approaching a stop.

Cyclists expect to share the road, they need to obey the rules. It really can't be any simpler than that.

comment 11y ago · link · parent

I didn't say the function would be in a dynamic library, although you're right that this would work if it was.

A statically-linked function would have to be referenced directly in the executable somewhere.

comment 11y ago · link · parent

Heh, and their samples even use "The quick brown Firefox jumps over the lazy dog". :)

comment 11y ago · link · parent

Although I've never had to start from scratch, the Qt projects I've maintained have been prone to crashing.

Maybe the Qt apps have legitimate bugs but the fact is that native environments like Objective-C, and most likely this JavaScript environment, would both handle those issues very cleanly compared to Qt.

comment 11y ago · link · parent

I'm actually very surprised this hasn't happened years ago. The power of Objective-C's runtime has always made this pretty straightforward.

Apple can defend against unauthorized calls to even runtime-composed method names though. I can think of a few ways.

They could move as much "private" functionality as possible outside of Objective-C objects entirely, which requires that you know the C function name and makes it obvious when you've linked to it. This should probably be done for at least the really big things like obtaining a device ID or listing processes.

Even if they stick with Objective-C, they could have an obfuscation process internal to Apple that generates names for private methods. Their own developers could use something stable and sane to refer to the methods but each minor iOS update could aggressively change the names. If the methods are regularly breaking with each release and they're much harder to find in the first place, that may be a sufficient deterrent to other developers.

They could make it so that the methods are not even callable outside of certain framework binaries, or they could examine the call stack to require certain parent APIs. At least that way, if you want to call a private API, you have to somehow trick a public API into doing it for you.

And, I think Apple does say somewhere that developers shouldn't use leading underscores for their own APIs. They could hack NSSelectorFromString(), etc. to refuse to return selectors that match certain Apple-reserved patterns in all circumstances.

comment 11y ago · link · parent

I think that the ability to filter out content is a basic right that should be built-in to any Internet application, not forced to be an "add-on" and vilified by being seen as synonymous with attacks on the advertising industry and content providers.

And since regexes on URLs would be complicated and error-prone for most people, I think the onus is on content providers to throttle themselves, baked right into a user-agent protocol.

For example, the USER should be able to cage the provider with certain limitations that must be met in order for content to be displayed:

- "I am granting you no more than 500K of my data plan. Please send me a version of your page that meets these requirements."

- "I am granting you no more than 1% of my battery per week. If your site exceeds these requirements, your site will feature prominently as the cause of battery problems in a report that is periodically presented to your users."

- "I do not consider this site to be an 'application' so I have restricted several dynamic behaviors. Please send me a version of your page that can operate in a quarantined scripting environment."

And of course, browsers would be expected to provide sane defaults for these settings.

This approach isn't particularly hostile to any one industry; it doesn't specifically block ads (if they fit in that 500K, be my guest).

comment 11y ago · link · parent

Anyone can sign up with a provider and become "prisoner" but not everyone knows how to get out of it. How can you even compare the complexity of someone signing up for Internet service and getting foobar@att.net for free, and then later having to somehow figure out to pay $15 to set up another domain with E-mail to replace it?

comment 11y ago · link · parent

That's a fundamental architecture problem with a lot of software: it's not possible to get most useful upgrades without accepting the rest of the changes.

This is sad for security because people see things like "stupid UI changes" and they make upgrade decisions based on the parts of the change that are most visible instead of the parts that are most valuable.

Software should probably be designed so that it can be distributed in a layered fashion. I shouldn't want "git cherry-pick" every time I click an Update button.

comment 11y ago · link · parent

The preprocessor doesn't necessarily behave though (just look at Visual Studio). You might actually have a more consistent result by using the same version of a scripting language on every platform.
1
565758
98