12,740 karma · joined Feb 17, 2008 (18y ago) · 2,917 submissions
comment 9y ago · link · parent
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
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
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
comment 9y ago · link · parent
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
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
comment 9y ago · link · parent
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
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
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
>>> 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_VALUEcomment 9y ago · link · parent
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
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
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
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
comment 9y ago · link · parent
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
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
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
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
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".