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

OO bugs that I see are actually in the “invisible” parts of objects, as these require more experience to know what is really going on. For example, failing to implement necessary operators (or worse, implementing them in ways that are subtly incorrect). Knowing how to implement object “glue” properly is something that just doesn’t come up if you’re using simpler programming styles, and in cases like these it’s better to pick the simplest and most maintainable approach that will suit the task to avoid pitfalls.

comment 8y ago · link · parent

Do we know people wouldn’t want to pay? I know Facebook never asked me if I would. People have a track record of paying for services like television. They might pay for social networks if given a chance. Charge me two dollars a month, make all the creepy spying illegal, and the remnants of Facebook are useful (staying connected to friends, etc.).

comment 8y ago · link · parent

It seems like they should at least try to have a single property (e.g. UIWindow “autoResizeWhenKeyboardDisplayed”), leaving notifications and other things as fallbacks. What are the odds that a view will do anything else?

Also, I don’t know why the iPad allows the keyboard to be dismissed but the iPhone stubbornly does not. When this isn’t handled properly, “grandma” has no hope and even I have to fiddle around or just kill the app to regain control. That is a ridiculous situation for the OS’ own keyboard to permit on a regular basis.

comment 8y ago · link · parent

I wonder, are issues like these easier to manage with sentences structured like: “Number of foos scanned: 1”, or “Number of foo/bar scanned: 3/10”? I know it at least makes the plural issue go away for English (as both 1/2 work with a colon).

comment 8y ago · link · parent

I’ve used Shortcuts (used to be Workflow) to “save” various favorite map locations without Google being asked to remember them. It’s actually better because I can program a complex sequence such as also immediately displaying a map with directions to that place, it can be in the widget area of the phone, etc.

comment 8y ago · link · parent

Actually, C++ doesn’t really get this “right”, they mostly just get to say “we have exceptions in the language”. Exceptions are one of the most frustrating behaviors in C++ (e.g. lots of ways to outright crash your program, no way to really understand the full code path that an exception came from, easy to make serious mistakes like having code paths that throw exceptions in destructors).

comment 8y ago · link · parent

Error-handling code is definitely poorly-tested in my experience across many code bases. Although printf()-style logging has advantages, a huge disadvantage is that it tends to be the reason error-handling code fails: something meant to write a simple log message gets the format/type wrong and an error condition turns into a crash or obscure corruption. In fact, logging code that was once correct can become wrong if the target variable type changes. This is why I love Python format-strings with “{}”, a.k.a. the “just do the right thing here” syntax.

Generally the advice of “pick a few failure types and stick to them” is exactly right. You not only encourage error handling to take place but that code is likely to remain correct/complete over time.

comment 8y ago · link · parent

Honestly I now use text files in “vim”.

If they’re “how-to” things, I give the files really obvious names that describe the problem being solved by the content.

If they’re to-do lists, I generally have only one per unique project and keep it to about a page (any longer and I’ll never read them all; things that are truly important will make their way into the list naturally, I don’t need “4 weeks from now” items in there).

It’s actually pretty easy to search and organize text this way, and you can use Unix tools to filter and sort them if your lines have the right info in them.

comment 8y ago · link · parent

Stores seem way worse for food waste. Delivery services generally ship plain ingredients, as-is, and even in specific lesser quantities (like one celery stick). In a store, things are often “partially finished” in ways that not everyone may agree with (e.g. pre-seasoning a bunch of cuts of meat, which means you either want that particular seasoning or you won’t buy that meat at all; what happens to the leftovers?).

comment 8y ago · link · parent

The installed base is so huge that it will be a significant number of people affected no matter how weird the edge case. Also, if they’re going to implement a feature they should expect it to be used and know when they broke it (especially for a company with the absurd resources of Microsoft).

comment 8y ago · link · parent

I think what bugs me most about app review is that these things never come up for 1.0 or even 1.15. It’s some minor update where THEN Apple complains about minutiae that have existed since 1.0. Heck, they once complained about not having a Minimize button in a window (literally all previous versions lacked it).

comment 8y ago · link · parent

While working at a company, be loyal to your local team (other people just trying to do good work) and yourself (e.g. build new skills you can use). And really, those are variations of the same thing because co-workers that value you can help you get what you want or even your next job.

Blind loyalty to a company means nothing though. First, managers change: any promise, especially a long-term one, is one manager-change away from becoming vapor. Projects are cancelled or relocated or reprioritized. Layoffs occur at times convenient for the company so don’t be surprised when you’re unable to count on stock vesting. Perks go away. Ultimately, treat most company-level things as “sounds nice” and never count on them. For example, I would never buy a house based on stock I should get or a bonus that was promised.

comment 8y ago · link · parent

The weird thing is that there are lots of new things that Apple is in a unique position to make, that people would pay for, and these things aren’t made. Apple could make tons of money.

For example, they should make iOS devices true companions of Macs, to the point where you can simply use iPhone/iPad as a direct input. (Why they went the 1D “Touch Bar” route is beyond me; it makes much more sense to simply assume people already have great 2D touch screens and find a way to bridge to those.) Then laptops wouldn’t have compromises in multiple areas.

Even on the software side. They make money on the App Store but they could make way more money by giving consumers reasons to actually try things, i.e. “try before you buy”, paid upgrades, etc. They have created a software environment where things feel more likely to be scams than useful, which is nuts.

comment 8y ago · link · parent

In this case, the common prefixes probably do make certain code translation tools far easier to write. Sometimes you DON’T want to require an entire compiler infrastructure just to produce correct results (i.e. you can write a simple script to transform text if the patterns are easy to guess).

comment 8y ago · link · parent

Why do companies think this is “good”? They basically assault the very subset of people that actually stuck around longer than most, actually showed some interest in their content. Instead of encouraging that to continue, they cut you off.

Imagine if you were in a physical store. Then, after 2 minutes of walking around, someone suddenly pulled you aside, erected a bunch of cardboard walls around you and said “sorry, if you want to keep looking, you need to sign up for a store account!”. You’d mutter some curses and walk straight out the door, obviously; exactly zero people would say “why, sure!”.

comment 8y ago · link · parent

For me, frustration was from software forcing the form factor (fighting or disallowing pinch-to-zoom, forcing precise ratios like 2/3 of the screen, etc.). And heck, just the fact that 10 years later we still have a grid of icons on the primary screen that can’t occupy extra space and are awkward to arrange.

An iPad works well when you can do whatever you want with it. If I can briefly zoom “beyond” the screen with my fingers, etc. it’s incredible. Obviously it’s great for tasks that are naturally bound to fingers, like drawing circles.

Apple is really far behind on software though. I won’t even say a year...I’m thinking we are five more years away from a well-thought-out tablet.

comment 8y ago · link · parent

Mobile browsers should differentiate the style of links with URLs that resolve to apps. I am tired of tapping links expecting to remain in Safari and having useless “open in app?” prompts instead. I’m not IN an app, I’m in a browser; I want to use the browser.

And when cancelling the prompt gets you nothing, it really feels like Yelp is screaming “NO SOUP FOR YOU!”.

comment 8y ago · link · parent

Tcl is a great example of a language that should have fixed literally a couple of bad design decisions early on to be sensible. Instead, it is a complete nightmare to debug. I refuse to allow its use on any project.

One great example is how a variable name can be expected yet its value is extracted instead, and seem to function sort of. Yet it’s stomping through your code base and messing with values you didn’t think it would. Finding this is simply not worth the trouble when arguably dozens of other languages would not even have the problem.

Or, the “error on line 1” where the “line” is a massive nest of loops and other statements. Tcl (at least at one point, supposedly this improved) couldn’t offer any more help. And again, this was a completely unnecessary debugging headache that no other language would have.

comment 8y ago · link · parent

The Windows 10 store may need improvement but the “new” Mac App Store is not the model to copy.

It’s harder than ever before to find anything because most browsing options are far, far worse. Lots of things have infuriatingly small default sizes, hiding additional information behind unnecessary “more” links (I have a giant screen with a window that is mostly empty, and I have to click “more” to reveal the 3rd of 3 bullet points in an app summary). They devote absurd editorial space to 1-2 apps and act like nothing else even exists in their store. That written content is locked inside the store, impossible to access from the web.

And, I personally had new purchases right up until the new store launched, with zero purchases since then (despite fully embracing video previews, etc.).

The thing is, they have lots of useful pieces in app stores, they’re just ridiculously bad at assembling them in useful ways. No wonder no one is buying.

comment 8y ago · link · parent

With Oracle/Sun it was pretty inverted...the first year was a huge cash infusion, and if anything Sun hardware projects had greater potential than before.

And yet, within 5-6 years the entire hardware division imploded.

And, meta-comment: this site layout is frustrating on mobile, the text runs off the left/right edges slightly and it refuses to allow pinch/zoom. Sites really need to stop writing code to intentionally screw with readers.

comment 8y ago · link · parent

When this first came on, I thought: oh, did someone make a new documentary? It was full of nostalgic nice things that Mr. Rogers was known for. It brought back memories.

And then, it ended in the cheapest, most offensive, most un-Mister-Rogers way possible: just a Google ad. I refuse to even let myself recall what crappy product apparently demanded the outright abuse of a man’s lifetime of genuine contributions to society out of some sense of clever advertising.

This feels like a bunch of Google executives just took a can of spray paint to deface everything that Mr. Rogers ever did. And Google, you don’t understand anything about why Mr. Rogers was so great.

comment 8y ago · link · parent

A way to do this with regular assertions is to chain a C string with the expression using &&, as in:

assert((x < 2) && “too many items”);

comment 8y ago · link · parent

I’m kind of amazed how much money can be tied up in things that are not well understood by the vast majority of people who fund those things.

Ad networks. Various products from financial institutions. Cryptocurrencies. Heck, even app stores (as a developer, if your app was sold to somebody and Apple/Google’s system was simply broken and somehow they made their cut but you didn’t, how would you even know?).

At a certain point, it sure seems that people rely on popularity as proof of proper functionality (i.e. “lots of people seem to use this just fine” = “nothing can go wrong”). In reality, we should be expecting a lot more: asking harder questions, demanding more proof of activities, expecting extremely reliable support, etc. And frankly, a lot of these things should have open-source implementations to make it even easier to ensure that they work the way they claim to.

comment 8y ago · link · parent

Yeah, and any developer making less than $14M (which is...like all of them?) continues to grit their teeth from rejected updates over minutiae and the virtual impossibility of browsing/searching sensibly on the App Store, among other issues.

I mean, each passing month makes it more of a labor of love than a serious development platform. There are so many extremely obvious ways to scam money on the store, and yet you go through the wringer if you spend months or years meticulously crafting a well-designed app for peanuts.

comment 8y ago · link · parent

“Compiled every time” is not really true if the header correctly contains “#pragma once” or #ifdef guards.

It may be that you have used a lot of template-based headers, which may compile nearly every time because they are literally creating new code every time a new combination of template parameters is given.

comment 8y ago · link · parent

On the one hand, of all the big companies, Apple seems closest to “getting it” with respect to security.

On the other hand, NO entity is inherently trustworthy “forever”, nor should any entity have the power to be a unilateral Decider even on its own platform. Just like when a good restaurant may some day become bad under new management, we are just one “new management” away from Apple becoming something that maybe we don’t trust so much. This system is being set up to give “Apple” tremendous power for “all future definitions of Apple”, which is ridiculous. That wouldn’t make sense even if Apple were a perfect saint today, invulnerable to buggy software and disgruntled employees and other potential weaknesses.

We need a system whereby users decide which SET of entities they trust, one of which may include Apple, and which may even exclude Apple if the user so chooses. The complex mechanism for signing and verifying things should be open-source so it can be understood and validated and reproduced cross-platform. Then you decide who you trust, period. You can rely on others to help you determine what is trustworthy. Given this type of system, I would be fine with macOS saying “select at least one trusted source to enable software installations”, knowing that I ultimately decide what those authorities will be. I am not fine with their seeming “father knows best” approach.

comment 8y ago · link · parent

Start with “xlrd” to import spreadsheet data into Python. At least then you can start building other things that work with data that don’t have to be in Excel.

comment 8y ago · link · parent

I thought I’d seen it all until gas pumps started having loud auto-playing videos. I consider it one of the benefits of an electric car that I no longer see gas pump ads.

And this stuff always seems to hit “lowest common denominator” quickly. Once consumer-hostile methods prove some kind of worth, everyone seems to follow suit to compete (or just be as greedy).

comment 8y ago · link · parent

Internet access is still pretty variable throughout the world (or even within countries that can have good speeds, like the US). Anything randomly uploading megabytes is going to cost somebody an unreasonable amount of money so there should be consent.

comment 8y ago · link · parent

It probably has something to do with the investment that would be required if the original item didn’t exist.

Suppose it costs you 10 million dollars to make product X, and you are able to make that money back barely (say 11 million). Then, someone else comes along and builds something quickly on top of your expensive investment and is able to make 5 million of their own. Wouldn’t you be mad? They’ve essentially found a low-effort way to make returns without taking any of the risk you did. Without you, they wouldn’t be able to do what they did unless they came up with the whole original item on their own and then built on top of it. Therefore, in essence they are profiting off of your investment.

The law may be significantly more complex and nuanced than this but it’s not hard at all to imagine scenarios where the original producer of a product does not want to enable profits of spin-offs from their work.

Edit: This is one reason patents exist. You are allowed to protect your massive investment for a period of time, no matter how much society may benefit from building on it immediately.

1
171819
98