Better HN
topnewbestaskshowjobs
Log inSign up

xinau

9 karma · joined Jul 20, 2017 (9y ago) · 9 submissions

Submissions

comment 6y ago · link · parent

Golang's level of boringness. It's just boring enough to still be useful. Often it's easy to understand random code and write "reasonable" code.

comment 6y ago · link · parent

I had/have the same problem, what helped me a lot was to write down what I've learned (roughly bi-weekly). Another booster was to stick to the same document structure for example NABC for proposals and ideas.

NABC: https://nielschrist.wordpress.com/2012/07/13/the-nabc-method...

3.

Homebuild ventilator pressure control with modifiable PEEP control(github.com ↗)

2 points · by xinau · 6y ago · discuss

comment 7y ago · link · parent

Some of the reasons I like the tool can't be found in the language spec. CUE (the tool) provides import facilities for existing configurations like yaml, json, openapi, protobuf or even go code into cue. this helps with adoption and time spent porting existing configs. Another feature of the CUE tool is the ability to create small tools that are able to operate on cue definition files. https://github.com/cuelang/cue/blob/master/doc/tutorial/kube...

comment 7y ago · link · parent

The website is under active development at the moment and their are incomplete parts. For the code links please take a look at the following tutorial on GitHub at the moment.

* https://github.com/cuelang/cue/blob/master/doc/tutorial/basi...

* https://github.com/cuelang/cue/blob/master/doc/tutorial/kube...

comment 8y ago · link · parent

As a friend of mine once said. "There are only two difficult things in IT, no. 1 is printer's and no. 2 is WiFi.

comment 8y ago · link · parent

I don't know if this is the intend of Tom, but I was also stumbling on this issue and the only reasonable explanation I can come up with is that:

One key can't have multiple values with different types. For example in json:

  { "name" : 
    { "first" : "Bob",
      "last" : "Smith"
    }
  }
How would you add a "alternative" key to the "first" value type. The only way i can think of is something like this.

  { "name" : 
    { "first" : "Bob",
      "first.alternative": "Robert",
      "last" : "Smith"
    }
  }
or as @latk suggested, let "first" be an array, with it's first entry being the non alternatives.

  { "name" : 
    { "first" : ["Bob", "Robert"],
      "last" : "Smith"
    }
  }

I think this is by design. To quote @mojombo "simple configuration file that maps unambiguously to a hash table".

But this is only a guess.

comment 8y ago · link · parent

Going to take a look, at tldr and watchman. Thanks

9.

Ask HN: What are your favorite cli/unix tool?

3 points · by xinau · 8y ago · 2 comments