HNHacker News
TopNewBestAskShowJobs

rvkennedy

697 karma · joined October 24, 2010

I'm Roderick Kennedy, I'm involved with comms.io as a developer. Comms is a novel email client for Gmail and IMAP.
submissionscomments
rvkennedy··on Comment your damn code
Why comments are important: they represent intention.

A reasonable complex method can have a wide variety of inputs which the author can't be expected to have tested across the entire range of values. For example, if you have six boolean inputs, you have 2^6=64 possible combinations.

If you have six integer inputs, you have roughly (4e9)^6=4e57 combinations, which is more than the number of atoms in the Earth.

Expressing your intention means that when you (or someone else) come back to the code to change it, you can at least have an awareness of whether the behaviour you are seeing is in line with what you intended. Because a bug might not even be a bug - in that code - but a misuse of a method for something it wasn't meant to do.

rvkennedy··on C++14
"There is now (thanks to CERN's presence :-) a working group on reflection in C++."

A few years ago I built an entire framework for automatic reflection in C++ - it worked by querying the export table of the executable or library. Eventually I lost interest and let the project slide, but I think this approach would be a good one to build on.

rvkennedy··on I am a statistician and I buy lottery tickets
The main thing to be learned from this post is that the “Super 7’s Oz Lotto” is clearly a badly run lottery. If the expected return for a ticket is greater than the price, this lottery is losing money for the organizers.

Perhaps this explains the glum-looking face on their logo: https://media.tatts.com/images/lotto/tattersalls/site-logo-t...

rvkennedy··on A year on, Ultrabooks are a worse disaster than most expected
I got an 11-inch Asus UX21E to replace my heavy, battery-hog 17-inch HP monster. I chose it for two reasons:

1. It's really, really light, I can carry it in one hand or in my Muji manbag. And it's a PC.

2. It's an i5, so while it's fast enough for web and email, the limitations of CPU and GPU power keep me honest as a client-side coder.

Six months on, I can't fault it. I'll upgrade when DX11 GPU's become available, but for now it's perfect. If I needed a Mac, I'd get an Air, but I need a PC: I can't imagine ever going back to a full-fat laptop, and tablets are simply not for C++ coders, end of story.

rvkennedy··on Benjamin Franklin's 13 virtues
Technology is the chief driver of social mores. In Franklin's time, too much sex would likely expose you to health hazards such as syphilis, or unwanted babies. Today, we have medicine and contraception that should minimize these risks. But I think this point still applies - it just depends on your definition of "rarely"... no more than twice a day perhaps!
rvkennedy··on The Singularity is not coming
It's about computation improving the rate of computational progress

But computation doesn't improve the rate of computational progress. That's achieved by improvements in manufacturing. Computation does help a little, giving us better tools for chip design. But mainly it's manufacturing.

The only way for computational progress to exponentiate, past the limit of Moore's Law, is to use more physical resources - computers get literally bigger.

And so expensive that only the five richest crowned heads of Europe can afford them!

rvkennedy··on The year 2000 illustrated in 1900
These are clearly supposed to be funny.

People in diving suits fishing for birds?

The school where books are ground up and electrified into pupils' heads?

A serious attempt to predict the future is a rare thing indeed, even on the part of science fiction writers, who are often more concerned with allegory and the exploration of ideas than with literally trying to figure out what the future will look like.

For my money one of the best "future visions" is Spielberg's Minority Report. Not for "pre-crime", but for the suburbs that still look like suburbs, the personalized advertising (perhaps a little extreme), and the general normality of the cities (aside from the silly vertical freeways). The future looks a lot like now - because buildings last a long time, and the landscape changes even less than that.

rvkennedy··on Sparrow for Windows was just a few weeks away
Comms (www.comms.io) is my project, it's a lightweight IMAP client for which Windows is the initial platform. The alpha is a few weeks off.
rvkennedy··on Decentralised social network built on top of email
I guess I'd say It's valid if people weren't already aware of it.

I wasn't aware of it, and I'm actually building it.

rvkennedy··on Why are Europeans White?
Sexual selection has always seemed to me to be an answer that begs the question. If you suppose that there's a preference for a trait, that would explain its evolution, but it wouldn't explain how the preference evolved.
rvkennedy··on 2:40
He kinda lost me with the unfunny cartoon, the sugar but no milk, and the microwaving the water for your tea thing. For an alternative, and I think authoritative opinion, try Christopher Hitchens, here: http://www.guardian.co.uk/theguardian/2011/jan/03/christophe...
rvkennedy··on Meet the tireless entrepreneur who squatted at AOL
This goes to the definition of "ethical", and it's distinct from "moral", in the sense that ethics are a codified set of rules or guidelines: one does not judge something as ethical based on the result, but based on its conformity to a set of explicit or implicit expectations of conduct.
rvkennedy··on Microsoft Pulling Free Development Tools for Windows 8 Desktop Apps
It's long past time since Visual Studio was the only game in town. Back when it was between VS6 and Borland C++ Builder, I was initially attracted by Builder's drag-and-drop UI construction - it seemed very odd at the time that "Visual" studio didn't offer that functionality. But Borland's descent into bug-ridden stagnation and my discovery of wxWidgets pushed me into the VC++ world for upwards of a decade.

But now with Eclipse reaching maturity (it's the main IDE at the banking multinational where I recently worked), I'm finding less and less justification to stick with Visual Studio when my MSDN subscription expires. Another very promising tool is Qt Creator: http://qt.nokia.com/products/developer-tools

This has less of the UI quirkiness of Eclipse, and the built-in documentation is great. Qt is now using Clang for code validation, but can be set to use Gcc or the Microsoft compiler. So given that I'm using Qt anyway for cross-platform UI, this may be the way forward.

rvkennedy··on Meet the tireless entrepreneur who squatted at AOL
I think they would. Suppose you extract the transplantable organs of a dead patient without permission, is it ethical? Have you harmed the patient? If the relatives don't find out, are they harmed?
rvkennedy··on The trouble with Checked Exceptions (C# architect)
I have long wondered about the syntax of exceptions - if it was:

  void function()
  {
  try:
    function_body...
  catch(Exception e):
  finally:
  }
By leaving the function body in the same indentation as it would be without exception handling, this might help to make the code a little more readable than:

  void function()
  {
    try
    {
      function_body...
    }
    catch(Exception e)
    {
    }
    finally
    {
    }
  }
rvkennedy··on After Facebook fails
It is clearly their plan to do this, and in line with their stated intent to form the "identity layer" for the web. It's unlikely to work though, because the web has a great tendency to upset the plans of those who want to basically control the whole thing. It's sure that some kind of identity layer will come into use, but an open system (maybe a descendant of OpenID, maybe not) will always have the advantage of allowing myriad people and (importantly) companies to do different things with it. And that's the kind of evolutionary openness that saw off AOL in the 90's in favour of the web.
rvkennedy··on How Facebook Fucked Up Its Own IPO
The author is Barry Ritholtz, and yes, he knows how stock markets work: http://www.ritholtz.com/blog/barry-ritholtz-curriculum-vitae...
rvkennedy··on Build the "USS Enterprise" in 20 years, for 1 trillion USD
Actually, a "long time" in space propulsion terms means more than a couple of minutes. The specific impulse of ion engines is sufficiently high that with sufficiently large engines, you would be talking weeks to get to Mars, rather than months by rocket.
rvkennedy··on Wil Wheaton: Yo Hollywood, Let Me Download Ubuntu
I think BBC iPlayer uses torrents internally to deliver its programmes. There's DRM, but it's not very restrictive. I throw my money at them once a year.
rvkennedy··on Storing Date/Times in Databases
I always store it as a UTC double-precision Julian day value (not Julian Day Number - that would be an integer). This has the advantage of being able to represent small fractions of a second, but having differences that are easily comparable by eye - each whole number represents a day.
rvkennedy··on Apple to drop Google Maps in iOS 6 for in-house Maps?
And all I want is a decent Google Maps app on my iPhone. The Android map is so far above what iOS offers - having recently lost my Galaxy s2 to a freak elevator accident I thought I'd go back to iPhone for a while, and this was one of many shocks to the system. I'm approaching the feeling that the only things iPhone does better than Android (for my purposes) is store music and sync podcasts.
rvkennedy··on Inbox.py: SMTP for Humans
Is there a Python-based IMAP server?
rvkennedy··on Software good practices applied to the car industry
Many modern software practices, under the banner of "agile", come from the car industry: http://www.radupoenaru.com/agile-roots-toyota-production-sys...
rvkennedy··on Macho cultures are fairer for women
This is a very short post, with minimal statistical force, carrying the weight of precisely one writer's opinion, radically generalized to a universal law. Skip it.
rvkennedy··on Functional Programming in C++
I like this a lot because it summarizes the direction my own C++ has taken since I first learned about FP. I've found that making a member method functional (i.e. changing usage of member variables into passed parameters where reasonable - I never use globals) makes it more reusable from an OO point of view. The biggest gains by far have been in multithreaded programming.
rvkennedy··on The Invention of Jaywalking
Funny story is a friend who jay walked at 2am in a western European village.

It seems to be illegal in Germany at least. Individual liberty as a concept has a stronger history in the UK than on the continent.

rvkennedy··on Show HN: Email that self-destructs when forwarded
Quite right, and interesting, because you're then sending a copy of the email as defined by MIME. What you're not doing is modifying the original - as soon as you do so, it becomes a different email.
rvkennedy··on Show HN: Email that self-destructs when forwarded
I really feel that this is not what email is for. An email is an historic document, atomic, and linked to a specific time of sending. When you forward a mail, you're not sending that actual mail, you're creating a new mail that references the original. In other words:

web = procedural

email = functional

rvkennedy··on Time to ditch the arrogant tech blogs
Every time a random blog like this surfaces on HN I make a point of considering the source, by clicking through a few of the other articles. In this and many other cases, scratch the bland surface of the linked post and you'll find this kind of nutty political screed: http://www.kernelmag.com/yiannopoulos/1786/extreme-cognitive...

So handle with care.

rvkennedy··on The Shadow Superpower
tl;dr: Having conducted an exhaustive study of the world's economic future, it turns out that it conforms almost exactly to my libertarian worldview!
← PreviousPage 3 of 6Next →