HNHacker News
TopNewBestAskShowJobs

voyou

973 karma · joined June 21, 2011

submissionscomments
voyou··on Playboy to Drop Nudity as Internet Fills Demand
I don't remember where I read this, so I can't really vouch for its reliability, but supposedly the articles were the magazine's original reason for existing. The story I read was that Hefner pitched a lifestyle magazine to publishers, but they were worried that the material he wanted to include - cocktails, interior design, arts - would be perceived as "too gay," and so discourage straight men from buying the magazine. Hence the naked women were added to make the reader feel secure in their heterosexuality.
voyou··on Playboy to Drop Nudity as Internet Fills Demand
Although it turns out that the "return" of Page 3 was itself the advertising ploy, inasmuch it was only a one-off. Since then, The Sun has apparently not carried pictures of topless models on page 3: http://www.theguardian.com/media/greenslade/2015/mar/06/the-...
voyou··on Google Nexus 5x and 6P
"their user experience has always been terrible."

What's so terrible about the user experience? I put in an SD card, my phone has more storage space, and I don't think about it any more. Seems like a pretty perfect user experience.

voyou··on Hit Charade
Where's the pretence, though? I don't see anything in that article about anyone pretending anything; just some details about pop music production which the author - presumably because he isn't very interested in pop music - didn't know.
voyou··on Bernie Sanders' 404 page
Bernie Sanders is a socialist,[1] and social democracy is a type of socialism.[2] That blog you linked to is, at best, advocating a very idiosyncratic use of terminology.

1: http://www.washingtonpost.com/wp-dyn/content/article/2006/11... 2: http://www.britannica.com/topic/social-democracy

voyou··on Python Extension Proposal 498: Literal String Formatting
There's an interesting competing PEP which allows for the way in which the expressions are interpolated into the string to be customized: https://www.python.org/dev/peps/pep-0501/
voyou··on Python Extension Proposal 498: Literal String Formatting
I don't think this is actually a security concern. The only place f-strings are evaluated is where they're directly included in the source; they can't be supplied by a user (unless you're using "eval," in which case the security concern applies with or without f-strings). As the PEP says:

"Because the f-strings are evaluated where the string appears in the source code, there is no additional expressiveness available with f-strings. There are also no additional security concerns: you could have also just written the same expression, not inside of an f-string."

voyou··on Python Extension Proposal 498: Literal String Formatting
"It would also render the previous ways obsolete."

I don't think it would. If I understand this PEP correctly, the "format" method is significantly more dynamic. For instance, I don't think this new PEP would allow for cases where the template isn't stored directly in the program, or where the values to interpolate are not local variables. So you would still need to keep str.format around for those use cases.

voyou··on Interview with Dennis Ritchie, Bjarne Stroustrup, and James Gosling (2000)
7000 years later and we're still communicating with glorified cuneiform. Maybe the reason we're using text for programming is because text is a really, really, good way of communicating abstract thought?

I think it's great for people to experiment with different ways of expressing programs. But I don't think the fact that programming is mostly text-based is necessarily a cause for disappointment, and my guess is that any future form of programming will look more like augmented or improved text, rather than something completely different to today's programming.

voyou··on One-Time SSH Keys
I think the "untrusted system" in question is the system you're logging on from, because that's the only place where the private key could be compromised. I guess the idea is something like, you have a desperate need to log in to a server but the only computer you have physical access to is a machine you don't control (in an internet cafe, say). So you keep your one-time SSH key on a flash drive, use that key on the untrusted machine to log into your server, and you don't have to worry about the untrusted machine keeping a copy of your key (because that key is no longer valid). On the other hand, you do still have to worry about the untrusted machine injecting malicious commands into your session (including, possibly, malicious commands which would allow the attacker to log in to the server as you again in the future).
voyou··on Lazy load responsive images
From that link: "Lazy loading is a technique that defers image loading until it becomes visible on the screen."

Isn't this exactly the "pointless lazy-loading" that you and the OP are complaining about? If what you want is to "load only the right size images for different devices," and you're targeting browsers that support srcset, you can just use srcset.

voyou··on Will Unix become the next MS-DOS? (1985) [video]
Funnily, as it turned out, VMS became the new MS-DOS (well, kind of: http://windowsitpro.com/windows-client/windows-nt-and-vms-re... )
voyou··on Show HN: My SSH server knows who you are
"It's because the URL is supposed to identify the project, not the user. If the URL included the user's own username, that URL wouldn't work for anyone else."

Couldn't the URL just not include a username, though? Then when git tries to establish an ssh connection, it could try the local username (like ssh does by default), or a username specified somewhere in a config file.

voyou··on Always Connected: Generation Z, the “Digitarians”
"Building something cool in minecraft is pretty different from watching spongebob on netflix."

Is it? Why is watching and thinking about something less valuable than "building" something?

voyou··on Windows 10 uses your bandwidth to send other people updates
"It's not a compelling product they can get people to pay for, unlike all previous versions of Windows."

I don't think Windows has been a compelling product people pay for since Windows 95 (or just maybe XP). How many home users specifically go out of their way to buy Windows? IME most people use whichever version of Windows comes with their computer when they buy it, and only change versions when they buy a new computer. So the people who are getting a Windows 10 upgrade for free are mostly people who wouldn't have bought it anyway.

voyou··on Scheme vs. Python (2011)
Python supports closures even when the variable isn't a container. For instance:

    def add_double(n):
        x = n * 2
        def add(y):
            return x + y
        return add
    
    f = add_double(1)
    f(2) # -> 4
What python versions prior to 3 didn't support is rebinding a variable from an enclosing scope; not because of any fundamental feature of the implementation, but because there was no syntactic way to differentiate between a assigning to a variable in an enclosing scope, and creating a variable in the current scope. So x += 2 is short for x = x + 2, which python interprets as creating a new variable x in the current scope and then trying to access that variable before it's been assigned.

Python 3 introduced a syntax to specify that you wanted to assign to a variable from an enclosing scope, the 'nonlocal' keyword. So your example would be:

    def even():
      x = 0
      def add():
        nonlocal x
        x += 2
        return x
      return add
    count = even()
    count()  # → 2
    count()  # → 4
voyou··on ES6 in Depth: Classes
"The 'cloning' is abstract: it doesn't refer to an actual duplication."

But it's not just abstract, it has real implications, because JavaScript objects share implementation of the delegated methods; that is, they behave just like objects in class-based languages.

Classes in Python, Smalltalk, etc, are also instances; it's just that these language has facilities to produce particular sorts of instances which are well-suited for being delegated to (and take some measures to enforce the use of these facilities), whereas traditionally in JavaScript conventions are used to distinguish those object which are delegated to, and those objects which are not. However, the distinction between objects which are delegated to (i.e., classes) and object which are not exists just as much in JavaScript as it does in with classical inheritance.

voyou··on ES6 in Depth: Classes
I think Crockford is wrong in that linked article. What he presents as unique features of prototype-based OO seem to really be features of highly dynamic OO. All of the things he implements in that article could be implemented just as easily (indeed, in more-or-less the same way) in Python or Smalltalk, couldn't they?
voyou··on ES6 in Depth: Classes
Is JavaScript really a prototype-based language? In prototype-based programming, you create an object which has shared functionality (the prototype), and then create new objects by cloning that object. That's not how you implement shared functionality in JavaScript; in JavaScript, you implement shared functionality by delegating to another object. In other words, JavaScript objects work like Python, or Ruby, or Smalltalk (yes, unlike these languages JavaScript, until ES6, makes no language-level distinction between an object which is also a class, and an object which isn't a class, but that's just a matter of syntactic sugar).
voyou··on Solving Every Sudoku Puzzle (2006)
The odd thing is that, on the evidence of those blog posts, Jeffries, doesn't appear to understand TDD. If you're using TDD to write a sudoku solver, surely the first thing you should write is a test for your "solve_sudoku" function; then your design is supposed to evolve out of the code you write to pass that test (and the further tests you write for parts of that solution, iteratively). But Jeffries starts writing a bunch of tests for a the low-level details of the representation of a sudoku board. There isn't really any "design" in those posts at all; just a guess at something you might use in a solution to the problem.
voyou··on In Technology, Small Fish Almost Always Eat Big Fish
Seems rather unconvincing to frame your article on "small fish" eating "big fish" with a story about big fish IBM vs the small fish of DEC and Sun. IBM currently has (according to Google) a market capitalisation of 160 billion dollars; DEC and Sun don't exist any more.
voyou··on GraphQL Working Draft
I wonder how important readability is in this case, though. How likely is it that this language will be written (or read) directly by people, rather than generated and consumed by programs? The potential bugs in generators and parsers (think SQL injection) seem like a real cost, which I would have thought would outweigh the benefit of improved readability.
voyou··on Virtual Reality Will Bring Back the Arcade
It would be interesting to see a comparison of today's possibilities for VR in arcades, with the VR arcade machines of the early 90s [1]. VR didn't save arcades then; are there differences in today's VR games (or in today's home computing market) that make VR arcades a better bet now?

[1]: https://en.wikipedia.org/wiki/Virtuality_(gaming)

voyou··on How Arel Converts Ruby Queries into SQL Statements
Yes, that description of the visitor pattern seems wrong to me. The visitor pattern isn't about operating on the elements of collections, it's about altering behavior depending on the type of object being operated on.
voyou··on Mattermost: Open-source, on-premises, Slack alternative
What do you mean by "trigger the AGPL for all the systems that are network-connected to the AGPL system"?

The AGPL requires that you offer to distribute the source code to derivative works you make of AGPLed code; and it requires that you make that offer to a) people you have distributed binaries to and b) people you permit to access that derivative work over a network.

I guess I can imagine someone arguing that, by integrating Mattermost (for example) with another system, you are thereby giving users of that other system access to your installation of Mattermost, and so you would be required to offer them the source to that installation of Mattermost. Is that what you mean by "trigger the AGPL"?

voyou··on Introducing the Famous Framework
Yep. There's also some good discussion on the Portland Pattern Repository, particularly this discussion[1] about how the meaning of "Controller" changed from it's original Smalltalk meaning (where it is the component that updates the model in response to user input) to the way it's sometimes used today (as an object which mediates communication between the model and the view).

[1] http://c2.com/cgi/wiki?WhatsaControllerAnyway

voyou··on Commit messages are not titles
I don't see how this is a counterpoint. tpope says "This first line should be a concise summary of the changes introduced by the commit", and antirez says the first line should be a "synopsis of the meaning of the change operated by the commit"; these appear to be exactly the same thing.

But then, I don't understand the distinction the original post seems to be making between "titles or subjects" and "synopses." A good title or subject for a git commit is a synopsis of the changes in the commit, in the same way a good headline for a newspaper article is a synopsis of the article.

voyou··on Google Design
"the add button in the bottom right is supposed to be a menu instead of an action."

Not according to Google's Material Design "spec", it isn't: "A floating action button represents the primary action in an application." (http://www.google.com/design/spec/components/buttons-floatin...)

Additional actions should go on the action bar.

voyou··on The truth about Unix: The user interface is horrid (1981) [pdf]
Sometimes I start a long-running process, redirecting it's output, and periodically look at the output file while this process is running. Your proposed solution wouldn't allow for that.
voyou··on Double-clicking on the Web
I don't see the problem. Contrary to the post, double clicking a link doesn't open it twice, and double clicking a submit button doesn't submit the form twice; at least, not on Chrome or Firefox on Linux.
← PreviousPage 2 of 11Next →