HNHacker News
TopNewBestAskShowJobs

martinp

957 karma · joined June 28, 2009

Software engineer in Trondheim, Norway.

https://github.com/mpolden

submissionscomments
martinp··on The Origin of the <blink> Tag
The engineer who implemented it has been in hiding since the late 90s.
martinp··on BSD for Linux Users (2005)
One of the things I like best about FreeBSD is the ports collection, since it allows me to keep software updated and current as opposed to pre-compiled packages (only Arch Linux comes close) in the Linux world. At the same time, the base system (kernel+world) stays stable. This is also why I would choose FreeBSD over source-based Linux distros, since the latter updates everything to bleeding edge, even the kernel.

Also, sometimes I get the feeling that the FreeBSD world is less about politics and more about getting stuff to work. This makes porting software easier (ZFS for example).

martinp··on Would you buy a laptop locked down like the iPad?
GWT (Google Web Toolkit) lets you write webapps using only Java, the GWT compiler compiles/translates the code to optimized and cross-browser compatible JavaScript. If you also use Java on the serverside, you're down to one language. There's also a plugin that integrates nicely with Eclipse.
martinp··on Unix recovery legend
"4.4BSD" isn't the same as FreeBSD 4.4, but actually version 4.4 of the original BSD which was released in June 1994.
martinp··on MS and Oracle's big dev tools - who needs 'em? - Viva Emacs and Vim
Most users of Visual Studio I've spoken to usually recommendeds the ReSharper addon, like you just did. ReSharper is a nice tool, no doubt about it. But what I don't understand is how Visual Studio can be so big and heavy and still don't have refactoring tools that can match ReSharper.
martinp··on MS and Oracle's big dev tools - who needs 'em? - Viva Emacs and Vim
The funny thing is that when compared to Visual Studio (and JDeveloper?), NetBeans, IntelliJ and even Eclipse can be considered lightweight.
martinp··on Weight Lifting for Hackers
"I think one of the biggest errors I see at the gym are people NOT pushing 110%. No gains will be made unless you push yourself to the max." This is essentialy the most important of working out in my eyes. If you're not pushing yourself to the max, you won't see any results.
martinp··on The Awful Anti-Pirate System That Will Probably Work
Somewhat informative article, but I disagree with the conclusion. Assassins Creed 2 isn't going to be the best game ever, it's not even an original game, just another sequel. So it's not like people are going to buy it no matter what kind of crazy DRM they must suffer through. I imagine that Ubisoft will loose a lot customers because of this decision.
martinp··on Ask HN: If you were to learn a programming language for your first time
C# and Java enforces too many OO concepts to be a good choice for beginners. Start with something easy like Python or Perl.
martinp··on Unix-like virtual shell inside browser
Trying the traditional bash fork bomb gives a rather fun screen. Try entering the following

  :(){ :|:& };:
martinp··on Things You Probably Didn’t Know About PHP
2. You can check if a email is valid by the checkdnsrr() function. It checks the email’s host address if it’s a valid DNS record.

Should this function really be used for email validation?

5. Easily unpack numeric arrays using the well-know function list <snip> Have you ever seen better code for swapping two variables’ values !?

Yes, try Python: a, b = b, a

martinp··on Private Methods are a Code Smell
"Often, such private methods have gnarly dependencies because they directly access or modify internal state. Moving these methods to appropriate collaborators (again, creating new classes as necessary) exposes such dependencies."

This is usually why I create private methods in the first place. The methods modify internal state and they're too specific to the problem in question to move them into a separate class. Making them public just doesn't make sense and seems to break the principle of encapsulation.

Also, wouldn't moving these methods into a new class affect performance? For example if you have a private method that does some complex operations on a private/local collection, instead of performing the operations directly on the collection you have to pass the it back and forth to the public method in another class.

martinp··on HN: share your unneeded Google Wave invites
Yeah, why not. Been wanting to test it since their first demo. http://mailhide.recaptcha.net/d?k=011dsUrNgCue-RGivTU55OZw==... Thanks!
martinp··on Software Programmers Should Never Have Dress Codes
Very true. I'm not even sure I would trust a coder in a suit and tie..
martinp··on After the boom, is Wikipedia heading for bust?
Same here. In fact, if I'm looking for information on a specific subject I will most often go straight to Wikipedia as they have an article on what I'm looking for in 99% of the cases. Especially if I'm looking for just a general overview of a subject, even technical ones. If the subject is more general, or loosely defined (sentence, error message etc.) I use Google.
martinp··on Ask HN: What websites do you frequent?
This one, /r/programming, Slashdot, Coding Horror, Stackoverflow, xkcd, Ars Technica and a bunch of other ones through Google Reader
martinp··on SSH server 0-day exploit
What they mean by "older version" isn't specified anywhere. It could mean not current for all we know, e.g. < 5.2 (unlikely though). Almost none of the popular distros use the latest version, will be interesting to see which ones are affected.
← PreviousPage 4 of 4