HNHacker News
TopNewBestAskShowJobs

mhomde

1,054 karma · joined September 20, 2012

I live in Stockholm. I Like palt, snow and a good mojito :)
submissionscomments
mhomde··on John Carmack .plan Archive (2014)
I was never much into fingering unfortunately
mhomde··on The decline of Stack Overflow (2015)
I'm a bit divided about Stack Overflow. On one hand side it's simply one, if not the best, resource for programmers. On the other hand it's become somewhat toxic and counterproductive. The better you become as a programmer the less value you derive from it. The true niche experts are less and less to be found (ie Product/Project -owners and Microsoft/Google/Apple etc -employees) and the other replies will often be exasperating mixture of trying to give answers they've googled or complain about some meta-aspect of the question.

Any community that reaches a certain size will face unique problems and I think Stack Overflow has some of the same problem as reddit does: you have to be very careful on how you give power to users. Power corrupts and becomes a goal/game in itself. Karma/power is a great incentive in the beginning of a community, but can become destructive in the long run. That some programmers have a certain type of personality is probably not helping either.

There seems to be many småpåvar on Stack Overflow that loves to wield the small amount of power they've accrued without actually contributing that much. On the other hand you have to enforce rules and curation to keep quality up.

It's a very fine balance and hard to get right. It's mostly about human psychology and incentives. I think there's some tweaks they could do to improve things but I also understand that from their perspective why change something that works?

The danger is that the true experts stop helping/answering questions on Stack Overflow because they find the community becoming too toxic. Might turn into a downwards spiral until there's mostly trolls and newbies left.

mhomde··on John Carmack .plan Archive (2014)
Pff, 2014. I remember the good 'ol days when you read Carmack's plan on Blues News as he was discovering BSP tree's and firing Romero :)
mhomde··on Snapchat Releases First Hardware Product, Spectacles
One step closer to a Black Mirror episode :)
mhomde··on House panel looking into Reddit post about Clinton's email server
Just when you thought this election couldn't get any weirder... there's a major scoop about Clinton on r/conspiracy
mhomde··on Why Isn’t F# the King of .NET?
thanks for the tip!
mhomde··on Why Isn’t F# the King of .NET?
I generally like var, however one thing I've found to bite me in the ass occasionally is using var for results returned from asynchronous operations... and then forgetting to use await on it :)
mhomde··on Why Isn’t F# the King of .NET?
I actually think it's catch-22 with popularity as well as being a bit niché.

* When choosing language/platform for enterprise projects (where .Net is most commonly used) the company will go with one where they can find/have talent and resources. There's not many F# developers out there so you're severely limiting yourself.

* Since C# is more popular and has better tooling there has to be a substantial advantage of using F# instead. From what I can see that may only happen in certain financial and engineering solutions where minimizing the risk of errors, unit conversions, calculations etc is severe (Lose a couple of million dollars/Challenger-explosion -severe). Those projects are pretty far between ,and in some of them you can simply make do with c#. Another problem might some of those kinda of projects are usually not done in .Net to begin with.

It seems that F# is very nice for projects that are more based around calculations and formulas, but that's not enough for it to gain critical mass. Also C# has been encroaching on F# by becoming more functional with things like LINQ, lambdas etc. The type system is worse (C# main weakness right now), but still.

I'm no F# expert though so feel free to correct me

mhomde··on What to Do When Your Colleague Creates Spaghetti Code
Yeah... they're really handy for separating generated code from user code... but having to segment classes with them is a rather foul code smell :)

Haha, wow, that's another way to go I guess. It never ceases to amaze me how inexperienced programmers can brute force problems with the limited tools they possess :)

mhomde··on What to Do When Your Colleague Creates Spaghetti Code
Well that's one harmful pattern, but by no means the only one, you also have "The Blob". I once worked on a project where the code in general was pretty good but the programmers had seemingly no knowledge of design patterns at all. Code was contained in these giant classes, they actually used partial files with underscores in the naming to segment it, ugh.

Took quite some effort to disentangle that. As with most things no extreme is good, neither Blobs nor Poltergeists :)

mhomde··on The Case for Wooden Skyscrapers
Nice building, looks very Scandinavian/danish to me for some reason :)
mhomde··on The Case for Wooden Skyscrapers
There's a really interested building material called CLT (cross-laminated timber) that's exceptionally strong and durable, and has good fire resistant properties. In Sweden some have started building houses out of them since their load bearing qualities enables open floor plans. It's like plywood on steroids and you use giant cutters to assemble buildings in a few large pieces

Here's an article, I think there's a few variant of similar materials, not sure which is "best"

http://www.popsci.com/article/technology/world%E2%80%99s-mos...

mhomde··on Courage
I guess they messed up with the new headquarters, should have made it more of a disc
mhomde··on What’s New in C# 7.0
Yeah, I think lots of uses of out in the .Net framework are from the early days and a little bit of a mistake. Since they can't remove them this is suppose to make them easier to work with. TryGetValue comes to mind, but I agree overall out variables always felt clunky
mhomde··on What’s New in C# 7.0
Wow, lot's of great stuff! I especially like local functions, I'm all for breaking up complicated methods into several methods to simplify and clarify syntax... but it always felt weird that all those methods where on an class scope even though they only were relevant for that method.

This resulted in many cases that those methods needed to be broken out into their own class... which is the way to go some times but felt like a bit of overkill in others

mhomde··on How to Avoid Being Called a Bozo When Producing XML (2005)
JSON is nice for structured data but when it comes to more mixed document style data XML is preferable IMO
mhomde··on Tabs slower than spaces in Firefox
I think the whole notion of programming language as pure text and even using "files" as a unit is veering towards obsoletion. We do it that way because that's the way it's always been done, but I can see plenty of cases where an IDE that uses a more hybrid graphical approach would be beneficial, and we wouldn't have arguments like this :)
mhomde··on Apple Fires Back at Spotify for Asking for 'Preferential Treatment'
Yeah, but that combined with that it's forbidden to circumvent paying inside the app puts app providers in a weird position. For somewhat technical savvy I guess it's not much of problem but I can imagine my mom would be confused why they couldn't pay for the service. Also, every user that is acquired through the app would potentially be a drain on Spotify due to the draconian fee's and there's no feasible way to wean them off the the app store.

I'm not sure of the actual percentage, don't think they're public. Spotify have been desperately trying to sign-up people outside of the App store which I guess is what started this debacle.

If the fee's are so high that you can't go through the app store it feels like it should be lose-lose for everyone.

mhomde··on Apple Fires Back at Spotify for Asking for 'Preferential Treatment'
Apple is being a bit greedy when it comes to subscriptions for high-grossing services IMO. Spotify already has razor thin margins and paying out minuscule licensing fees to content producers, it's not viable to pay out 15-30% off the top to Apple.

However, Apple clearly should be able to require a fee for providing the marketplace and payment framework, and you can see their point in not wanting apps to circumvent that to make it simpler for users to be able to manage their subscriptions easily.

Some kind of cap and/or transaction fee seems more reasonable and would be win-win in the long run. You get a bad taste in your mouth when it feels like Apple is using their walled garden to strong arm competition. You can't compete when your largest rival eliminates your profits.

In the end I think it's to Apple's detriment to play aggressively with content providers in their ecosystem when they're in such fierce competition with Android.

mhomde··on Ask HN: What is your best advice for a developer to write better code?
Write a lot of code, continually rewrite it for the dumbest version of yourself.

Writing code should be highly iterative, and learning to code is as well. The more you write the better you get, and the more you will realize how crappy your old code is. Refactoring should be constant to keep the complexity and amount of code to a feasible minimum.

So, now and again, look over the code you've written, does it seem a bit overwhelming complex, are methods starting to feel bloated? Does some new feature or concept feel artificially grafted on? Then sit down and try to figure out the best way to refactor it into something more streamlined and manageable.

A good way to realize how bad one's code is to take a few weeks break from it, and if when you return you have trouble understanding the full scope of it it's time for a rewrite :)

Be sure to dedicate some time to sharpening your saw, researching new tools, technologies etc. It's easy to do something just because it's the "way I know to do it" rather than putting in the time to learn a better way.

mhomde··on Berlin is now in a position to usurp London as the startup capital of Europe
Klarna, Minecraft, King, Soundcloud, Paradox ...
mhomde··on Berlin is now in a position to usurp London as the startup capital of Europe
I think Berlin and Stockholm are two of the front runners of being "Startup Capital" (whatever that is suppose to mean), having lived in both I can offer some reflections, IMHO of course.

Stockholm is pretty great when it comes to technical and investment maturity. We blew through and did all the stupid dotcom stuff in late 90's, while some have been repeated many successful entrepreneurs learned from that time. Internet access has been really good leading to a lot of good technical talent. It's a beautiful city that want's to be "international" and overall things are very polished. Sweden's also has a track record of producing a few gigantic hits such as Spotify, Soundcloud, Klarna, Skype, Minecraft etc etc.

On the downside the housing situation is insane and everyone has borrowed to the hilt trying to keep up with the ever increasing prices. You can't get hold of an apartment without buying. It's also a pretty expensive place to live. It get's pretty dark & pissy in the winters but summer's are great. I used say that living in Stockholm is 9 months of wondering why the hell you live here and three months where you get the answer.

Berlin in contrast feels like something very unique in Europe and Germany. It's like melting pot of different countries and not quite grown up mentality. Housing is still relatively accessible and affordable, there's even rental contracts to be had. Food and drink is overall cheaper. The startup spirit in Berlin still felt a bit naive when I was there, like a first wave city, but it's big and enthusiastic. However they seem to struggle to product big hits outside of their own country. Maybe the difference between Sweden and Germany is that Sweden is so little we have to go international, and also we're more anglofied. Big companies generally haven't been so big on Berlin since they don't have an international airport, leaving the city wide open for everyone else. On the downside Berlin is a bit meh when it comes to scenery and nature.

Outside the tech scene the English in Berlin is pretty bad and some look down at any not speaking German. Swedes grow up with English and most love every opportunity to use it.

I think there's a good bet Berlin will start to dominate as a "Silicon Valley of Europe", if nothing else because there's a vacuum there that can be filled, and it will become even more international than german. Even Swedes look at Berlin simply because it's cheaper and more accessible. It also has a bit bigger scene when it comes to small "startuppy" kinda ventures while Stockholm dominates on the more serious ones.

Working as an employee seems to suck in Berlin because everyone is looking for a job and job's pay poorly. But if you work for yourself and/or with investment money that doesn't matter and you're in a good position to leverage that money.

mhomde··on Imagine yourself starting, not finishing
Anyone have the problem that instead of procrastination you start adding new features because that's more interesting/challenging than the drudge work that remains. So you're constantly doing a little drudge work and a little adding features and you get stuck in a Zeno's paradox of never finishing? :)
mhomde··on Apps made for one OS shouldn't insist on aping the design elements of another
Well, I don't think flatness per se is to blame but there should be some affordances to hint what's actionable. Whether that is color/shadows etc might be up for discussion
mhomde··on Apps made for one OS shouldn't insist on aping the design elements of another
Unfortunately often it's not as simple as that, you have to offset many difference things: ergonomics, aesthetics, intuitiveness, efficiency, information density etc etc. If you drew "using time as an absolute measure" you'd make an interface that was immensely fast but very difficult to learn
mhomde··on Edgar D. Mitchell, Sixth Moonwalking Astronaut, Dies at 85
Aww, I remember him from watching the excellent documentary "In the shadow of the moon" (http://www.imdb.com/title/tt0925248/). Highly recommended, seems like astronauts age really well. They all looked like a spry bunch
mhomde··on Apple Unveils the iPad Pro
Yeah, the Mac book is really huge within certain tech/creative circles and not in a million years would they get a windows machine (well,a few do albeit very reluctantly).

Every mac illustrator worth his salt is going to throw money at the screen to get this and I'm sure many many apps for the pen aren't far behind. Smart move by Apple

The enterprise market is more tricky... I can see some fancy plastic surgery office having iPad Pro's but when it comes to "less sexy" enterprise uses I still think Surface and Windows might be ahead

mhomde··on C# 6.0: An Introduction
yes, .Net Native runs the managed code through a modified version of the c++ compiler and gains some benefits from it's optimization, not sure how much of a difference that does however. Good talk here: https://channel9.msdn.com/Shows/Going+Deep/Inside-NET-Native
mhomde··on C# 6.0: An Introduction
True, and I'm not sure there would be much point. .Net native is mainly to reduce startup times and reduce memory footprint
mhomde··on C# 6.0: An Introduction
That's no longer true with Windows 10 where .Net Native compiles everything into native code directly
← PreviousPage 4 of 11Next →