HNHacker News
TopNewBestAskShowJobs

ZeroMinx

2,624 karma · joined June 16, 2010

Contact: magnus@erixzon.com
submissionscomments
ZeroMinx··on Why To Write Tests For Your Code
There are obviously many reasons, but to add a couple;

Fight regression

You don't want to fix the same bug several times, do you? When a bug is found, I first write a test to repeat the bug. Then I fix the code. Now every time I want to release a new version, that particular bug is tested yet again.

The 'quick fix' 5 minutes before launch

You're approaching deadline, everything is looking fine. Then, just before launch, a small bug or a tiny new feature has to be added. You can't imagine that would have side effects, can you? Well, that one bit of code, a small module that 'never changes', which you haven't looked at for 12+ months, reacts badly to this change. With good tests in place you catch this before you hit production problems.

ZeroMinx··on Why Ubuntu Linux is now ready for primetime
That's not Ubuntus fault. I'm thinking it wouldn't be easier to fix your boot loader in Windows.
ZeroMinx··on Steve Jobs Resigns as CEO of Apple
Yup, http://www.meetup.com/HNLondon/events/29224501/
ZeroMinx··on What Happens to Tablets in Europe if Apple Wins in Germany?
We can't let facts and reality come in the way of a good law suit now, can we?
ZeroMinx··on Happy birthday Dancer - two years of the Perl Dancer web framework project
I'm curious why Dancer keep being attacked.. It was recently attacked on http://cpanratings.perl.org/ as well (but those "ratings" have now been removed).
ZeroMinx··on Why Users Fill Out Forms Faster with Unified Text Fields
I'd argue that the natural option would be

07920748555

When writing it you might choose to add spaces, but that'd be for readability, not because of some notion of area codes.

It's clear even from the name that area codes doesn't apply to _mobile_ phone numbers.

ZeroMinx··on Why Users Fill Out Forms Faster with Unified Text Fields
"2. There are exactly 50 states, so 50 names and 50 abbreviations."

Considering the Internets is a really really big place (not just America), that statement is rather quite false.

ZeroMinx··on Why Users Fill Out Forms Faster with Unified Text Fields
I'm in the UK, and I don't think it's obvious what part of a mobile number is the "area code". With a phone number of 11 digits, how many digits form the area code? In a world where numbers aren't even connected to specific provider, the concept of area codes for mobile phones is broken. (Technically, my area code should start with +44 as well, as that's my area from an international point of view).

With landlines, you know which part of your number is the area code, because it has significance. If you call people living near you, you don't dial that code. This behaviour doesn't translate to mobiles.

ZeroMinx··on Google Tried To Buy Color For $200 Million. Color Said No.
I love going to gigs, but.. I prefer to remember my experience of what happened, which is not something that can be caught on camera.

(note 1; I know I'm not the target audience for any social network)

(note 2; I really dislike the fact that the audiences to gigs are just filled with people holding up their mobile. Instead of trying to get a pic to put on FB, why don't you try enjoy actually being there?!)

ZeroMinx··on Poll: What do you find buying online really hard or annoying?
I find the Ocado website (and mobile app) quite good. Their service is also excellent.
ZeroMinx··on LulzSec supposedly claims its biggest coup yet: The entire UK 2011 Census
It's on the Met Police site - http://content.met.police.uk/News/eCrime-unit-arrest-man/126...
ZeroMinx··on LulzSec supposedly claims its biggest coup yet: The entire UK 2011 Census
I haven't seen "Census" mentioned in their twitter feed (yet), so as far as I know the only source is a bit of anonymous text on pastebin. Anyone could put that there.
ZeroMinx··on Spotify, or Get Off the Pot…Seriously
"The British are coming! The British are coming!"

Not that it technically changes anything, but Spotify is Swedish.

ZeroMinx··on Kratko.js: Refactoring JavaScript
You can quite likely see that by inspection, but there could be some value in having them added up instantly, especially with a large code base.

[I haven't tried Kratko]

ZeroMinx··on [dead]
People have always been saying stupid things. The only difference now is that if you say it online, it's saved forever.

Yes, it's quite possible most would withdraw their statements if they were publicly confronted -- but, does that make it better? If I am feeling anger/hatred toward a race, but does not speak up in public, is that not "real racism"?

ZeroMinx··on Depression, Burn Out and Writing Code
Agreed, and I love the fact that we've got all kinds of knowledge on this forum. I want to thank brian and niels again for their input.
ZeroMinx··on Depression, Burn Out and Writing Code
Then we get to causality;

Are active, stress-free people more likely to have a drink with dinner, or is a drink with dinner helping to relieve stress?

I quite enjoy having a drink after work, especially if it's been a lot of pressure during the day. It helps me relax, disconnect from the work situation. A couple of beers and non-work-related chat will take my mind off any stressful work I've been doing, which could otherwise carry on in my mind throughout the night.

ZeroMinx··on Why I’m Putting All My Savings Into Bitcoin
Let's be clear that this is Rick Falkvinge, founder of the first Pirate Party. His title is now "political evangelist". It's not surprising that he's in favour of a currency that is free from government control.

(Not that I disagree with him in general, I just thought this is something to take into account reading this article)

ZeroMinx··on Depression, Burn Out and Writing Code
Thank you both for your answers.

What I was initially looking for was something to back up the claim "it takes a week to recover from a night of serious drinking.". Niels is arguing that this could be true for alcoholics with DT. While I wont argue that, I don't think the original statement was referring to alcoholics, but rather anyone who goes out for a night of serious drinking. I haven't seen any proof for the original statement.

I'm not a doctor in any way, shape or form, but I would still like to argue the running point in Niels' second post, alcohol is a bad idea.. Overconsumption, yes, but that's true for almost anything. I don't think smaller amounts is a bad idea -- on the contrary. I recently heard a statement that the UK recommended limit (21 units per week) was just made up, and studies have shown that you're more likely to live longer if you drink around 40-50 units per week (somewhere after that number, the life expectancy starts dropping and goes below the life expectancy for people not drinking). I'm afraid I can't remember where I heard/saw it though, so I'll have to leave a [citation needed] for myself for the time being.

ZeroMinx··on Depression, Burn Out and Writing Code
"Use alcohol sparingly: one drink is fine, but it takes a week to recover from a night of serious drinking."

[citation needed]

ZeroMinx··on London Hacker News Meetup - Thursday, 12th May
Really wish I could make it, but can't :( Atari Teenage Riot are in town...
ZeroMinx··on The 10 commandments of good source control management
I disagree. Get your code updates in there when leaving for the evening/weekend. But, of course, you'll do it in your own project branch that doesn't affect other people.
ZeroMinx··on My Google Rejection Letter
Yes, rather quite bitter. You busted a job interview, get over it.
ZeroMinx··on 100,000 people pressure Apple to shut down 'Gay Cure' app
This just, again, shows the core problem with censorship. By removing the right for the user to choose which app to download, Apple takes upon itself to filter out "inappropriate" apps. Where do you draw the line? To some extent, something will always offend someone.
ZeroMinx··on Ask HN: Which VPS hosting do you use?
I'm using Linode, London data centre, very happy with them.
ZeroMinx··on Want to write some code? Get away from your computer
Hardly news for anyone who's been a developer for a long time. I generally solve my dev problems wandering around London. This has the added bonus of when I've sorted out the problem in my head, I'm at a location I've never been before and have the chance to find a new restaurant/pub. Win/win.
ZeroMinx··on StackExchange allows discussion of techniques for removing DRM.
It's a brave new world when thinking/discussing certain topics is illegal.
ZeroMinx··on My fellow geeks, we need to have a talk.
> I don't know how many times I've watched eager hackers get lambasted for "reinventing the wheel,"

Depends on context.. If it's someone learning, or hacking on some personal project, go ahead! It's a great way to learn.

However, if we're talking about a programmer in a commercial company, it's a different story. Your purpose is not to produce the most amount of your own code, your task is to produce a service of some sort. Unless the software/service you're working on a is a database, I expect you would use an existing database (assuming you need one). If the code you're creating needs to manipulate dates, I expect you use an existing library for such things. It will be available, it will be tested, it will handle all edge cases. Why would it be acceptable to spend a lot of time on reinventing that particular wheel, fixing bugs as they arise, etc?

ZeroMinx··on My fellow geeks, we need to have a talk.
While I agree with this to some extent, I'd just like to comment on the the skateboarding analogy; You were probably taking it one step at a time, learning to stand on the board, increase your speed, make turns. Once you got all that done, you might move on to try some tricks, perhaps trying to learn the rock to fakie trick. What you _didn't_ do was, on your 2nd day, to scream out "why am I not sticking my 720 kickflip?!?!".

The latter is fairly common in the world of programming, in my experience.

(There's obviously also a big difference between being physically together with the people in a skatepark and sitting on the other end of an IRC session.)

ZeroMinx··on Don't touch me, I'm British
Yey, different countries/cultures have different traditions. Film at 11. If you want to be useful, set up a site/wiki that can describe the different traditions in different countries. That would be useful.
← PreviousPage 3 of 7Next →