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 Python Coroutines with Async and Await
I agree that those can be issues... but that can be solved by annotating the methods to those constraints. The compiler can even highlight potential problems and ask that you annotate them.

The benefit of this approach is that the compiler should be able to see more opportunities for optimization and also result in fewer bugs.

mhomde··on WCF is Open Source
as long as you don't need any of the features of WCF you shouldn't of course (though I think webservices become an obsolete technology).

As soon as you run into edge-cases with authentication, compression, binary formats etc you'd have to use WCF. I think many use WCF "just in case" they need those features

mhomde··on Python Coroutines with Async and Await
that's not necessarily true, in some cases yes. But as I said, control could and should be there for the asking, I don't want a ORM style black box where god knows what happens behind the scenes... but I think you could declaratively markup methods so the compiler knows what is safe to do. For instance marking them as pure, mutex etc etc.

It's kinda the same thing except telling the compiler what to do you instruct it what's safe to do, and it can make smart decisions from that. If the compiler/environment detects any ambiguity or risk it might even query the programmer to declare his intent

mhomde··on Python Coroutines with Async and Await
Having used async & await extensively in C# they're pretty great... but I can't help thinking we're explicitly declaring something that mostly could be implicit if the language was designed right.

For example: if I'm calling an IO method that returns a value it should be able to figure that out and orchestrate the code to run asynchronously and await for the value when it's referenced. If I have several asynchronous calls methods in a method it should be able to optimize it so they all run in parallel as optimized as possible.

It might need some added declarative syntax on methods but I'd rather prefer that and make the compiler smarter, instead of offloading that complexity on the programmer per default. Sure you should be able to explicitly control asynchronicity if needed but in most cases that doesn't seem optimal nor necessary

Adding async/await all over your code adds to the "crud" that makes code more verbose and harder to read and understand

mhomde··on WCF is Open Source
I really liked Webservices in ASP.net when they were new, really easy to set up and you just had to add an attribute to the methods you wanted to expose. With WCF they went too far in covering all enterprise scenarios.

It would have been better if they kept and maintained a streamlined alternative. Forcing everyone to deal with the complexities of WCF isn't developer friendly.

This is a common anti-pattern in frameworks where they grow until they are a kitchen sink monster instead of splitting of into different frameworks streamlined for different purposes.

mhomde··on Reddit launches harassment crackdown
Yeah, but it also says "a safe space", obviously some rules would have to be in place for that
mhomde··on Reddit launches harassment crackdown
On the surface it seems like a good thing. Taking a stance against the worst "systematic and continuing harassment" should help the most vitrolic cases. Some might argue that Reddit should be an "extreme free speech platform" and this obviously goes against it, but I'm not sure reddit sees itself that way.

I think most people are afraid of the slippery slope and censorship if taken too far. Making Reddit "too political correct" would transform the current culture into something else. Many (or a loud minority) currently doesn't seem to trust Reddit to not do that. What makes things worse is people assume this is a "Monetization of a service"-story they've seen played out many times before with catastrophic results.

In the end I guess it comes down to the execution and agenda.

mhomde··on GoPro's CEO honors a costly promise
Reminds me of the bit Chris Rock used to do about taking credit for stuff you're supposed to do

"I take care of my kids, I take them to school!" he says proudly

"That's what's you suppose to do you dumb M---F!"

mhomde··on Windows 10 Design: Getting the balance right
and "hamburger menus" are immediately intuitive? :) Don't people swipe to get to the notification center in most mobile UI's? I think saying gesture based UI's are harder to use is an overstatement.

What do would you rather use, an UI that's super easy to learn but cumbersome to use, or an UI that required learniing a few basic gestures and then being much more efficient and ergonomic to use?

mhomde··on Windows 10 Design: Getting the balance right
That depends on what kind of gestures you use and where. The closest edges for instance are more easily accessible. Also gestures doesn't necessarily mean swiping.
mhomde··on Windows 10 Design: Getting the balance right
I'm a bit skeptic about the direction of Windows (Phone) 10. It's not that its bad, it's just that it isn't great and they've missed the opportunity to but in substantial UX improvements.

Also having the same interface for Phone/tablet/desktop is a dangerous idea if pushed to far, jack of all trades, master of none. Of course they should share some common ground but they risk sacrificing an tailored experience for each on the altar of standardization.

They haven't made any greater strides in addressing thumb ergonomics on larger screens. Sure at least the buttons are at the bottom again but to make it truly next generational they should have utilized more gestures.

My guess is they don't dare make Win 10 "too different" for risk alienating developers from other platforms and "mainstream users". That might be the safe choice but it doesn't make for greatness. It feels more like design by committee.

There was certainly room for improvement, the old interface was a little too stark, but they're changing course instead of refining.

I also call bullshit on "people are circles" argument. The "old" metro was more about full bleed pictures which IMO is more timeles, the circles thing is just being influenced by a current design trend and makes WP less unique. Each to their own I guess.

mhomde··on Code Review Best Practices
It's always a balance between "The Blob" and the "Poltergeist" anti-pattern, when in doubt go more towards borderline "The Blob".

I just say though it's very seldom that a huge class/method is justified. Usually there are plenty self-enclosed logic or reusable methods that can be broken out either to utility libraries or a separate class.

My rule of thumb is that you should be able to look at a method/class and understand what it does, and that diminishes quickly over a certain size.

Sure some logic might be in other classes but that's another layer of abstraction

mhomde··on Show HN: Filter and read Hacker News by category
It's reassuring to see that HN has had ten design articles... ever :)
mhomde··on Someone Has Domain for Carly Fiorina’s Name and Is Pretty Upset with Her Layoffs
Yeah I agree, HP had a very engineer centric culture and history so that must have been hard. I guess the dream of a company is always to find those unicorns that are both Engineer/MBA/Leader/Designers etc. In the end business people can be competent, but people with domain knowledge can be visionary (Scully vs Jobs for example)
mhomde··on Someone Has Domain for Carly Fiorina’s Name and Is Pretty Upset with Her Layoffs
Should companies be run or managed by engineers? I'm not sure that's actually a good idea as much as I'm not overly fond of MBA types either.

I think it's a faulty generalization either way, companies should be run by competent passionate people.

mhomde··on My rocky first 24hrs with the Apple Watch
It seems many app designers makes the mistake of treating the watch as an phone strapped to your wrist instead of a device with a different use case.

Also it seems Apple has missed the mark one some fairly common use cases, like having sleep & don't disturb modes, or being able to dismiss multiple notifications.

I was thinking about watches and realized one mode I'd like is that only show notifications when prompted (like a force push). Then you could make notifications pull rather than push UX wise and don't have to be interrupted. Good for dinners etc

mhomde··on Let’s all laugh at my horrible 2006 post: “YouTube is not a real business”
Everyone is right, sooner or later
mhomde··on Microsoft Makes It Easier to Bring Android and iOS Apps to Windows 10
I can't wrap my head around how apps with any kind of advanced animation could work. I mean Windows Phone 8.1 has decent animations, you can do translations, scales, rotates etc but it has no kind of transition effects or bitmap effects at all. At least ios seems to rely quite heavily on that kind of stuff...
mhomde··on Valve shuts down paid mod system after pressure from gamers
I've learned that there's at least two hard rules when it comes to money for digital services

1) It's almost impossible to start charging for something that was free

2) It's almost impossible to go from one time payment to subscription model.

If you want either model you better start out with them or you're going to have a vengeful mob after you. I've seen this repeated time after time with catastrophic results. I was actually surprised that Adobe got away with it.

mhomde··on Valve shuts down paid mod system after pressure from gamers
Yeah, this is like the chapter out of "Drive" where they tried paying people to give blood but ending up decreasing the number of blood givers... they'd rather feel charitable then earn money
mhomde··on Foursquare's Dennis Crowley can't stop believing
Timehop is pretty limited in its scope, I'd do a fullblown diary & life tracker
mhomde··on Ask HN: Those who quit their jobs to travel the world, how did it go?
Taking along a friend is good advice in general. It can become a little bit exhausting to constantly have somewhat shallow interactions meeting only meet new people. Sometimes you just want to lay back and enjoy the deeper relation of someone that know you well.

Having a friend as an anchor and fixed point for discussions and sharing experiences can make it much more rewarding. Unfortunately it's pretty rare to have a friend with as much freedom as oneself at the same point in time.

Also I must say that if you travel and stay for 3+ months in a place you face a different problem: You've gone past some kind of threshold and started to create a new life with friends, favorite places and habits.

Leaving can then feel a little bit like you're leaving shards of yourself behind, and the physical disconnection of all those new relationships can be quite sad too.

mhomde··on The Beauty of Code
the smaller the bowl* the more beautiful the code

* up to a point

mhomde··on The Beauty of Code
Interesting article... but maybe the author should have taken a cue from programming and refactored/edited it to be more clear, concise and structured.

I found it a bit rambling without clear premise or pay off. He sounds like someone who talks about programming from the outside while never having been deeply immersed in it himself.

Clarity of writing follows clarity of thought.

mhomde··on Foursquare's Dennis Crowley can't stop believing
If I were Foursquare I'd admit defeat, drop Swarm, do a big push to relaunch Foursquare with a new app (if nothing else just to get people interested again) and think really hard about a killer feature to lure people back into the app.

One aspect that's really underplayed I think they could go with as a complement is diary and life tracking. It could be very interesting to have as an experience where you could relive where you've been and done.

mhomde··on C# 7 Work List of Features
You sound like an US patent clerk in the 1901's ;) Look at Rx for example, it isn't needed in as many applications but when it is its as revolutionary as LINQ was.

I think reducing friction and increasing productivity is really important, it's not as sexy as some of these other features but it makes real difference in big projects.

I'm getting a little worried about the async-await and task methodology. It's true that they've made a lot of that kind of programming much much easier, but it also means that orchestration is cluttering our code. It seems that now that we've elevated the level of abstraction it should be possible to get rid of it (more or less) by being more declarative in our intent and structures. We're programming on at least one layer below what we should.

Unfortunately I think that might require so large fundamental changes that you need a new language. Many might say, what about F#? While F# is great for certain more algorithm oriented solutions for me it never seemed to quite fit the paradigm of certain applications and enterprise systems.

I think in the end there's a skeleton of a next generation language embedded in what c# has become. If we removed some of the crud and used LINQ style syntax as template perhaps we could take parallelism, asynchronicity and productivity to the next level

mhomde··on C# 7 Work List of Features
Yeah I agree, having to keep in mind what you put into Item1, Item2, Item3 etc really isn't programmer friendly
mhomde··on C# 7 Work List of Features
I don't know, dont' get me wrong these are all nice features but it's nothing that I think will drastically change or improve the way I code (like for instance LINQ or generics did). With the possible exception of null tracking (no pun intended). Making testing and eliminating bugs easier is the one area that really could benefit from a grand new concept or methodology.

I was really hoping for better integration of tests and pre/post conditions

mhomde··on Update on Heml.is
Couldn't you have a kickstarter where you only get part of a lump sum in the beginning for investments, and then minimum-wage for each employee each month? Keep the start-up lean and hungry and perhaps intrinsically motivated. I guess there's many problems and ideas that couldn't be funded this way but for those that can maybe they'd stand a higher chance of succeeding.

Even better was if you had a startup mentor that approved expenses.

mhomde··on C# 6 exception filters and how they are much more than syntactic sugar
Or just supress it, for some methods you might want to return a null value/"null object"/bool rather than have an exception cascade up the chain and risk crashing the application. I think Exceptions are a bit problematic as a concept but then again so are null values :)

An easy example are checking if a file exists under Windows 8, it's partly a product of the currently deficient API's but the fastest way to check if a file exists is to try to get it and catch the exception, and you'd want to return bool from a FileExists method

← PreviousPage 7 of 11Next →