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

The nice thing about Python is that aliasing is pretty easy to shorten tedious statements (while not being magical). If I had to write tons of those in code, I might say:

  D = decimal.Decimal
  x = D("1.2345")
Also (at least this was once true) by doing so you save Python from a dictionary lookup after the dot "." each time.

comment 9y ago · link · parent

A risk of allowing too much bureaucracy in commit processes is that engineers try to avoid the slowdown as much as possible. For example, several unrelated changes may bleed together into “super commits” so as to clear bureaucratic hurdles only once. Next thing you know, it’s harder than ever to identify the exact cause of any one issue: you have more changes in each commit, fewer comments than ever, and a high probability that no thorough review was really conducted.

Large blobs make the review process completely fall apart. In the past I dug up too many cases of people allowing 50-file steamrollers into a repository when the entire “review” was literally two words (“looks good”). While this probably happened due to time constraints, it makes the entire thing pointless. With a simpler commit process, engineers might submit smaller change requests at a time and people asked to review “7 files” might do a thorough job instead of balking at requests to review “50 files”.

comment 10y ago · link · parent

I use MacGPG to sign commits on GitHub but I have to admit that the E-mail portion has fallen by the wayside. (The last time I really used it was to E-mail a professor of a cryptography course for an assignment!)

While I also don’t know many people that use this for E-mail, it doesn’t help that virtually every OS update in the last 5 years has consistently broken it, taking sometimes months for a fix.

For those reasons, this needs to be baked into the OS to be viable. Only when somebody like Apple can install it by default, and make sure it works between updates, will it have the reliability and widespread availability that is necessary for success.

comment 10y ago · link · parent

Also, “having a job” does not mean “can live”. You might still need a 2nd job, and you might depend on other family members having jobs too.

We need to stop defining employment as the measurement of goodness and start finding ways to define decent quality of life. How many people have a decent quality of life regardless of their “jobs”?

comment 10y ago · link · parent

This is like TV and music piracy all over again, and yet again content publishers have a completely wrong impression and are doubling-down on it. Accusing your audience is the stupidest imaginable idea.

Content publishers: it is the POOR QUALITY OF YOUR EXPERIENCE that is driving people to take these steps (primarily). 9999 out of every 10000 visitors aren’t trying to “steal” your stupid article. Rather, your visitors are just sick and tired of the auto-playing pop-up videos that consume unreasonable data, delayed and difficult-to-close windows, or any number of other utterly obnoxious advertising schemes that were somehow green-lighted for your sites. A reasonable ad-blocker is not really for ads but to act as an “obnoxious content blocker” and it is a REQUIREMENT for sane web browsing in 2016.

Same thing with TV: maybe some people insist on free stuff but most of us are just sick and tired of having to deal with your streaming services (0. every network has a different app; 1. log in, password; 2. find that sometimes the show you want is unavailable because of Error -306 or something ridiculous; 3. inexplicably inconsistent streaming quality; 4. STUPID introductory sequences that cannot be skipped; 5. buggy; 6. clumsy menus, 7. perhaps still ads, despite paying for it, etc.), compared to the torrent experience (1. play ultra-high-quality content; 2. no step 2).

If I can’t visit your site, your site ceases to matter to me and you slowly lose mind share. The Internet is a big place; don’t be stupid enough to alienate your audience.

comment 10y ago · link · parent

Aside from putting up the odd sign to discourage certain behavior, no, I do not think that stores have any good reason to bend over backwards to keep individual customers.

Retail is far too accommodating already. Some people figure that being a “valued customer” means they can be an unending source of sunken costs in time, effort and stress, among other things. And those costs can be multiplied across the other customers waiting in line, too.

If a “customer” is destroying your inventory, annoying other customers, or commanding far more of your time than warranted, there is no reason to put up with them. Protect the larger investment, which is: all your other customers, your store, and your employees.

comment 10y ago · link · parent

I think that if you intend to “shame” something, you should at least start out with proper channels (e.g. send an E-mail, file a bug, whatever). Also, it’s not really going to shame them unless you point them to the place they’re being shamed.

In the end, what is more important: seeing the situation improved or just complaining?

comment 10y ago · link · parent

Although, a lot of accounts send immediately E-mail on changes (e.g. bank says “the password on your account was changed” so you would know if someone was changing it and changing it back). It actually seems pretty reasonable to send E-mails on every single account update, as some sites do.

comment 10y ago · link · parent

One interesting benefit of the “detect removal from shelf” concept is that there might finally be a time stamp associated with the removal of the item.

Right now, if you see a random perishable item sitting on a shelf, you HAVE to throw it away because it could have been there for a long time. On the other hand, if you can see that some Frozen Peas were only taken off the shelf 2 minutes ago, you can just put them back and they’ll be fine.

Although, what I’d really want is not only the time stamp but the customer. I’m sorry but if you cost the store $25 by leaving a damned ROAST in the cereal aisle, I would be perfectly happy to never let you in the store again.

comment 10y ago · link · parent

I wonder how much extra revenue a typical store can expect from the “impulse buy” sections at checkout counters? Unless the entire exit to the store is littered with impulse-buy displays, they might be losing that chunk of revenue and have to make up for it somehow.

Also, it already seemed more convenient to not go to the store in the first place (ordering online), especially for the kinds of items in packages that would work well at this type of store. The missing convenience was one that store employees could give you: let you pick out the fresh things you want (like produce and baked goods) and have someone box those up for you and even ship them to your house.

comment 10y ago · link · parent

Oh, I think we could go a lot further as a society if we had more understanding of basic software and related concepts like revision control.

It hurts my head watching people sometimes, going through major contortions to achieve something just because they do not know a few commands or programming ideas. Is it “better” to develop massive, twisted dependencies on programs like Excel, when a few lines of real code would have been equivalent and infinitely more maintainable (not to mention vendor-independent)? Is it better to have massive, manually-copied-around duplicates of files because no one knows about revision control systems? Is it better to do things manually, like repetition, that computers do extraordinarily well?

Programming not only gives you the power to solve arbitrary previously-unknown problems but it puts you in the mindset to assume that an external tool will work better than an internal one. It makes you stop waiting for Your Only Vendor to “implement” feature X, and instead realize that there are already 4 other ways to do that with existing tools.

comment 10y ago · link · parent

I recently was in the Houston airport and encountered a surprisingly tiny security checkpoint with an insane number of TSA officers. There were so few passengers, it felt like it was almost 2:1 passengers to officers. And it was the slowest, rudest, stupidest travel experience yet.

How can so many employees be so incredibly inefficient!? For some, it was pretty obvious: they were just standing around doing literally nothing while people were clearly frustrated by lines that did not move for long periods of time. Some of the “officers” were wandering the area with no apparent end goal. One (as usual) was bellowing ridiculous instructions with fear-of-death seriousness: a job that any sane manager should have eliminated years ago to save money.

And every time, it freaks me out: I don’t want my laptop stolen (say) but there is zero attention paid to the people walking up and walking away with bags from the conveyor belt on the other side, and when the line grows longer and longer I CAN’T go over there and keep adequate watch on my things. Invariably, my bag and stuff makes it through LONG before I do and I just have to hope it hasn’t disappeared.

The entire system is insane. Every Last Rule they introduced based on some random threat or other is pointless. The only thing worse than these pointless rules is knowing that these employees will freak the hell out over every violation of their pointless rules, while completely ignoring real threats.

comment 10y ago · link · parent

I’ve always found it ridiculous that the content of devices is fair game. There is literally nothing on a phone that couldn’t be digitally downloaded after crossing the border (therefore no “threat” by bringing the phone with you). Similarly, there is no possible way to harm an airplane based on what is present on a laptop; and even if there were, you could buy in-flight WiFi and download the bits after boarding. You could cross the checkpoint with a blank device and in seconds have it populated with whatever you wanted to have. It’s insane.

comment 10y ago · link · parent

Not even close. Here is how you deal with meetings:

0. Assume by default that there should be NO MEETING. Make sure you have always tried something to avoid a meeting (E-mail, phone call, status web page, etc.). Web pages are useful because they serve as continuous references.

1. Assume by default that the meeting does not need a room. Do not further distract people by taking them away from desks, etc. where they might make progress on something else during the 80% of the meeting where you know they won’t really be needed anyway. Phones calls with VNC are good for this. Video calls are not, as it’s distracting to see people looking off to the side most of the time.

2. Do not ever start a meeting without doing your own homework. Before inviting yet another person to your meeting, strongly consider the overlap between attendees and ensure that the extra person is really going to help. If you must reserve a room, visit the room in advance so you know it’s actually big enough, isn’t missing a whiteboard and isn’t going to make you screw with AV equipment for 15 minutes.

3. Do not “fill” time. A 2 minute meeting is not a failure, it is a resounding success.

4. Do not waste time. Start on time or give like 2 hours notice if you cannot. Display short slides. Answer questions simply. Anyone who doesn’t know the details can ask. There should not be people fidgeting while someone rambles for 20 minutes about something that, it turns out, everyone already knows. Never hold meetings to request information you already have (e.g. no round-tables to update status when you already had everyone E-mail you a report). Do not use a meeting to go over slides on a projector where someone has painstakingly copy/pasted code or other things that would have been better reviewed in front of an actual terminal.

5. Meeting should rarely be scheduled automatically, and if they are then there should be no shame in periodically cancelling them. Do not meet every week “just to meet”; have something to talk about. Or, if you have hardly anything to say and it’s not time-critical, merge it into next week and cancel this week.

6. If time zones are an issue (e.g. other side of the world), send information-dense messages that anticipate as many issues as possible, containing answers to questions that may not have been asked yet, etc. Otherwise you will end up scheduling meeting, with half the team dialing in from home at 10:30 PM, to find out about stupid things that could have been handled with a document.

comment 10y ago · link · parent

One of the things about releasing source code under various licenses is that it can’t be made purposely difficult to maintain: e.g. you can’t release obfuscated garbage that “technically” compiles into the binary that you released, you must release the code that you actually maintain so any type of modification is feasible.

Why doesn’t that also apply when there are rules about “removing” things? It could be extremely difficult to figure out all the places that specify something, especially if the wording is not absolutely consistent. I would hate to fix 99 of them and still be sued by missing the 100th.

If a project wants to have a rule like this then they should say exactly how to comply. For example, don’t say “you must remove”; say “to replace the trademark, edit script_that_everything_uses_to_set_this”, or “here is the exhaustive list of files to change when replacing the trademark”, or whatever.

comment 10y ago · link · parent

And YouTube curiously will trigger hundreds of blocked requests in uBlock Origin over just a few minutes when watching a video. I can’t imagine why it needs so many continuous “questionable” accesses.

comment 10y ago · link · parent

In some respects the problem of “too many libraries” is the same issue we have with news headlines, etc.: too much going on, and not enough value placed on curating.

Right now everyone just wants to build things full-time. As an industry, it would make a lot of sense to have expert developers who spend some non-trivial amount of their time just on curating: writing down what actually works, what doesn’t, etc. Maybe a “stack overflow” for software packages. And after awhile, it should become expected that you consult those curated lists first, every time before you build anything else.

comment 10y ago · link · parent

I’m not sure of their reasons but Apple does not ship Python 3 by default on the Mac. If they did, I would switch. For me, it is mostly about being able to depend on default infrastructure and not introduce dependencies for other people; and generally, if Python 2.7 works it is better to let people use the default "python" instead of requiring something more.

comment 10y ago · link · parent

Corporations need to be treated as if they could have radically different managers at any moment (because they can). The Best Company Ever of today could be bought by Worst Corporation In Existence tomorrow.

It essentially doesn’t matter what a company is currently doing or “promises” to do or not do, if those behaviors are not legally binding. And even then, if you have to read a hundred-page document to figure out what the legal binding is, assume that the company has carefully placed a nice escape hatch somewhere in their legalese.

It was supposed to be true that if one vendor does something you don’t like, you simply “vote with your wallet” and go to one that you do like. That works great when buying toasters. Yet now, with essentially your whole life tied up in one or two devices and key services like Internet being dictated by one company based on where you live, it is REALLY hard to just walk away from one crappy technology experience and find something you like better. This is a real sign that it is not a good idea to have so much technology powered by so few corporations.

comment 10y ago · link · parent

This experience basically ruined mobile Google for me and caused me to switch my entire search engine to avoid it.

It is completely wrong to optimize for viewing while breaking expectations for anything else. COPYING THE URL is very frequently the next thing I want to do, and AMP destroys this. For example, when looking up recipes, I often create a multi-device-sync note containing the URL, where I add a shopping list and whatever other notes I want to make; it makes no sense to be forced to copy a mobile-only, Google-domain link for almost every search result when next time I might be opening the page from my desktop machine!

Another major problem is that the only indication of this hijack is a little lightning-bolt and "AMP" next to certain links. I guarantee most users don’t know what that even means so problems will be blamed on “the site I clicked” and not “Google”.

comment 10y ago · link · parent

This type of breach of trust could be used to help educate people on what digital security really means, and to demand real security in all parts of their digital lives. It is also good to demand multiple layers of security.

Reddit is "https", and did that help here? No, in the sense that it only ensured the unaltered delivery of what Reddit was sending. It did nothing to preserve the integrity of comments that were originally written. This was not a “secure” web site for this case, yet many people would assume so due to the one layer of security that was present and prominently displayed in the browser! Now extend this to any given web site, and data that is far more important than a stupid comment. Real security is not trivial, and figuring out a good way to manage trusted parties is especially hard.

comment 10y ago · link · parent

It doesn’t really matter if off-switches exist, the problem is that the features are there to begin with.

In any piece of code, a switch is a point of added complexity. For ANY such toggle:

- The switch might not be saved correctly.

- There can be a regression where the switch stops working in the future.

- The switch, despite being “saved” correctly and displayed by a reassuring checkbox in a GUI panel, might not actually be CONSULTED in all the places it needs to be consulted (resulting in default-on, default-off or “whatever the developer of that component felt like” in various components across the system).

- There can be a regression in any one of the components consulting the switch in the future, leading to an inconsistent combination of things that may or may not check for this setting over time.

When they give over 100 options, I assume 50 of them don’t work and that they have no real incentive to make sure the other 50 keep working.

About the only thing you can trust is a single on/off switch for the whole thing, while simultaneously checking a bunch of low-level things (regularly blocking unwanted hosts, logging network activity, etc.).

comment 10y ago · link · parent

Maybe a railway isn’t a realistic example. A nature preserve might be a better one; they can’t decide to cordon off an area for wildlife if you’ve already destroyed all the trees, whereas untouched land might fall into that category.

The examples I can think of were in Texas and I’m sure the rules vary by region.

comment 10y ago · link · parent

There is also the concept of “ground cover” in some places.

I have seen office buildings create gigantic parking lots just to “occupy” all their land so that the land cannot be taken away later. If land is completely undeveloped then it can be reclaimed in some situations, e.g. someone decides they want to build a railway.

comment 10y ago · link · parent

I’m not sure why but the Mac has not installed a "/usr/bin/python3" so I continue to avoid 3.x migration (aside from minor things like "__future__" imports for division and print_function).

I don’t want to add a dependency for end users when my current code works fine with the built-in Python at 2.x. Nor do I want to bloat the size of downloads to embed something like an entire interpreter binary. (Swift has the same issue; there is currently no way to refer to it externally, as it is in flux; I do not want to embed loads of Swift libraries in every build so I will wait to migrate until they have stabilized binaries and made them available from a common root.)

comment 10y ago · link · parent

There are two big problems shown by this. First, that any one service like Facebook could become so large and unopposed that we need to care how it handles something like this. And second, that people seem fine with the idea of living only inside Facebook, unfriending or muting anyone who disagrees with them, until nothing else matters.

This is an utterly unhealthy way for people to be. If you want to combat misinformation, you must also encourage (teach?) people to stop being spoon-fed and start being more curious and more critical.

comment 10y ago · link · parent

Well, nothing like having to “log in” to a product to make it feel “open”, or have it randomly prioritize verifying its own license for 60 seconds over letting you launch and begin your work.

comment 10y ago · link · parent

Yep. And my trust in an entity goes down every time they make things obviously more difficult. They’re counting on users becoming tired of navigating or just careless, while technically complying with any laws because everything is “possible” by going “somewhere”. I loved the original Google and Facebook, both in terms of interface and behavior. The new versions of those companies/products are so bad that I have used them both less and less each week for years now.

comment 10y ago · link · parent

The future is still no “ad revenue”, at least in the traditional sense.

They clearly sell rights for prominent placement of products in TV shows that have no commercials. It’s kind of funny sometimes (e.g. in The Punisher there was an interview scene with a prominently placed can of “Country Time” lemonade, and the thing magically rotated each time the camera moved so the full logo on the can was always visible). And this is fine; it’s silly but it doesn’t detract from the enjoyment of the show.

Conversely, the aggressive nature of traditional commercials has been destroying regular TV. The commercials themselves are stupid of course but networks behave obnoxiously and desperately too. I recently decided to watch an old Star Trek: TNG episode (where I definitely remember how the episode went) and they did some serious editing to jam in as many commercials as they could! They honestly damaged the story line: at times, characters would directly refer to something that I know was in the original cut of the episode but omitted from the oh-god-make-more-room-for-commercials version. Hey, networks: when you start removing plot elements or making obvious edits that even break the background music, you are being desperate. When your ad for the next show is now taking up like 1/6 of my television screen and never goes away, you are being desperate. Don’t CRANK up the volume during commercials and make them go on and on and on for many, many minutes. And don’t disrespect the hundreds of people who work on TV shows by making it impossible to read credits.

1320.

Be brave enough to hide your branding from UI

2 points · by makecheck · 10y ago · discuss

1
434445
98