HNHacker News
TopNewBestAskShowJobs

jeffbr13

429 karma · joined March 28, 2013

[ my public key: https://keybase.io/jeffbr13; my proof: https://keybase.io/jeffbr13/sigs/Qgo7sfBHlTdTSQW_ZHhrsPoDAObVO3LF9Mtx312XAgA ]
submissionscomments
jeffbr13··on An Opinionated Guide to Modern Java Development, Part 1
One of the reasons I love programming in Python so much is the focus on idiomatic code and 'one obvious way to do something' means that unfamiliar codebases or APIs are easier to read, and patterns for common tasks are seen again and again.
jeffbr13··on The origin of “log in” (2011)
Touché
jeffbr13··on Vagrant Feature Preview: Docker-Based Development Environments
I've not used Docker before, so this is all postulation: Dockerfiles don't look great for complex software setup processes, being just a list of commands to run on the machine.

We already have provisioning tools which attempt to solve this problem, so I'd much rather write one definition which can be applied everywhere, whether to virtual machines, Linux containers, or hosts running on physical machines.

Maybe I'm just trying to use Docker incorrectly? My particular use-case is setting up software (CKAN[1]) in an Ubuntu environment, but the server I have access to is Arch Linux, and the software is I/O-heavy, so I imagine that a container would probably be better than a VM.

jeffbr13··on The origin of “log in” (2011)
You're right that "log in" is more distinct from "sign up" (and works because "logging up" doesn't make much sense), and I definitely agree with you that 'login' is a noun, if anything!

Both "log in" and "sign in" are anachronisms though - they're justified when you're actually signing-in-and-out of a computer system or building to log your visit, but the metaphor doesn't technically make as much sense when you're talking about authenticating the user on a website.

The evolution of the terms does let you nicely abstract away the actual mechanism of authentication for a user, which I suppose is the point.

jeffbr13··on The origin of “log in” (2011)
Like the author, I frequently get hung up on which of "log in", "sign in", or any of their variants is 'more correct' every time I put together software with users.

"Authenticate" might be the most correct verb, although it's not very user friendly?

jeffbr13··on Vagrant Feature Preview: Docker-Based Development Environments
Not an expert, but one solution is to have an Nginx configuration file for each website in `/etc/sites-enabled`, which matches requests based on the `server_name` parameter.

Then you can reverse-proxy requests to the right location/port from your Nginx webserver.

This could be provisioned pretty easily, but not from within a Dockerfile. I use a post-receive hook on a remote Git repository, for one of my own websites.

jeffbr13··on Vagrant Feature Preview: Docker-Based Development Environments
I currently have an ansible script which can set up a web-service on any Debian/Ubuntu box, and can be invoked

1) over SSH, or 2) by Vagrant when provisioning a VM.

Docker, on the other hand, provisions it's containers from a rather simplistic Dockerfile, which is just a list of commands. The current solution to provision a container through ansible is rather messy[1], and shows that Docker's configuration doesn't display the same separation-of-responsibilities as Vagrant's does.

Luckily, this lets me use Docker as another provider through the Vagrant API. Woooo!

http://www.ansible.com/blog/2014/02/12/installing-and-buildi...

jeffbr13··on Outbox vs. USPS: How the Post Office Killed Digital Mail
Can anyone vouch for any similar services in Europe (specifically in the UK)?

I change address fairly regularly, as a student, and it'd be great if I could cut out paper mail entirely.

jeffbr13··on Outbox vs. USPS: How the Post Office Killed Digital Mail
I wonder why Outbox didn't go this route?

If USPS declined to honour re-routing rules to Outbox, then why not just give customers an 'address' at an Outbox depot? USPS would have no choice but to deliver to Outbox (with no other address available), and it would also cut down on spam which isn't directly addressed to the customer.

Seems like a much more sensible solution than 'undelivering' mail.

jeffbr13··on A Gossip App Brought My High School to a Halt
Similarly, your rep on one StackExchange site doesn't follow you around to all the other sites, because it's not really relevant.
jeffbr13··on Ask HN: Screenshot Saturday
> "EDM" might sound stupid, but its widely accepted terminology

Sure, it's widely-accepted terminology in the US or by people who are disinterested enough to label all electronic music as "EDM". It's also starting to refer to a very 'American' style of dance music, so it probably will turn off a lot of people, especially those most involved/interested in electronic music.

Music genres are one of those identity-defining topics[1], so it's best to sidestep the whole issue if there's any doubt!

[1]: http://paulgraham.com/identity.html

jeffbr13··on HipChat Alternatives
It does according to Wikipedia, although "Binary data must be first base64 encoded before it can be transmitted in-band", making it inefficient[1].

XMPP's based on XML anyway, so implementing inline media and extra features sounds easier than rolling an entirely new protocol.

But perhaps some of the proprietary systems use XMPP internally anyway? After all, it's used for more than just chat clients nowadays.

[1]: https://en.wikipedia.org/wiki/Xmpp#Weaknesses

jeffbr13··on HipChat Alternatives
I don't understand why even most of the open-source projects aren't using a modern standard like XMPP, and simply focusing on the UX.

Is there a technical reason for it? Is XMPP broken in some way? Or is the chat space simply full of pathological cases of Not-Built-Here Syndrome?

jeffbr13··on Would you take smart drugs to perform better at work?
All this sounds great, and I've considered doing the whole quantified self thing, but aside from a massive helping of motivation, how do you go about keeping track of all the data?

Are there any good data-entry applications, or do you just note the data down and transcribe it into a spreadsheet later?

jeffbr13··on Would you take smart drugs to perform better at work?
True, but I think that I parse "performance-enhancing" as being to do with immediate on-the-job performance.

If we're talking about the benefits of a drug for any purpose though, you could put recreational use under (3) and medicinal use under (4).

jeffbr13··on Would you take smart drugs to perform better at work?
I've been using nicotine on-and-off, after reading up on Gwern's self-experimentation[1], in order to moderate my caffeine dependency.

I would probably use other chemicals, if the cost-benefit balance was good enough:

1. Easy to acquire - even nicotine gum is a bother to buy, compared to the various teas, coffees, colas, or caffeine drinks within a few metres of my desk.

2. Valuable - there would need to be a positive economic benefit, otherwise it would be a recreational chemical.

To think like an economist, the 'positive economic benefit' would provide $-amounts for:

3. Quality of Life costs - a smart-drug which affects your sex-life (e.g. Adderall) or causes me to lose focus on my health will have a high negative value.

4. Long-term Health costs - similar to above, except this is more of an expected-cost for (the likelihood of it causing long-term health issues) * (the negative value of those health issues). Not usually very high, but as the article mentions, not many of these drugs have had conclusive efficacy trials, never mind long-term studies of their effects. This one really depend on your personal risk-aversion.

[1]: http://www.gwern.net/Nicotine

jeffbr13··on The value of an engineering degree
I think the difference might be this, in undergraduate degrees:

* Mathematics is entirely about proving arguments and solving problems within logical systems. * The 'hard sciences' (esp. physics) are about working within a theoretical (often mathematical) framework and testing it with experimentation.

Contrast this to engineering disciplines, or even medicine, where the focus is on gaining knowledge which you can use to solve problems. It's problem-solving, but doesn't have much of the scientific method about it.

jeffbr13··on The value of an engineering degree
Applied projects and practicals are more along the 'working with lathes' line, forcing you to practice what you've learned.

"Critical Thinking" (and its development) is perhaps more nebulous, but I imagine that it comes with extensive work on proofs and problem-solving in more abstract situations.

jeffbr13··on Toward a better programming
Awesome, cheers!
jeffbr13··on Toward a better programming
> Let's not forget that "programming" runs the whole gamut from embedded systems programming in assembly all the way to very high level theorem proving in Coq and understanding anything about the nature of that entire spectrum is difficult indeed.

True, but one of the problems which Bret Victor and Chris Granger set out to solve with LightTable (and is mentioned here in §"Programming is Unobservable" and §"Programming is Indirect") is that the tooling for using current programming languages hasn't meaningfully changed since the 70s or 80s.

I agree that generalising over all programming languages is near-impossible, but even the most 'bare-metal' languages only manipulate models of the computer hardware.

jeffbr13··on Toward a better programming
I love Chris Granger's work, and LightTable, but jeeez my eyes were going weird by the "Chasing Local Maxima" section.

Turn the contrast down!

jeffbr13··on Who Needs a Boss?
Interesting, was this a primary or a secondary school?

I ask because teachers in secondary schools seem to be under much more pressure to ensure their students pass standardised exams to enter higher education, whereas there's much more wiggle-room for alternative methodologies at younger ages. It'd be good to see some innovation at the secondary level, rather than just attempting to keep up with what examiners require.

jeffbr13··on Could keybase.io do for crypto what GitHub did for Git?
As you say in your post, PKSs already associate your public key with your email address as a unique identifier. But there are two points here:

1. Limiting identifiers to email addresses isn't that great a solution. Email is less popular amongst my generation (~20 y/o). It's the service backing almost every identity now, but I already have way too many email addresses which I have to check. What if I want to set up an anon identity? 2. Why, as a person on the street, would I trust pgp.mit.edu more than I trust Keybase THEN (Twitter AND a personal webpage AND whatever other services end up being supported) - it does ultimately depend on how much you trust Keybase, but not obviously so.

Looking back on it in a year or two, Keybase may end up a classic example of "worse is better", because it's easier to grasp, as you said in your post.

jeffbr13··on The Ultimate Frontend Build tool: make
If you're managing dotfiles with Make (which I attempted once...) then may I direct you to GNU Stow instead? It's much easier to manage a bunch of files centrally and just symlink to them all:

http://brandon.invergo.net/news/2012-05-26-using-gnu-stow-to...

jeffbr13··on The Ultimate Frontend Build tool: make
They've used Grunt for builds for a while now[0].

It seems most of the twitter-style web developer community who happily replaced `make` with `rake` when developing for Rails simply followed that with `grunt` when they moved to JavaScript.

[0]: https://github.com/twbs/bootstrap/commit/0d33455ef486d0cf06c...

jeffbr13··on Tech Job Scotland
Exactly, Scotland (and most other parts of the UK) won't ever get as much attention in Westminster as the South-East of England, and our parliamentary representatives are that much further away from us.

You could say that your vote's power is inversely-proportional to the size of the democracy, but if you look at how the complexity of communication scales, then surely smaller democracies are able to function much more effectively than larger ones (cf. small vs. large [software] teams).

I'm voting yes because, although I plan to travel after I get my degree from Edinburgh, independence would give me more (and potentially better) options for living in the EU in future.

jeffbr13··on Tech Job Scotland
Can't beat the local delicacy of salt'n'sauce on your chips here in Edinburgh!
jeffbr13··on Tech Job Scotland
Oh come on, Scottish Nationalism ≠ Nazi-ism/EDL-ism

Scotland's "Nationalism" is about gaining independence and actually becoming a nation, not about violent and misguided idealism.

In fact, Alex Salmond (leader of the Scottish National Party, the majority party in Scottish Parliament) has come out for more liberal immigration policies, to encourage positive economic immigration[0]. Compared to the UK government's increasingly tough stance on immigration[1], and the rise of right-wing parties such as UKIP and the BNP, I'd much rather live in a small, liberal nation like Scotland.

[0]: http://www.scotsman.com/news/politics/top-stories/scottish-i... [1]: http://www.telegraph.co.uk/news/uknews/scottish-independence...

jeffbr13··on Tech Job Scotland
Replied to a node above (https://news.ycombinator.com/item?id=7415728), but you can usually find out who's hiring by just turning up to the monthly Tech Meetup[0] - it's pretty active here in Edinburgh.

[0]: http://techmeetup.co.uk/

jeffbr13··on Tech Job Scotland
You'll find a lot of the tech scene (in Edinburgh at least) go to Tech Meetup[0] every 2nd Wednesday of the month, and you'll soon hear who's hiring in the introduction go-around.

Hell, it's a rare occasion when neither Skyscanner or Amazon aren't hiring more developers.

[0]: http://techmeetup.co.uk/

← PreviousPage 4 of 5Next →