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

It becomes relevant when the point of a web site is completely lost due to its fluff.

In this case, I was so distracted by the constant animation/scroll pattern that I couldn’t be bothered to read to the end.

comment 10y ago · link · parent

I don’t like TCL because it can be extremely hard to debug and cause fatal errors very late in the game.

Since both "varname" and "$varname" can appear almost anywhere, it is very hard to conclusively tell where something is used (or even if what you see is a mistake).

What’s that, you have a 1.5-hour job that died because of a TCL syntax error, because TCL can’t parse far enough ahead, and the stack trace is useless? Par for the course.

comment 10y ago · link · parent

And the proposed version already shows signs of being too limited. With a pixel-centered viewpoint, the results will not be reasonable on Apple Retina displays, for example, or when printed. On the other hand, anything vector-based would also become complicated pretty quickly, especially for platforms that may still have APIs that are natively pixel-based. This is not something that can be standardized easily.

Besides, there are parts of even the current standard that are broken enough to demand some replacements and deprecations. For example, "std::string" and "std::iostream" are pretty awkwardly implemented and it would be really nice to have something better.

comment 10y ago · link · parent

I think greater compartmentalization of software is long overdue.

For a program like this, there ought to be a Sacred Core that Does Very Little and has implementations of key protocols that can’t be touched without the blessing of about 5 senior engineers and the personal seal of the CEO or some such.

In other words, it should be unbelievably hard to screw with parts of the program that are crucial, while making changes that shouldn’t have anything to do with it. (Heck, for all we know, they were adding Windows 10 Tiles™ when this screw-up occurred.)

comment 10y ago · link · parent

I think it is OK to add tools to the process as long as the most critical parts are the least mysterious.

For instance, in a networked file system, the on/off switch for “move from version A to version B” ought to be about as simple as swapping a directory symbolic link. That way, everyone can see exactly what it is pointing to now, what it used to point to (as old version targets are probably in the same parent directory), and anyone can figure out how to roll it back instantly.

Given trivial on/off switches, the details of the rest of the system can start to gain complexity.

Also, it helps a lot to have something like a “beta flow” that is essentially a parallel replica of your production environment.

comment 10y ago · link · parent

It’s tricky.

In any technical field, it is important for the “good” and “best” people from that field to participate in group activities so that there is a better chance of sane decision-making. And in any sufficiently-complex field that has a government agency, you would certainly hope that at least some of those “good” and “best” people are working for the government. So what to do?

Perhaps one approach is to make sure no one group is over-represented, e.g. 5 different organizations that each have one vote or something.

comment 10y ago · link · parent

They should also be in a public revision control system.

I don’t just want to see the material, I want to see who added/removed what and when.

comment 10y ago · link · parent

When I was a kid and learning basic manners, there were certain things taught that separated good from bad.

And you know, advertising methods are starting to look a lot like pure rudeness to me.

It wouldn’t be socially acceptable to walk up to somebody sitting on a park bench and just start randomly bothering them. It wouldn’t be socially acceptable to just start dumping signs all over someone’s front porch and gluing them to the windows of the house. Why, then, aren’t companies downright ashamed (and publicly shamed) when they create a product that feels the need to periodically pop messages in front of the user’s face that are by definition completely unnecessary to the function of the product?

Build a product; make it nice; make it functional; and make it show things to the user only when necessary. Anything else is mere distraction, and frankly taints the product’s perceived value.

We are spiraling down into a cesspool of “free” products that tax users with a thousand needles every day.

We used to know how to pay $40 for software, or even $10, and demand better. We need to return to that.

comment 10y ago · link · parent

For the range case, languages like Python got it right because the statement "1 < x < 5" means exactly what it would seem to mean.

For other languages I’m not sure it matters for inequalities.

For equality though, I always use the form "if (constant == x)" as opposed to "if (x == constant)" because in C it guarantees that the compiler will trip over an accidental-assignment typo. That is, "if (constant = x)" is a compilation error but "if (x = constant)" might be missed.

comment 10y ago · link · parent

No matter what kind of program I write, there seems to be some way for unexpected delays to occur.

If Apple were somehow forced to perform this “burdensome” activity, they should take their sweet time and claim one unexpected software/hardware issue after another. Why not? It is entirely plausible (lots of precedence) and since they are by definition building something they did not have before, they could even say they have no experience with what they are trying to build so they can’t know how long it would take. :)

comment 10y ago · link · parent

Well, one reason not to is limited hardware.

In an embedded system where memory is at a premium and you may have serious constraints on how long things take (e.g. for timing purposes), the ability to hard-code an address or have it entered in some way saves you from having to support an entire DNS layer in that system.

comment 10y ago · link · parent

Another potential problem with the sometimes-length-varies aspect to IPv6 addresses is that serious software bugs can be hidden. An array allocated to an insufficient size may work for quite a long time with the vast majority of addresses that take advantage of shortening tricks like "abcd::::", and fail only when presented with an address string that uses the maximum possible IPv6 address length.

I think this article has a lot of really practical ideas that would help a lot.

I suppose the only other thing I’d want to allow in an IPv6 address is a Perl-like underscore anywhere for visual separation that acts like a comment; e.g. Perl lets you say things like 1_000_000 to mean 1000000. The article suggests a single dot but I think that could still be combined with visual underscores for things like "dead_beef_._0001".

comment 10y ago · link · parent

Undeveloped film doesn’t meet the definition of inaccessible if it’s sitting on a desk in your house. It would have to be a roll of film that was buried under a million tons of concrete — you may know exactly where it is and suspect that its contents could be useful, yet you also know that it’s effectively gone and there’s no way it’s ever going to be retrieved. Encrypted devices have to be treated like they’re buried forever.

comment 10y ago · link · parent

Something only belongs in the same branch as the code if it should be forever tied to the same version as the other files in that branch.

Suppose I check out a project using a version from a year ago. Project maintainers would certainly not expect me to use last year’s issue template, last year’s preferred pull request layout and last year’s rules for contributing! That is why shoving things into the "git" repository is a hack.

Having this stuff under some revision control is useful but it could be a separate, parallel repository. Frankly, I think everything for project management should be in one repository, and everything for code and documentation should be in another, and GitHub should be able to use files from both to present a project site.

comment 10y ago · link · parent

I don’t think Apple will lose.

First, there is an obvious pre-technology version of this problem: I have some information in my brain, and only in my brain, that I refuse to tell you. You are unable to pursuade me to cough it up. Therefore, you never get the information.

The FBI should be forced to treat an encrypted phone as being equally opaque and inaccessible. You can see the phone, you suspect it contains something you want, you can’t get it. You can see my head, you suspect it contains something you want, you can’t get it.

Besides, Apple has the money to fight forever in legal proceedings (shouldn’t be hard...seems the FBI had to drag out an 18th-century clause to even make the request; it should only become more comical from here on out).

Also, phones are sold everywhere in the world. You don’t even need a phone to be a “phone” because anything with WiFi access can effectively communicate; it doesn’t matter if the device was purchased domestically or even has the ability to connect to cellular networks. So yeah, given these options, terrorists will obviously decide to only purchase a Certified Backdoored U.S. Cellphone™ for all their illegal activities, right!?

comment 10y ago · link · parent

The sugar or calories in any particular item generally isn’t a problem. The actual problem is the rate of consumption.

People drink stuff like this in ridiculous quantities, and then make it even worse by developing a daily habit. I also find it weird that you don’t often see people set aside “half” of their beverage to finish it later; rather, they sip and sip and sip until it’s gone. By that logic, simply reducing the size of the container that you order should let you drink “all” of it and still feel satisfied. (Or, pour some of it into a cup for immediate consumption, and put the rest away. Same with food.)

comment 10y ago · link · parent

And, his letter is still posted on his web site, describing what he went through:

http://lavabit.com/

comment 10y ago · link · parent

It may be that only the 5C or older devices have the ability to push a custom OS update to a locked device.

The real problem is that you don’t want to set any precedent at all. Once it’s possible to do something for the 5C, weasel words can be introduced to make claims like “well: now you must maintain the current level of access by law enforcement”. Next thing you know, that excuse can be used to interfere with all future hardware designs.

comment 10y ago · link · parent

Not to me. In order to search for things, at least in some version of Windows, I remember having to type out the whole “Microsoft W” or “Microsoft E” to get it to match anything (as it would only search the beginning of a string). Fortunately the names of items in the Start menu could be customized, although I also found that updates or other Windows quirks could routinely reset any custom values. It got to the point where it wasn’t really worth it to tweak anything because I didn’t know how long my changes would last.

Also, vendor names aren’t stable. What about when Flash was installed by Macromedia (but is now Adobe)? It makes no sense for products to shift around because of the company of the week.

comment 10y ago · link · parent

Not only are special characters useful but some shells went to the other extreme. In the early days of the Mac, the system’s default keybindings made it so easy to type “weird” characters that the MPW Shell had many more special characters than shells on other platforms at the time, leading to creative uses of ƒ and ∂, etc.

Now that Unicode support is becoming more common, perhaps some bold shells will bravely adopt new special characters.

comment 10y ago · link · parent

I've always hated software grouped by vendor. Vendors have an inflated sense of self-importance; their name means nothing to anyone except them.

And this poison has made it over to Mac OS X, as well. Bundles should be installed directly in /Applications, because you know, they're bundles that can contain as many files as the vendor wants! But no, there's always somebody like Cisco that has to go ahead and create a stupid subfolder anyway.

comment 10y ago · link · parent

https://en.wikipedia.org/wiki/White_paper

comment 10y ago · link · parent

My main point is that there is no way for something like "2 + object" to do the right thing when member-function syntax is expected, whereas there is at least a way for a free function to do so; and the language could have avoided this problem.

I believe this is also the entire reason that recent C++ standards introduced free-function forms of things like begin(thing)/end(thing)/etc. because it was just too hard for something like a template to operate on a value when it couldn't tell whether or not object syntax would work.

comment 10y ago · link · parent

This is exactly the kind of mistake that a sandbox was designed for.

In a sandbox, by default your software can ONLY write to a specified place like the "/some-random-globally-unique-string/yourapp/yourcrap" folder. Then, guess what: the most that "rm -Rf /" can do is obliterate your own stupid app's files. And, if you further compartmentalize features, it may only damage a segment of your app.

Adobe's still stuck in the decades-ago software development model of "well, guess I need full root permission" with no thought invested beyond that. No wonder Apple further locked down root folders in El Capitán so that you now need to restart from a special partition and essentially invoke "sudo --act-from-god --yes-I-really-know-what-the-hell-I-am-doing --no-really-yes-I-do --yes-really" to remove the protections from most root folders.

comment 10y ago · link · parent

One of the silly things about member functions is the effect that they have on argument ordering when ordering is not supposed to matter.

For example, consider "operator +", which can have in-object or function implementations. The ridiculous thing is that, for any two types in an expression like "+", you can't tell from observation if it will compile! Is it only available as a member function? If so, then any primitive left-hand argument in this supposed-to-be-commutative expression must be swapped to the right side, or wrapped in a pointless object. The same problem can exist for non-operator functions.

At least now with "auto" and other implicit typing (and even tuples and std::get<needed_type>), there is a chance to write single functions that work around messes such as these.

comment 10y ago · link · parent

...and it's an unstable and/or insecure way to develop an application, which is why Mac OS X has things like XPCServices and browsers tend to run multi-process tabs.

Just because a program has the illusion of being monolithic doesn't mean that it should shed the lessons of combining smaller, more stable parts.

comment 10y ago · link · parent

The importance of DRY is proportional to what could go wrong if the repeated code has an issue. For instance, if the code is performing some vital calculation or is part of your security architecture, it had better not be repeated anywhere because somebody will need to patch it later and will need to guarantee that the update has been applied consistently.

Sometimes, it's just clearer to rewrite something yourself. For instance, just because you can express just about anything in terms of algorithms in the C++ standard library, you should instead write the simpler stuff by hand. (A great example is this silly idea of “copying to an ostream iterator” just to print out some data; I don’t care if that combination of standard functions happens to produce the desired result, because the code is painful to look at!)

It's also helpful to using aliasing (e.g. C++ reference variables) to make similar code look as similar as possible; i.e. rather than have two similar blocks using entirely different variable names throughout, declare references at the top to give them the same names so that the similarities are obvious. This also makes it easier to later pull common parts into functions if desired.

comment 10y ago · link · parent

Probably a lot of toxicity would be removed if it were harder for people to comment.

You wouldn't have to raise the bar very high, I think, to convince people that it's not worth the trouble to write a few hurtful words.

For example, maybe follow-up comments to material require completion of a tiny survey (like 2 questions) from the submitter, that must be answered 100% correctly to “prove” that a visitor at least read the material and understood it enough to comment.

And for people too lazy for that, have an alternative like “or, to post this comment, 45 cents will be deducted from your account”.

comment 10y ago · link · parent

If you install uBlock Origin at least, it will flag the entire site by default.

It is very easy to add new things to the list too (e.g. right-click an offensive pop-up and "block element").

I even told it to block my ISP's ridiculous typo-redirector.

1
515253
98