Better HN
topnewbestaskshowjobs
Log inSign up

makecheck

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

Submissions

comment 8y ago · link · parent

I’ve found that operators boil down to saving time writing (once) at the expense of later readability. They are also almost impossible to trace if operators are overloaded. And you have to hope that the overloaded operator has a meaning consistent with other uses of the operator.

Stop trying to shorten code by 2 lines. It’s not that bad to write it out. If it helps, think ahead to the 1st or 5th revision of the code you’re about to write and imagine where you’d even be able to add new code, given magical operators. In a case like this, it’s easy to imagine a single “else” case with “?” needing to change into multiple else-if cases, requiring the entire fancy operator expression to be rewritten. No real saving.

comment 8y ago · link · parent

There has definitely been this period of inconvenience where a language-in-progress started taking over all the blogs, became the default language for documentation and code snippets, etc. and even StackOverflow answers. And using Objective-C becomes surprisingly inconvenient with extra barriers to finding help because lots is changing in Cocoa APIs too, etc. during the time that Swift wasn’t fully baked.

comment 8y ago · link · parent

The same thing happened when I first used an iPhone X, and the random crackling/popping sound persisted for a long time until Apple issued a software update.

Though, it seemed to happen primarily with my own produced sounds and music, which I aggressively edited to back away to lower volume in the meantime. This helped a lot but the occasional pop or scratch never really went away until they changed the OS, and I haven’t seen it since.

My theory is that if a sound has a high enough volume all by itself, it doesn’t “mix” well with a lot of other sounds that have sufficiently high volume. And with music, unless each of the instrument tracks has a moderate volume, an overlap of enough notes with high volume could go off the top and be clipped, producing a horrible scratch.

It could be as simple as speakers that support a better frequency range. Perhaps something used to be done in software that is now done with higher-quality audio hardware, allowing imperfections to come through that were not noticeable before. I remember firing up old games with better speakers for instance, and being shocked at how flawed their sound really was; better equipment just didn’t exist when the games were made so they didn’t edit past the perceptible range of the audio equipment of the time. Sometimes you really do need to experience sound with the equipment that existed when it was produced.

comment 8y ago · link · parent

I’m not sure if a general system should deviate from established definitions but in specific programs I certainly bend the rules.

For instance, I made a game, and I might accidentally end up with a value that won’t modulus correctly due to zero denominator. In that app, mathematical accuracy for this single outlier does me no good at all because it manifests as “might crash randomly” when I want “doesn’t crash, period”. I therefore wrote a “safe modulus” routine that essentially guards against zero and makes a command decision to return a value. The added robustness against crashes is preferable, since I may not know if I have found every stupid case of the math accidentally working out to exactly zero.

In fact, more generally, exact zeroes mask lots of bugs. They are often default initial values, meaning you might not notice something working accidentally. Sometimes I use a really tiny float as my “meant to be zero” to distinguish, e.g. 0.0001 means “item was supposed to appear at coordinate 0”, that way anything that accidentally ended up at 0 is easier to detect.

comment 8y ago · link · parent

An issue with projects like AMP is you are now essentially solving a completely self-inflicted problem. Nobody required the particular approach that AMP takes, and now site owners have to worry about blank pages for the first time since 300 baud modems?

The solution needs to start in much simpler terms: Google should publish page traits that are rewarded and punished, and tools for seeing where you stand. It should reward/punish all sites based on how they fare in the published areas.

We don’t need new protocols/wrappers/rehosting or extra scripting or whatever else to drag bad sites into the 21st century. These just create additional issues when we have plenty of engineering problems already.

comment 8y ago · link · parent

This is a fantastic list.

I would add, “phones” are mostly not used for phoning now yet for some reason in 2018 your call still blocks the entire screen, out of the blue. This means your call could be ripping an E-mail draft out from under my fingers, or my place in a document or a game. I universally hate calls.

comment 8y ago · link · parent

There are still a few ways to do the auditory equivalent of fat-fingering commands with Alexa. It can get frustratingly far (and even more confused) when it is starting the wrong thing and you try to stop it.

As I see it, turning on “purchases” is a sure-fire way to accidentally order stuff every time I make a noise. Turned it all off.

comment 8y ago · link · parent

I think Facebook has basically reached the “do whatever we can imagine and occasionally apologize if it goes too far” phase.

When software can implement ideas in a short period of time, we need laws that can work even faster. Speed up the process somehow, and “default answer: No”, or something...

comment 8y ago · link · parent

When the result of a decision is to kick someone out of their damned home, why the hell isn’t it someone’s job to read that family’s file cover-to-cover before pulling the trigger? That is NOT the time to rely on any auto-push-button software.

comment 8y ago · link · parent

It’s funny, Python is probably the only language whose canonical “hello world” code had to change during the language’s lifetime.

comment 8y ago · link · parent

Duo was definitely the coolest thing I’d used for remote login; they had it so a quick checkmark/X shows up on your watch for two-factor that you just tap to acknowledge.

Cisco stuff though...hmmm. I hope it’s a good fit engineering-wise (or really, just NeXT-Apple the remote login folks and trash the awkward Cisco tools).

comment 8y ago · link · parent

This extends to how people think about teaching others about computers. I would get so frustrated with E-mails that consisted of about 9 “steps” to walk through when using a WEB site, instead of posting a direct link to the final target!

The progress animations are out of control too. Every time I see one, I imagine the engineering hours it took to animate and wondered if they could have just spent hours optimizing the code instead. The weirdest thing about a lot of progress indicators is that developers don’t even get the point: your indicator has to be in sync with the activity! It has to give meaningful updates, it can’t just be a background animation that looks alive even when the server has died and isn’t coming back.

comment 8y ago · link · parent

Robust scripts require diligence appropriate for the environment. If you’ve deployed systems with different default tool versions, you factor this in, e.g. by installing a common version that both can use (or just make scripts that can figure out how to work either way). Two versions of a tool isn’t really any different than two versions of a compiled-in API, except that APIs tend to be more rigid (not always, e.g. some languages allow runtime querying).

There’s a common rule in Unix-like systems that essentially says “inputs are liberal, outputs are conservative”. It matters to have programs that can adapt, because this makes a lot of things more practical.

comment 8y ago · link · parent

Since it is impossible to force all inputs to be well-constructed, text acts as the more predictable interface. Once I learn a bunch of command-line tools for processing text, I know exactly how to compose commands or post-process text from a file or extend the usefulness of a program that doesn’t happen to produce output I want.

While there may be something “brittle” from time to time, in my experience this just means it was possible to tackle the problem with text when the alternative would have been to have no way to do it at all.

PowerShell feels like it wants everything to be structured perfectly, and “perfect is the enemy of the good” applies. Sometimes, I don’t care if there is a way to perfectly structure a particular input because many use cases just don’t have stringent requirements.

comment 8y ago · link · parent

When I was a kid, the “bottle depot” was a very motivating way to go out of one’s way to collect stray bottles.

Deposits at time of purchase have proven effective. Put a deposit on every product with recyclable material using some generic measurement (like “weight of packaging”), such that when you return it you receive a quick and approximate return (in this example, by weighing everything you recycled and just not caring too much what the breakdown was).

comment 8y ago · link · parent

Yes, “shaming” would be a relatively easy improvement too. Browsers should feel free to display big, red, scary-looking logos like “this page load has consumed an unusually-large portion of data/battery/whatever”.

comment 8y ago · link · parent

Even a simple limit would probably help a lot, e.g. “at most one alternate domain” (your main CDN, and not sketchy-analytics.com or unnecessary-ad-malware.net).

comment 8y ago · link · parent

We have a ridiculously-backwards model on the web where you essentially pay for what you use (via your data plan, and via forced ads prior to promised content) without having any way to know in advance what it will end up costing you to display content. Heck, you don’t even know if the content will display correctly after all that loading. Worse, there are many ways to trigger loads accidentally, meaning you may want none of the content but you end up paying for it through your data plan.

We desperately need absolute maximums enforceable in the browser, reversing the firehose. I want to opt your site in to more data use, after I trust your site. And I expect sites to work within my limit or not receive visits.

comment 8y ago · link · parent

“Reviews”, in general, are absurdly misleading on any site; Amazon is just prominent.

I’ve given real reviews on Yelp of businesses that had real problems. These negative ratings were shuffled off into their special bucket of maybe-less-reliable reviews, well under pages of HIGHLY questionable 5-star reviews. I also have a friend with a business who was plainly told that he needs to pay to ensure good reviews. Yelp is a scam, and wins by being a virtual monopoly (as Amazon reviews do).

It is also amazingly hard to get reviews on the App Store from real users, for instance. I imagine you pretty much have to ask 60 friends to “help” you, or pay somebody, either of which creates a pool of fake reviews. It really changes your perspective on any other “ratings” you see.

In the end, I think society will learn that this is another example of buyer beware, and you get out of it what you put into it. Since looking over “reviews” for 30 seconds is low-effort, it is low-value. If you want good results, you need to spend a good amount of time and effort researching products.

comment 8y ago · link · parent

So you’re saying that someone investing tons of free time in software that greatly benefits countless people, and then gives it away for free, has problems because of a minor update you don’t like and have absolutely zero right to complain about?

comment 8y ago · link · parent

Using Accessibility settings and Display Accommodations, you can Reduce White Point (to any slider value) and it makes a big difference at night.

comment 8y ago · link · parent

MacTerm implements Sixels, some of the bitmap graphics sequences from iTerm2, and TEK vector graphics.

Graphics are definitely not that widely supported though, making it hard for programs to reliably display images.

comment 8y ago · link · parent

Of course, in an ideal world, the obvious technical flaws in chat products would easily enable competitors to “take on” the broken ones.

Why does it seem so hard to get chat right? Heck, Yahoo Messenger had lots of features in about year 2000 that we still lack or struggle with in newer products?

comment 8y ago · link · parent

This seems to refer to what Pages uses for fonts and not the system font panel.

While the standard font panel does seem over-engineered, I think it has the things discussed: font grouping, full keyboard access (if you focus it), etc.

comment 8y ago · link · parent

This is clearly detrimental to external projects such as Go packaging, since their own developers will never be looking at dependency problems in the same way as outside groups.

Monorepo also bugs me because there will always be some external package you need, and invariably it’s almost impossible to integrate due to years of colleagues making internal-only things assume everything imaginable about the structure and behavior of the monorepo. There will be problems not handled, etc. and it leads to a lot of NIH development because it’s almost easier in the end.

Also, it just feels risky from an engineering perspective: if your repository or tools have any upper limits, it seems like you will inevitably find them with a humongous repo. And that will be Break The Company Day because your entire process is essentially set up for monorepo and no one will have any idea how to work without it.

comment 8y ago · link · parent

Many “jobs” today won’t even cover cost of living in their areas, making UNDER-employment a valid issue that is too easily ignored in statistics that show lots of people “employed”.

Also, being forced to take on a massive amount of debt just to have a chance to get a certain job makes that job less valuable overall. A company can still boot you out in less time than it takes to pay off debts so you’re really trying to find continued employment to justify an investment such as having to move or obtaining a degree. And of course you might acquire new debts while paying off the older ones.

These situations tie the hands of so many, and that’s not a “strong” economy. If there’s no truly disposable income, you’re essentially expecting people to set aside their basic needs to raise your stock price.

comment 8y ago · link · parent

Lots of things are profitable but never absurdly and increasingly profitable, which is the trap we are now in.

There’s no credit given for having a tidy business with steady profit. Instead you have to have “growth” and other this-quarter-must-be-better-than-last-quarter-or-else crap that “investors” want.

comment 8y ago · link · parent

The really huge problem with that is that Keychain uses your login password to unlock your world of passwords. Even if you change your login before servicing, are you going to delete your whole keychain?

comment 8y ago · link · parent

So, the definition of a feature only required for a single application (playback), and unwanted by consumers at that. This clearly did not belong in any general-purpose processor (if it should have been built at all).

You know, if movie and recording studios want this so badly, let them put up the billions it should require for them to produce their own coprocessor.

comment 8y ago · link · parent

Excessive flexibility for optimizers, schedulers, etc. adds a high price to debugging, and it’s not like we have perfect programs that can only be improved in these fancier ways.

Programs are not all written by experts. Performance may be left on the table in areas that have nothing to do with optimizers or schedulers (e.g. picking an absolutely terrible algorithm or not noticing unnecessary memory allocations).

If something must remain “unspecified”, I at least want a debugging tool for that behavior. If something “may” happen, give me a switch to make it happen. If something is data-dependent, show me the data that triggers a different outcome or give me a way to scramble data enough to increase the chance of triggering a change in behavior.

1
202122
98