It feels liberating to just get an SSL cert for any subdomain I need and have the whole process abstracted from me.
1,251 karma · joined January 9, 2014
It feels liberating to just get an SSL cert for any subdomain I need and have the whole process abstracted from me.
There are much better ways of doing it.
* https://github.com/marcusolsson/gouk16-slides/blob/master/bu...
* https://peter.bourgon.org/go-best-practices-2016/
* http://dave.cheney.net/2016/08/20/solid-go-design
However, as a Go developer I'm finding that a lot of examples/tutorials and github projects are taking shortcuts when it comes to program design and how dependencies(loggers, config, db handlers) are being passed around. https://peter.bourgon.org/go-best-practices-2016/#program-de... IMO it's a sign of Go still being a relatively new language. Despite the language existing for ~6 years now, we're only discovering some best practices today.
Go has some of the best letsencrypt tooling out there, and there was even some support for merging ACME support directly into net/http https://github.com/golang/go/issues/17053
Here's an example release.sh I have in most of my projects https://github.com/micromdm/scep/blob/master/cmd/scepclient/...
You can have `datastore.New() Datastore`, which returns one of the implementations, or you can have `datastore.NewMySQLStore, datastore.NewInMemStore()`. Now you need a different method for each implementation.
Also be careful with returning concrete type, you can run into this issue: https://play.golang.org/p/WHAW1X6elS
https://www.reddit.com/r/golang/comments/50uni1/dependency_g...
Also relevant: https://talks.godoc.org/github.com/broady/talks/web-framewor...
Papert work is also present in most educational/programming toys we see today - Scratch, Kibo http://kinderlabrobotics.com/kibo/, LittleBits, LEGO Mindstorms all owe their roots to Paperts ideas.
> Turn on SafeSearch VIP To force SafeSearch for your network, you’ll need to update your DNS configuration. Set the DNS entry for www.google.com (and any other Google ccTLD country subdomains your users may use) to be a CNAME for forcesafesearch.google.com.
>We will serve SafeSearch Search and Image Search results for requests that we receive on this VIP.
You can enforce safe search over https now https://support.google.com/websearch/answer/186669?hl=en
https://medium.com/@sdboyer/so-you-want-to-write-a-package-m...
Discussion https://news.ycombinator.com/item?id=11088125
Sam is currently working on a library for Go https://github.com/sdboyer/gps
1.6.3 will include https://github.com/golang/go/commit/fad2bbdc6a686a20174d2e73... in addition to the security fix.
Mind rewriting
do
y <- f x
fy
or annotating into something that makes sense?say with an example like response, err := http.Get(someURL)
How would this example look like in haskell if error handling is abstracted away?
Go also has most of the listed libraries(like http, arg parsing, json) included in stdlib. I'd argue that the the http library in Go is one of the best out there :)
Can't disagree about dependency management, hopefully it gets addressed sooner rather than later. There was a good discussion with the Go team on the topic at Gophercon today.
I've tried Swift several times, but as a sysadmin, I'm interested in cli apps, servers, network libraries etc. I either already know how to do these things or can find out quickly in python/ruby/go or even rust. But whenever I try to find out how to do these already familiar things in Swift, it's a pain to find the right documentation/examples.
I wish Evan allowed others to contribute to the official documentation. Right now Elm feels more like Evan's personal project than a project that is owned by the community.
Other then that, the community has done a good job of writing up documentation, and Richard Feldman is working on a proper book.
https://github.com/go-kit/kit/blob/master/examples/shipping/...
and more recently https://github.com/go-kit/kit/blob/master/examples/addsvc/tr...
You can also create a type or a struct that implements error.
Example from stdlib:
``` // PathError records an error and the operation and file path that caused it. type PathError struct { Op string Path string Err error }
func (e *PathError) Error() string { return e.Op + " " + e.Path + ": " + e.Err.Error() } ```
Dave Cheney's other blog post/talk goes into various ways to handle errors in Go here: http://dave.cheney.net/2016/04/27/dont-just-check-errors-han...
http://tech.noredink.com/post/126978281075/walkthrough-intro...
Not only is the elm code I write reliable, but I've found that adding more features does not bloat my code. Refactoring a codebase as it grows in elm is pleasant, and following the Elm Architecture guides me on the correct structure for the app.
Over the weekend I made a small site to show all Elm conference videos in one place. If you want to play around with 0.17 this project is just a bit above a "Hello World" example. Send a PR! https://elmvids.groob.io/