News for hackers. Stuff that matters.

magiconair

Re:Go func: Reducing cognitive load on Friday June 30, 2017 @01:23PM (#14672211)
I think this is example is too simple and misses the point of a config package. If you have config options being read from several different sources (files, args, env) and need to initialize subsystems which need more than one or two parameters (think server with several timeouts, paths, handlers) then you want to pass this as a struct and you need to manage that struct somewhere.

Configuration is also an external contract since you don't want to break installations because you want to rename a variable. Therefore, you have to distinguish between argument parsing and the actual runtime configuration and it makes a lot of sense to have that in a single package since you can then test it properly.

Configuration is a complex issue for non-trivial projects. Managing this in one place allows to have one source of truth.

Re:Nginx 1.12.0 stable on Thursday April 13, 2017 @06:00AM (#14105524)
Glad you like it. :)

Disclaimer: I'm the author.

Re:Ask HN: How do you deal with loss of motivation? on Sunday February 26, 2017 @03:37AM (#13736294)
If you have the luxury to pick your job then the most important thing IMO is that you find something which interests you since you will derive your motivation from that. Everything else is secondary.

If you're doing something that doesn't interest you then it doesn't matter how good the other benefits are since you constantly have to use energy to motivate yourself. Then you won't produce something you're proud of which helps neither you or the company.

Re:Belgium and the Netherlands Swap Land, and Remain Friends on Wednesday November 30, 2016 @05:36AM (#13069693)
My kids have both German and Dutch passports but that's because their parents are from these countries.
Re:Consul 0.7 on Thursday September 22, 2016 @11:53AM (#12557724)
The general setup seems to be that you have a public facing LB which just forwards all incoming traffic to any available fabio instance which handles the dynamic routing. fabio does not solve the public VIP problem for you.

Disclaimer: I'm the author.

Re:Why Americans don't take sick days on Wednesday September 14, 2016 @07:33PM (#12502131)
Not trusting your employees is usually a bad sign.
Re:Why Americans don't take sick days on Wednesday September 14, 2016 @07:29PM (#12502106)
Yes, because your holidays are for recreation not for recuperation. When you're sick, you're sick. Go home, get rest, forget about work. Makes happier and more productive employees since you treat them as human beings.
Re:HAproxy in the era of Microservices on Monday October 26, 2015 @02:42PM (#10453466)
https://github.com/eBay/fabio might also be an option for you.

Disclosure: I'm the author.

Re:HAproxy in the era of Microservices on Monday October 26, 2015 @02:40PM (#10453453)
I'm curious whether https://github.com/eBay/fabio would meet your needs. It picks up the routing table from consul changes and service registrations and reloads it without restart. All the services have to do is to register their routes in consul. It is meant as a replacement for consul-template+HAproxy.

Disclosure: I'm the author

I am one of these managers in Amsterdam with an international team of 10 people from 8 different countries who still writes code. My desire is to have a team that gets the job done. The most effective way for them to do this IMO is to have them sit together so that they can discuss issues they have immediately.

We are seeing effects of less effective communication of teams sitting just a few desks apart.

Remote work has great benefits for the remote worker - and having been one I know them as well. The downside is that when you're building something complex the communication overhead is too big.

Another thing is that remote workers in vastly different timezones provide a time window for architectural discussions which can be too short. So they are never there when you need them and can only work alone.

I prefer to give my team members flexibility to run their personal errands and family issues but to have them on-site to have the shortest group communication paths possible.

Re:iGo: a new Syntax for GoLang on Friday March 21, 2014 @04:39PM (#7444767)
I think one of the reasons for developing Go were some hard-to-find bugs with the indentation of python code. AFAIR, the Go authors specifically didn't want this.

Found it: (http://talks.golang.org/2012/splash.article)

"As a simple, self-contained example, consider the representation of program structure. Some observers objected to Go's C-like block structure with braces, preferring the use of spaces for indentation, in the style of Python or Haskell. However, we have had extensive experience tracking down build and test failures caused by cross-language builds where a Python snippet embedded in another language, for instance through a SWIG invocation, is subtly and invisibly broken by a change in the indentation of the surrounding code. Our position is therefore that, although spaces for indentation is nice for small programs, it doesn't scale well, and the bigger and more heterogeneous the code base, the more trouble it can cause. It is better to forgo convenience for safety and dependability, so Go has brace-bounded blocks. "