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

Frankly yes, at times I would love that option. A "tap to load/view" link is sufficient for many situations.

comment 9y ago · link · parent

Here is how Safari could fix the mobile web in a matter of weeks:

1. If a site downloads more than 100K, halt the page load or display a "too much data" error.

2. If a site takes more than 1 second to render, halt the page load or display a "too long to load" error.

Do that for a few days and maybe these absurd sites would lose enough views that they might actually bother to figure out where their data is going.

I recently had to browse with "data roaming" at the low low price of $2.05 per MEGAbyte and had to disable pretty much everything on my phone within minutes.

comment 9y ago · link · parent

One problem with that is Facebook is likely to hide all content behind a login wall. At least now the text is accessible.

comment 9y ago · link · parent

It is vital to have regular cleanup in a code base to avoid the feeling that it should "all" be scrapped. There will always be code worth keeping for all the reasons mentioned (bugs fixed, etc.) but there will always be something that should just go away.

comment 9y ago · link · parent

When these decisions are made, I hope they come with technical guarantees on ease of accessibility to data.

For instance, "buried in 6 layers of obfuscated XML" and "accessible in O(N^3) time" would both be implementations that are not "blocking" the data but they would still be extremely difficult to use.

comment 9y ago · link · parent

I for one have spent over 20 years continually expanding my application, as free GPL software, and I stopped counting the hours long ago.

It is a gigantic amount of effort to design non-trivial software. Heck, just keeping everything stable and up-to-date is a project in itself (periodically having to adopt modern platform APIs, for instance).

And usually I receive very little feedback. I can see downloads in the thousands and I doubt I've had more than a few E-mails a year.

You might be misled by the tendency for people to hack random things together and dump them on GitHub, never to be touched again.

comment 9y ago · link · parent

If they still call the executable "python" then they’re demonstrating the whole issue with keeping the same name for wildly-incompatible upgrades: it “shouldn’t" matter what version a reasonably-modern OS chooses and yet it does, solely because of the name. No one would complain about having "/usr/bin/python", "/usr/bin/py3k", "/usr/bin/perl" and "/usr/bin/rakudo" all at once on the same OS but being forced to choose two is insane.

comment 9y ago · link · parent

The idea of "removing" a name seems technically unreasonable too. Lists may legitimately be pattern-based (like "ads.*.net" for instance, where ads.targetdomain.net technically matches too).

comment 9y ago · link · parent

There are times I've literally taken half an afternoon off to go somewhere, knowing that when I arrive I'll be sitting around for an hour and a half, because this seems better than traffic. And 99% of people never have that option. It's just gotta be a massive factor in daily stress.

As a society we need to get over the ass-in-chair-9-5 mindset and allow remote work and weird hours to combat rush hour.

comment 9y ago · link · parent

The tools for "ad blocking" are NOT just for ads and arguably ads are their least important function lately. These days I am far more likely to use element-level blocking tools such as uBlock Origin to maintain my sanity in the face of TERRIBLE web design.

Now that I can make any stupid popover or poorly-placed "div" go away forever, I'll never go back.

comment 9y ago · link · parent

"Explicit" isn't necessarily "verbose", just clearer. Sometimes this means bubbling more details to the top in the same amount of code, like taking surprising side effects out of a complex function and calling them more directly.

comment 9y ago · link · parent

LXDE and Window Maker do minimalist/stable/customizable quite well, I'd put them first.

comment 9y ago · link · parent

We should be able to apply security technologies to online discourse. Theoretically it should be possible to separate real identity from virtual identity: maybe I publish a bunch of stuff in such a way that no one can ever figure out who I am but anyone can verify that a series of different comments/articles/etc. were all made by the same person. Then you could decide to follow people who publish things that interest you without having any feasible way to identify them (you can’t fire them, you can’t meet them, etc.).

comment 9y ago · link · parent

That trace is not as bad as I remember but if you write that in a nice long multi-line series of if-statements (say) it’ll still print out the whole mess and only tell you one useless line number. If there’s a "proc" it’s a little better but it can only show the bad line number relative to the "proc", requiring you to do some manual work to find the function within the file and then the offending statement line.

Also, I have no problem with the logical "$x" syntax; rather, the fundamental flaw is that the string "x" could be used to change the variable "x" without any clue in the syntax that this may happen (e.g. no "&x" like in C, no "\$x" like in Perl; just "x", or worse "$y" that resolves to "x"). And don’t even get me started on multi-level "upvar". This whole thing is a minefield, especially if people use simple variable names that can’t be searched in a code base. If you’re really unlucky, you accidentally swap the order of parameters and it just so happens that your "$x" value is almost plausible so you never notice the disaster you just created. It’s simply a “write once, modify never” coding style: it saves the programmer 10 seconds and creates the most brittle of code. I would never recommend it to anyone.

comment 9y ago · link · parent

A general-purpose scripting language and general-purpose elements, where it isn’t easy to see what the high-level impact of low-level actions will be.

Though we’re at the point where browsers really need to clearly separate what requires advanced capabilities from what really doesn’t. For example, a browser could always display exactly two tabs per page: “Read” and “Interact”, where ONLY the Interact view can access scripting capabilities and dynamic content and the Read view may only display trivial things like images and text. If you’ve ever installed something like uMatrix on the desktop (and you should), it is astounding how much crap from how many entirely different domains is loaded and executed just by loading a “simple” page now. It has to stop.

comment 9y ago · link · parent

Tcl had been a pretty good way to create things like embedded command shells for C-based programs, and this was great as long as people operated in fairly sequential ways like “command1, command2, command3”.

The problems with Tcl start to show up when invariably somebody decides they want something more logically complex than a sequence of commands. Debugging Tcl is extremely difficult, which makes it a huge maintenance liability. For example, a “line number” isn’t much help if the “line” refers to 90% of the file and Tcl thinks all of that is essentially one statement (no matter how many braces are in it). As another example, there are tons of places where a variable is referenced both like "$this" and "this"; that is just a whole series of accidents waiting to happen, especially when you consider that many functions depend on argument order and they don’t necessarily produce obvious malfunctions when variables are misused.

comment 9y ago · link · parent

It’s a good point that Python is smart enough not to build a mutable list on the right-hand side when not needed (e.g. for "x = [1, 2]" it will and for "y, z = [1, 2]" it will not). A right-hand tuple however is still a separate type, and if you disassemble the original cases you can see that "[] = []" is more wasteful than "[] = ()".

  >>> import dis
  >>> 
  >>> @dis.dis
  ... def f():
  ...     a, b = 1, 2
  ...     (a, b) = [2, 3]
  ...     (a,) = [4]
  ...     a, = [5]
  ...     [] = []
  ...     [] = ()
  ... 
    3           0 LOAD_CONST               6 ((1, 2))
                3 UNPACK_SEQUENCE          2
                6 STORE_FAST               0 (a)
                9 STORE_FAST               1 (b)
  
    4          12 LOAD_CONST               2 (2)
               15 LOAD_CONST               3 (3)
               18 ROT_TWO             
               19 STORE_FAST               0 (a)
               22 STORE_FAST               1 (b)
  
    5          25 LOAD_CONST               4 (4)
               28 STORE_FAST               0 (a)
  
    6          31 LOAD_CONST               5 (5)
               34 STORE_FAST               0 (a)
  
    7          37 BUILD_LIST               0
               40 UNPACK_SEQUENCE          0
  
    8          43 LOAD_CONST               7 (())
               46 UNPACK_SEQUENCE          0
               49 LOAD_CONST               0 (None)
               52 RETURN_VALUE

comment 9y ago · link · parent

This isn't doing what you think though. There are container objects underneath.

For instance "(a, b)" is "a tuple object containing two things, the values named "a" and "b" so you can still refer to them separately. "[a, b]" is a new list with those same elements, not an alias for "(a, b)".

comment 9y ago · link · parent

Processes are needed for sanity, and not much else. Don’t be the baker who’s really firm on a choice of a 9x13 pan and the entire set of ingredients for a cake, only to find out that people want cookies.

To move quickly, you really need just two things: a way to make sure things don’t change unexpectedly, and a way to recreate anything you had before (where the 2nd is a crutch if the 1st fails). To have sanity, you need somebody setting a direction (“we’re doing this”), and somebody deciding what can wait.

For software, this means things like: “for Pete’s sake, use revision control”, “track versions of dependencies”, “back things up”, “write scripts instead of step-by-step instructions”, “test somehow”, and “track problems”. There is no “daily one hour meeting” phase of software development.

comment 9y ago · link · parent

Even worse, somehow there's this mentality that "arrested = criminal" even though you can be innocent; some people could be fired simply for being in custody, whether or not any work was missed.

comment 9y ago · link · parent

I hope they aren't using the mobile version for inspiration, either. To this day I "request desktop site" on mobile because information density and pinch-zoom are too valuable to give up for UI du Jour.

comment 9y ago · link · parent

Side projects are better compared with other investments in your skills, such as taking classes.

If you "need" them to go somewhere, you need to start on a commercial path. Arguably, models like the App Store (while certainly flawed in many respects) do provide at least an option for hacking a project into a viable product without necessarily needing a full startup and investors, etc.

comment 9y ago · link · parent

As a 3rd-party developer I could almost understand retiring apps (too many dependencies on deprecated stuff, ancient code base is too hard to maintain, etc.).

Yet built-in apps are much more special. For one, many people consider built-in apps to be "the OS" as much as the OS itself. And two, if there is any development team that can continue supporting an ancient code base, it's the OS vendor: if they really have to, they can do things other companies can't (like privately continue to ship functions that are now publicly unavailable). It should always be more in their interest to evolve rather than redo.

comment 9y ago · link · parent

Thanks to Venmo, I now know all about transactions between people I don't know. I honestly can't understand why that stream is considered useful at all, much less as a feature that has the entire first tab devoted to it.

comment 9y ago · link · parent

At least on the Mac, I resolve this for browsers and other tools with the Keyboard pane of System Preferences (very powerful, if you've never dug through it). For that matter, I also tweak other things I don't want to easily hit using the keyboard, such as making it harder to Minimize.

comment 9y ago · link · parent

I really wish Google's Chrome spam wasn't "working" because I am so tired of it (and anything like it). This is a variation of the "Here's what's new in the app that you didn't know you updated!" dialogs that developers seem to like now.

If I could have software and services not totally derail what I was trying to do, that would be greaaaaaat.

comment 9y ago · link · parent

Unless you are extraordinarily low on disk space, you should never need to "wait" to delete things so speed shouldn't matter.

The correct method is to immediately move/rename the target, then launch an expensive delete in the background. That frees up the location you are trying to use.

I used to see people set up entire workflows that started with, essentially, "wait 20 minutes to finish recursively deleting the previous data" instead of just "move it out of the way and start immediately".

comment 9y ago · link · parent

Stock like that MAY not be valueless but it certainly CAN be. The company may fire you when a project is done, or sooner (all your RSUs: $0). The company may go out of business, and the “fine print” will certainly say that the big-boy investors receive a piece of the pie first before owners of restricted stock (all your RSUs: $0). Some of your RSUs may vest, turning into real stock, yet if you took the job assuming they would “probably” be worth $X, they could be worth anything by the time you vest (including much, much, much lower than you thought). Also, no one requires you to invest in an ESPP.

Clearly stock in a single company can have tremendous returns but it is foolish to treat that like anything but pure gambling from a run-your-life point of view.

comment 9y ago · link · parent

It can be very motivating to see someone get mad at you though. All at once, lots of things become clear: (1) this is important to that person, (2) you need to treat this seriously, and (3) this is really uncomfortable, it would be good to avoid future discomforts (i.e. change behavior more permanently, not just this one time).

Kindness actually triggers the exact opposite of the 3 things above: suddenly everything seems like no big deal and nothing ever changes. Just great: now you’re setting yourself up for several more unpleasant interactions in the future, instead of just fixing something from the beginning.

There are a lot of other considerations too...

For one, the person “yelling” is usually not the only “unkind” person in the interaction, even if that’s the most obvious one. It is unkind, for instance, to be a lazy person who goes into situations utterly unprepared, showing no respect; at that point, YOU aren’t being “nice” so why do you expect niceness in return?

And sometimes niceness gets in the way of well-understood, efficient processes. On a mailing list, say, you’re better off making a direct statement that isn’t wrapped in two extra paragraphs of polite tone for everyone to read through. And heck, when you’re driving, you can create MAJOR traffic problems by being “kind” instead of just following the rules (ironically bubbling back and impacting 50 people for a mile because you wanted to be “kind” to one person; just watch some videos).

comment 9y ago · link · parent

The "insurance" you seek is in the form of different investments that are probably more stable (e.g. bonds, or something in an entirely different market like buying a house).

Stocks given as rewards should be treated, in my opinion, as valueless (i.e. make sure you have enough for rent and food based on what is actually paid, not some theoretical future that depends on stocks). Treat it like cash that you may or may not find on the street: "great, IF you get something, otherwise no worse off".

1
333435
98