HNHacker News
TopNewBestAskShowJobs

jhund

1,895 karma · joined March 30, 2009

submissionscomments
jhund··on A deep dive into ClojureScript reagent
As a very nice complement to reagent, I'd also like to mention re-frame: A Reagent Framework For Writing SPAs, in Clojurescript.

https://github.com/Day8/re-frame

jhund··on Is Model-View-Controller dead on the front end?
Well said! I find that https://github.com/Day8/re-frame combined with statecharts fits the bill and makes for some incredibly clean and enjoyable UI development.
jhund··on Ruby Web Dev The Other Way
I'm currently researching JS frameworks/libraries to front a Ruby web app. Interesting to see vue.js in the author's ideal stack. I'm very intrigued by re-frame (React based, in ClojureScript, inspired by Elm architecture). The Readme is fantastic: https://github.com/Day8/re-frame.
jhund··on Simple anomaly detection for metrics with a weekly pattern
I'm wondering if there is added value in replacing the proposed simple alarm function with control charts: https://en.wikipedia.org/wiki/Control_chart
jhund··on ClojureScript Year in Review
I'm exploring ClojureScript via the re-frame SPA pattern and it got me really excited about UI development again. What's the best way to sync data with a REST server backend?
jhund··on Anki – a program which makes remembering things easy
Anki is great. I've used it to learn the 100 most common Clojure expressions. You can get the Anki file by signing up for the newsletter at http://www.lispcast.com/100-most-used-clojure-expressions
jhund··on Gaps in Alumni Earnings Stand Out in Release of College Data
Make sure not to confuse lack in understanding of language with lack in understanding of the concept.
jhund··on Is Nefertiti in Tut’s Tomb?
Link to the highres images: http://www.highres.factum-arte.org/Tutankhamun/

Click on the up arrow at the bottom edge to choose which wall to view.

jhund··on GitHub Raises $250M at $2B Valuation
I have a hunch that Microsoft may want to purchase Github.
jhund··on Needleman-Wunsch Algorithm
This algorithm is typically used in Bioinformatics for gene alignment. I have used it successfully to align text translations. It's 45 years old and still very useful.
jhund··on Fractal Lab
I know I'm dating myself by posting this. Tom, the creator is associated with Kai Krause, creator of some cool graphics software a long time ago...

http://kai.subblue.com/en/contact.html

jhund··on Remote-First Communication for Project Teams
> It seems to be more difficult to come to consensus in purely written communication

I agree that some conflicts are much better handled via synchronous voice conversation. And I think that's acceptable, if not desirable. However, I make sure that after the call we write down some notes what decision we made, and why we decided the way we did. This makes sure that parties not present at the meeting (i.e. other developers, and our future selves) can pick up the context quickly and save us the pain of working through the decision process again.

And then there is always the issue of dysfunctional team communications where the channel doesn't matter. In asynch conversations poor/obstinate communicators don't need everybody in the room to keep adding to a controversial conversation. So you just can't stop them..

And I just learned a new word: 'in·tran·si·gent': unwilling or refusing to change one's views or to agree about something. Thanks.

> more awkward for decision-makers to assert themselves

That has probably more to do with team culture than the communication channel used. I'd think that a capable and respected decision maker can assert themselves easily via written word.

jhund··on Remote-First Communication for Project Teams
Based on my 10+ years experience of working remotely, I agree 100% with this article. My observation has been that distributed teams work well when the majority of the team is remote. It makes written communication inevitable. However when I was the only remote person in a team of 4 or more people, I felt left out. Conference calls with everybody else on one side and me on the other were quite frustrating. I missed out on the informal watercooler talk and conversations in the team office. I never felt that remote work works well in an asymmetric situation.

On the other hand, I think every team benefits from clear written communications. Having a remote team enforces this best practice where having a co-located team lets communication practices slip and become sloppy.

jhund··on At Apple’s request, we removed the ability to “Send” files to other services
Reminds me of an article by Tim Bray from 2003 where he talks about sharecroppers: https://www.tbray.org/ongoing/When/200x/2003/07/12/WebsThePl...
jhund··on Refactoring Ruby with Monads
Alternatively one could use NullObjects for the Optional use case: http://devblog.avdi.org/2011/05/30/null-objects-and-falsines...
jhund··on Rails – The Missing Parts
I have documented my strategy for moving from a simple MVP to a maintainable and complex Rails app. Basically I look at factors like how many objects are affected by an operation, and how complex the additional processing is. TL;DR: Use Rails magic when possible, and Object Oriented best practices when necessary.

I created a flowchart that illustrates this strategy: http://rails-recipes.clearcove.ca/pages/how_to_change_object...

jhund··on How Microryza Acquired the Domain Experiment.com
Given that the company relies on word of mouth marketing, the move makes a lot of sense. 'Experiment' is a fantastic name.

My only concern is that such a generic term negatively affects findability. E.g., it makes brand monitoring or web-searching very hard. You won't rise above the noise.

You could address the findability problem by adding a unique token to the name (e.g., 'Experiment42').

jhund··on 37signals becomes Basecamp
Two thoughts on this:

1) Strategy is primarily about saying "No" to activities that are not aligned with your goals and values. Here is a great example for saying no in a pretty gutsy way. 2) I have used Basecamp since its launch for my client work and like it quite a bit. However, lately I have preferred to work with Trello. I'm curious to see how Basecamp will change in the near future. Maybe I'm not their target customer any more...

jhund··on The Zeigarnik Effect
What the article doesn't mention is to use this effect as a tactic to get going in the morning: Plan your day so that you stop in the middle of an interesting task at the end of the day. I find it's effortless for me to pick it up the next morning.
jhund··on Show HN: Built a 'Kayak for courier services'
When scanning the HN titles, I first thought you built a physical kayak that will be used by kayak-couriers (as in bike-couriers).
jhund··on Analog photography is dead. Long live analog photography
I used to own a B&W enlarger and made prints from my own negatives. I remember the bulb in the enlarger having significantly more power (photons emitted/sec) than a smart phone display has.

I wonder by how much this will increase exposure times, and if it works at all...

jhund··on The Worst Work Day of My Life So Far
Very interesting, I didn't notice the word 'Work' until I read the comments about it. I wonder what's going on here, perceptually... Maybe the similarity of the two words "Worst" and "Work" causes our brain to merge them... Or maybe because it's getting late...
jhund··on The Healthy Programmer
This product is relevant to me in two ways:

* I am a programmer and I care about my health * I am a startup founder and I am impressed with the package Joe Kutner provides: A book, a website and a (free) IOS app with lots of resources and features.

Slashdot has a review of the book: http://books.slashdot.org/story/13/08/12/1239250/book-review...

jhund··on Best Place To Start A Company If You Have Kids
One big factor to consider when looking at US vs. Canada is health insurance. I can get my entire family insured for $133CDN/month (base insurance, no extended). I hear that this could be 10x higher in the US. With the base insurance I can have babies for free, and I can keep my burn rate low.
jhund··on Best Place To Start A Company If You Have Kids
Hi there, I live in Comox. Found Victoria too pricey. Working 100% remotely, and have young kids.
jhund··on An Open Letter to Google: Google Alerts Now Useless
I'd like to recommend https://intigi.com as an alternative to Google Alerts. I'm one of the co-founders. We started building Intigi 2 years ago because we were frustrated with the limited query abilities of Google Alerts. Intigi is currently positioned for Marketers, however it's incredibly useful for anybody who wants to track online information:

Intigi gives you the power of Lucene indexed search on the newest articles on the web. You can subscribe to Intigi curated sources, or add your own RSS feeds or Twitter home timeline, and then filter results using powerful Lucene queries (fields, boosting, phrases, slop, wildcards, stop words) and other filters (social signals, word count, publishing date, presence of image or video). Intigi delivers results once per day or once per week via email, or you can view results in realtime through the web interface.

Disclaimers: I'm one of the co-founders and it's a for-pay product.

jhund··on Introducing Mutations: Putting SOA on Rails for security and maintainability
I really like this approach. I use something similar for my work, however this has a much nicer API.

Often these patterns are treated and discussed as an either/or decision, which I don't agree with. There are many places in an app where the default and simple Rails way is the right choice. However as apps get more complex, there is also a need for approaches like the one presented here.

My rule for choosing the right approach is this:

If it's just a simple CRUD controller where it receives input from a simple form and writes attributes to a single model, with no AR callbacks involved, then omakase is perfectly acceptable. In that case I don't want to have to jump through all kinds of hoops and overcome unnecessary friction added by enterprisey patterns.

However, as soon as I have to use AR callbacks, add more lines to my controller action, or touch more than one model, that's a clear indication that a service object makes sense.

Mutations looks like a great solution for the latter case. It brings in some DCI goodness as well. The key is that some operations require complex context (object graphs, permissions, dependent operations), and that context should be treated as a first class citizen.

jhund··on Bit.ly was down
Yes, as far as I can tell, twitter shortens every URL they encounter. I assume that they want their own share of the analytics cake.
jhund··on Bit.ly was down
As far as I can tell, the two primary reasons for using URL shorteners are the ability to

a) share long URLs via twitter and

b) track clicks on shared links.

The downsides to URL shorteners are:

a) single point of failure for links. This one is very significant, more below.

b) obscurity of a link's destination. This is mostly annoying and enables spammers to obfuscate their spam URLs.

We can't overestimate the seriousness of having a single point of failure on web links: URL shorteners are a man-in-the-middle, or a choke point for the connection to a web page. All traffic has to go through the server that hosts the shortened link. And if that man-in-the-middle for some reason doesn't want to, or can't redirect to the next destination, your link is broken. And nobody can tell where it pointed to. So not only is the link broken for as long as the man-in-the-middle is not available, but nobody can find out where it led to originally. There is no workaround! So why would the man-in-the-middle not redirect the link? Here are a few reasons:

* the server is down for technical reasons. This happens all the time, most recently with bit.ly.

* the company that runs the server goes out of business. What do you know about the financial situation of your link shortening service provider? How can you be sure that they will still be paying for and looking after their servers in a month, a year, in 10 years?

* somebody who doesn't like what you are linking to makes sure that your links are not being redirected. The incredible democratic power of the internet is being subverted by installing choke points on the internet that allow selective disabling of certain locations on the internet. And how convenient would be the ability to disable all links that point (via a choke point) to an unwanted URL. Not only could somebody break those links, but they could also destroy the information about the location of that unwanted URL with an encrypted string like "bit.ly/SDJHGe65sef". Nobody would know where the link pointed to without access to bit.ly's database.

* the URL shortening service's DNS stops working. Bit.ly is registered in Libya. Who knows what regime will be in power there in a few months. Will they continue to allow Western companies to use '.ly' TLDs?

By sharing shortened links on twitter, you're not dealing with one man-in-the-middle, but two: Your own shortening service and Twitter's t.co shortener. So you have two single points of failure in series. You just doubled the probability of your links being broken.

It seems to me that the disadvantages and risks far outweigh the benefits of using shorteners (at least for links that I hope to be around for a while).

So what are the alternatives to using shorteners? Twitter already distinguishes between displayed and expanded URLs, so there is really no need to apply choke-point shortening. The click tracking is a bit more complex. If you share links on a platform you control, you could do something similar to what google does with their search results click tracking. Or, if you want to share your links on somebody else's platform, make sure that the platform can provide you with non-invasive click analytics.

jhund··on Github Ruby Styleguide
I use pretty much the same style for my Ruby work. One thing I do differently is replacing

  %w(word1 word2 word3)
with

  %w[word1 word2 word3]
both result in

  ["word1", "word2", "word3"]
I prefer the bracket delimiters since they better indicate the array nature than the parens. In % notation you can choose your own delimiters, so why not use brackets?
← PreviousPage 2 of 3Next →